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

CSS is duplicated when used by a dynamically imported module #4066

Open
lilnasy opened this issue Feb 7, 2025 · 0 comments
Open

CSS is duplicated when used by a dynamically imported module #4066

lilnasy opened this issue Feb 7, 2025 · 0 comments

Comments

@lilnasy
Copy link

lilnasy commented Feb 7, 2025

Reproduction project

https://stackblitz.com/edit/node-c8jpcemz?file=package.json

What the project is doing

There is a main entrypoint (the router) which dynamically imports components (the pages) that have styles attached to them via a side-effect CSS import statement.

What's going wrong

In addition to CSS chunks being emitted next to the module they were used by, there is non-split CSS chunk next to the main entry chunk.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant