Skip to content
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

Open
ChronosSF opened this issue Jul 20, 2022 · 3 comments

Comments

@ChronosSF
Copy link
Member

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.

@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2023
@ChronosSF ChronosSF reopened this Feb 5, 2024
Copy link

github-actions bot commented Apr 5, 2024

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
@Lipata Lipata reopened this Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants