fix: clean up rollup chunk naming & source maps #537
Another day, another big reshuffling of all this logic. I'll get it right someday, right?
This fixes #536 along with a host of other bugs that were preventing source maps from even being close to working. This requires a lot of flopping around to get right & work around limitations in what rollup gives us for asset details and limitations in the asset API (like not being able to get the hash until the file is written, but needing the hash for the final name when calling postcss...). It's inelegant and starting to get crazy-looking but it's functional and the tests are at least pretty thorough at this point.
@@ Coverage Diff @@ ## master #537 +/- ## ========================================== + Coverage 99.13% 99.16% +0.02% ========================================== Files 40 41 +1 Lines 927 960 +33 Branches 140 147 +7 ========================================== + Hits 919 952 +33 Misses 8 8