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

Prevent unneeded exports when entry facades are created and ensure all exported variables in facades are imported #3590

Merged
merged 2 commits into from May 24, 2020

Conversation

lukastaegert
Copy link
Member

@lukastaegert lukastaegert commented May 24, 2020

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:
Resolves #3583

Description

As it turns out when using synthetic exports, created facades did not import the base variable for the synthetic export, producing invalid code. Also, this will prevent extraneous exports when facades are created.

…l exported variables in facades are imported
@rollup-bot
Copy link
Collaborator

rollup-bot commented May 24, 2020

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#prevent-unneeded-exports

or load it into the REPL:
https://rollupjs.org/repl/?circleci=11328

@codecov
Copy link

codecov bot commented May 24, 2020

Codecov Report

Merging #3590 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3590   +/-   ##
=======================================
  Coverage   96.30%   96.30%           
=======================================
  Files         177      177           
  Lines        6067     6070    +3     
  Branches     1786     1787    +1     
=======================================
+ Hits         5843     5846    +3     
  Misses        112      112           
  Partials      112      112           
Impacted Files Coverage Δ
src/Chunk.ts 99.79% <100.00%> (-0.01%) ⬇️
src/ast/variables/SyntheticNamedExportVariable.ts 94.44% <100.00%> (+1.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36a4527...289db5c. Read the comment docs.

@lukastaegert lukastaegert merged commit c126c94 into master May 24, 2020
@lukastaegert lukastaegert deleted the prevent-unneeded-exports branch May 24, 2020 05:24
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.

duplicated exports and duplicated import names
2 participants