Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treeshake.moduleSideEffects incorrectly eliminates export * from "external" #2904

Closed
Swatinem opened this issue Jun 7, 2019 · 2 comments · Fixed by #2905
Closed

treeshake.moduleSideEffects incorrectly eliminates export * from "external" #2904

Swatinem opened this issue Jun 7, 2019 · 2 comments · Fixed by #2905

Comments

@Swatinem
Copy link
Contributor

Swatinem commented Jun 7, 2019

found here: Swatinem/rollup-plugin-dts#34

  • Rollup Version: 1.14.3
  • Operating System (or Browser): arch
  • Node Version: 11.15

How Do We Reproduce?

No repl, since you can’t set treeshake.moduleSideEffects options.

But its as simple as:

export * from "rollup";

with a rollup config:

treeshake: { moduleSideEffects: "no-external" },
external: ["rollup"],

Expected Behavior

external export * should not be touched, no matter what

Actual Behavior

the whole export * statement is removed.

@lukastaegert
Copy link
Member

luckily @lukastaegert is super responsive with all rollup issues :-) ❤️

Thanks for the kind words, let's see how response times change once my paternal leave ends 😉
Fix at #2905

@aleclarson
Copy link
Contributor

@lukastaegert Keep up the great work! ❤️

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 a pull request may close this issue.

3 participants