Tree-shaken CSS causes build breaks #441
If you import CSS in a module that is later completely tree-shaken away it'll cause an error when rollup tries to get the dependencies for the non-existent file.
is where we run into trouble.
This fixes it by removing any unknown-to-the-processor files from the array before trying to get any dependencies.
css.filter((start) => processor.files[start]).forEach(/*...*/)
The text was updated successfully, but these errors were encountered:
* test: try to replicate #441 No luck though, need to get a better repro. * Got a failing test! * chore:
🔒file wut * fix: Only remove the file and its dependents Not sure why I changed it to the file and all its dependencies instead of just the default "file and its dependants" behavior, but that was the WRONG choice. * fix: handle both removal cases See comment on line 53 for the reasoning, it's goofy.