Rich-Harris / magic-string

Manipulate strings like a wizard
MIT License
2.34k stars 113 forks source link

Add support for `x_google_ignoreList` #241

Closed bmeurer closed 1 year ago

bmeurer commented 1 year ago

magic-string is used throughout various parts of the JavaScript ecosystem that deal with generating and manipulating source maps. Having basic support for the new x_google_ignoreList source map extension^1 will make it easy and natural for tools to mark library / framework code as ignore-listed (for debuggers).

Doc: https://goo.gle/devtools-ignoreList-adoption

antfu commented 1 year ago

Close as it's shipped 🎉

bmeurer commented 1 year ago

Only the initial support landed. As proposed in the doc, for easier adoption, a second follow up PR should land (which I'm preparing) to add support for marking sources as ignore listed when adding to bundles.