Open ooflorent opened 8 years ago
My bad, yes, this should be supported!
any news?
+1, this is really important for vigneshshanmugam/optimize-js-plugin too. Thanks!
bump
bump again
Looks like this issue ties directly to https://github.com/nolanlawson/optimize-js/pull/25, which seems to be stuck on implementation decisions.
Rough tl;dr: optimize-js
uses https://www.npmjs.com/package/magic-string under the hood, but doesn't pass any options and only returns the parsed code. Looks like the current ideas are to return either a MagicString instance or a Map object, but that would definitely be a breaking change.
bump
Nothing?
https://github.com/nolanlawson/optimize-js/pull/25#issuecomment-303597798
Doesn't look like it's gonna happen.
Adding an option to access the source map would ease the integration with build tools. e.g.: