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 · 4 comments
Assignees
Labels
🏃 priority: high status: standby Temporarily paused due to other priorities. web-components

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
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 20, 2024
@Lipata Lipata reopened this Jun 24, 2024
@Lipata Lipata assigned Hristo313 and unassigned Lipata Nov 12, 2024
@Hristo313 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
🏃 priority: high status: standby Temporarily paused due to other priorities. web-components
Projects
None yet
Development

No branches or pull requests

3 participants