astroturfcss / astroturf

Better Styling through Compiling: CSS-in-JS for those that want it all.
https://astroturfcss.github.io/astroturf/
MIT License
2.28k stars 59 forks source link

Generate js sourcemaps using magic-string #579

Closed faergeek closed 4 years ago

faergeek commented 4 years ago

As suggested. magic-string is pretty cool. If this PR is ok, I'd like to try to map CSS back to JS using magic-string again.

Also I'm not sure if tests are needed for source map generation. What do you think?

faergeek commented 4 years ago

@jquense does it look good or I should fix something?

jquense commented 4 years ago

awesome thanks!