-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix the WC project not getting tree-shaking with rollup (or move to webpack / other module bundler) #1052
Labels
Comments
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
Hristo313
added
status: standby
Temporarily paused due to other priorities.
and removed
🛠️ status: in-development
labels
Dec 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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: