-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Duplicated css in output with v4.2 vs v3.1 #55
Comments
Do you mind checking out https://www.npmjs.com/package/rollup-plugin-import-css or https://www.npmjs.com/package/rollup-plugin-styles and see if those work for you? I'm using higher level frameworks nowadays so won't fix bugs. Happy to merge a fix though! |
I may just keep using v3.1 for now. I'll check the above out if it becomes necessary. If you're not planning on supporting this rollup plugin ( which I totally understand BTW ) , it may be worth letting the svelte team know as they still point to it as a way to compile your css. ( https://github.com/sveltejs/rollup-plugin-svelte#extracting-css ). I'll leave it up to you if you'd like to close this, or leave it open so it doesn't get re-reported. Thanks again. |
@crisward FYI I just replaced |
Should be fixed in v4.5.2. Feel free to reopen if it still reproducible. |
After updating to 4.2 I saw a massive increase in bundle size for our css. When checking the content it looks like the css had been added to the output file multiple times.
Dependency Versions
Rollup
The number of duplicate copies of the css seems related to the number of dynamic
import()
statements used within the specific bundle.Hope that helps you reproduce and fix this issue.
The text was updated successfully, but these errors were encountered: