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
The WC project doesn't receive tree-shaking. It's easy to reproduce if you debug a WC project made with the CLI and see that all the js files are included in the bundle by default.
If you add the separate views in a create-react-app project instead, treeshaking is achieved by webpack so it is definitely possible.
This is either some issue in rollup's config or maybe more generic inability for rollup to treeshake the WC project. In this case we might need to use another bundler.
The text was updated successfully, but these errors were encountered:
The WC project doesn't receive tree-shaking. It's easy to reproduce if you debug a WC project made with the CLI and see that all the js files are included in the bundle by default.
If you add the separate views in a create-react-app project instead, treeshaking is achieved by webpack so it is definitely possible.
This is either some issue in rollup's config or maybe more generic inability for rollup to treeshake the WC project. In this case we might need to use another bundler.
The text was updated successfully, but these errors were encountered: