Justin Ridgewell f49234aa69
Add sourcemap markings for each line of a string (#12086)
* Add sourcemap markings for each line of a string

Fixes https://github.com/babel/babel/issues/12083

* Fix for multiple newlines

* Optimize with indexOf

* Comment explaining newline search
2020-09-22 21:36:21 -04:00

10 lines
238 B
JSON

{
"mappings": "AAAA;AACA,MADA;AAGA;AACA;AACA,MAFA",
"names": [],
"sources": ["fixtures/sourcemaps/string-literal-newline/input.js"],
"sourcesContent": [
"\"before\\\nafter\";\n\n\"before\\\n\\\nafter\";"
],
"version": 3
}