Skip to content

Include Required Dependencies Of Rollup In "dependencies" - #1965

Merged
lukastaegert merged 1 commit into
rollup:masterfrom
chadhietala:include-acorn-types
Mar 12, 2018
Merged

Include Required Dependencies Of Rollup In "dependencies"#1965
lukastaegert merged 1 commit into
rollup:masterfrom
chadhietala:include-acorn-types

Conversation

@chadhietala

@chadhietala chadhietala commented Feb 12, 2018

Copy link
Copy Markdown
Contributor

This fixes 2 issues:

  1. This ensures that required dependencies of rollup are downloaded on a consumers machine. Right now I think things may be accidentally working.
  2. Fixes the following issue where TypeScript consumers were receiving type errors due to missing type definitions for acorn.

screen shot 2018-02-12 at 2 59 44 pm

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though these dependencies might be required for some of the internal TypeScript types to be working correctly, they are by no means necessary for rollup to work because they are already part of the rollup bundle. The question should be rather how to make the types work without those dependencies that users of rollup do not come into contact with anyway.

@lukastaegert

Copy link
Copy Markdown
Member

I guess since no better suggestion has been made yet, this will go into the next feature release.

@lukastaegert lukastaegert added this to the 0.57.0 milestone Mar 6, 2018
avgaltsev added a commit to avgaltsev/rollup-plugin-postcss-exports that referenced this pull request Mar 8, 2018
@lukastaegert
lukastaegert merged commit cf1968c into rollup:master Mar 12, 2018
@chadhietala
chadhietala deleted the include-acorn-types branch March 15, 2018 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants