You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If tree-shaken module imports other modules, those other modules stay in the bundle (although not used by anything else). It indicates that tree-shaking is currently a shallow process and doesnt tree-shake unused imports in the unused modules.
If the current behavior is a bug, please provide the steps to reproduce.
Tree-shaking of unused imports in unused modules. In the reproduced repository only add module should get included and mult should get tree shaken, because its used only by unused pow.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If tree-shaken module imports other modules, those other modules stay in the bundle (although not used by anything else). It indicates that tree-shaking is currently a shallow process and doesnt tree-shake unused imports in the unused modules.
If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/Andarist/shallow-tree-shaking-demo
What is the expected behavior?
Tree-shaking of unused imports in unused modules. In the reproduced repository only
add
module should get included andmult
should get tree shaken, because its used only by unusedpow
.More detailed information an be found here
If this is a feature request, what is motivation or use case for changing the behavior?
n/a
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
latest node, latest webpack
The text was updated successfully, but these errors were encountered: