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
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(/*...*/)