Source map support
See original GitHub issueI found good feature in linaria. Source map support should not be so hard if Babel gives you a position for a literal node.
We need:
- Take
source-map
(0.7 use async API, if it is a problem, using 0.6 is OK. I still use 0.6 in PostCSS, because we can’t use async API in few places) - For every literal tag
generator.addMapping
. - In the end, generate source map, encode it to
data:uri
and add to CSS file.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
source-map-support - npm
This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to...
Read more >Is there source map support for typescript in node / nodemon?
My tsconfig has sourceMap set to true and the *.map.js files are generated. When I execute my transpiled *.js JavaScript files via node...
Read more >Source map support - APM Node.js Agent - Elastic
The Elastic APM Node.js agent supports source maps by default. If you transpile your source code and supply a source map, the agent...
Read more >Source maps in Node.js. Supporting the many flavors of…
Source maps provide a method for translating from generated source back to the original, via meta-information attached to the generated source; ...
Read more >node_modules/source-map-support - Gitlab inria
This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also here is the best tool to debug source maps:
https://sokra.github.io/source-map-visualization/
Yeap. I think Sass could update it too even without previous source map support, since (as I think) webpack merge source map by it own. Loaders just return own source maps and webpack merge them.