Tree-shaking doesn't work on re-exported modules with classes #15427
-
Bug reportWhat is the current behavior? If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior? Other relevant information: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you should set |
Beta Was this translation helpful? Give feedback.
you should set
"sideEffects"
flag in package.json https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free