Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
rollup plugin does incorrect CSS chunking #559
When creating files that contain a dep graph like this:
the rollup plugin should create
This code is intended to prevent CSS from being output multiple times, which is a good idea. Unfortunately it also means that any particular CSS file will only be output once, in the first JS-triggered chunk that depends on it.
Instead the plugin should look at the JS chunk graph & the CSS chunk graph & figure out the minimal set of CSS chunks that satisfies all the dependencies.
Steps to Reproduce (for bugs)
This issue means that it isn't safe to use