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
fix: modular-css-svelte handles empty CSS files #513
Fixes #512, see the issue for the background & investigation.
This only runs the regex replacement if there's anything to replace, and also cleans up some of the error/warning output. As a bonus it also simplifies a lot of the error case test code & cuts down on the number of test cases by a bit.
@@ Coverage Diff @@ ## master #513 +/- ## ========================================= + Coverage 98.89% 98.9% +<.01% ========================================= Files 31 31 Lines 815 820 +5 Branches 128 129 +1 ========================================= + Hits 806 811 +5 Misses 9 9