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
The text was updated successfully, but these errors were encountered:
* fix: functional CSS chunking algorithm Walks JS entries + CSS dep graph to determine ideal chunking locations and merges nodes together until it gets there. Probably a bit slower than before but *way* more accurate and safer to use. * fix: change asset naming to not depend on entries There were just too many issues around trying to parse out the source filename, so for now we use the CSS files instead. * feat: processor.normalize() Because sometimes you need external access to cleaned-up paths Fixes #559 Fixes #560