Skip to content

Generates namespace objects when not tree-shaking#4175

Merged
lukastaegert merged 1 commit into
masterfrom
gh-4174-no-treeshake-namespace
Jul 11, 2021
Merged

Generates namespace objects when not tree-shaking#4175
lukastaegert merged 1 commit into
masterfrom
gh-4174-no-treeshake-namespace

Conversation

@lukastaegert

Copy link
Copy Markdown
Member

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 #4174

Description

When tree shaking was turned off, sometimes namespace objects were not generated. This is fixed here.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution! ❤️

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

npm install rollup/rollup#gh-4174-no-treeshake-namespace

or load it into the REPL:
https://rollupjs.org/repl/?pr=4175

@codecov

codecov Bot commented Jul 11, 2021

Copy link
Copy Markdown

Codecov Report

Merging #4175 (2c0f8e1) into master (7435d31) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4175   +/-   ##
=======================================
  Coverage   98.33%   98.33%           
=======================================
  Files         202      202           
  Lines        7219     7220    +1     
  Branches     2111     2111           
=======================================
+ Hits         7099     7100    +1     
  Misses         58       58           
  Partials       62       62           
Impacted Files Coverage Δ
src/Module.ts 100.00% <100.00%> (ø)

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 7435d31...2c0f8e1. Read the comment docs.

@lukastaegert lukastaegert merged commit 076b608 into master Jul 11, 2021
@lukastaegert lukastaegert deleted the gh-4174-no-treeshake-namespace branch July 11, 2021 05:30
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.

Exported "namespaced imports" are lost when treeshake is false

1 participant