optimize-js-plugin icon indicating copy to clipboard operation
optimize-js-plugin copied to clipboard

Source maps are not generated when using the plugin on 2.1.0-beta.2*

Open phaistonian opened this issue 9 years ago • 7 comments

devtool: source-map

Having this plugin on (with or without sourceMap: true) will cause the UglifyJsPlugin not to generate source maps.

phaistonian avatar Oct 07 '16 08:10 phaistonian

@phaistonian Thanks for reporting it.. will try to fix it as soon as possible.

vigneshshanmugam avatar Oct 10 '16 20:10 vigneshshanmugam

This is tricky to get it right as of now. Until https://github.com/vigneshshanmugam/optimize-js-plugin/issues/2 it is addressed which again depends on the optimize-js, It will break the source map generation or replace the source map from other plugins. Will fix it once it lands.

vigneshshanmugam avatar Oct 10 '16 21:10 vigneshshanmugam

Thanks for the heads-up:)

phaistonian avatar Oct 11 '16 05:10 phaistonian

Same problem here!

vojtatranta avatar Jan 02 '17 14:01 vojtatranta

using stable 2.2.1 source maps still not generated

teod avatar Mar 08 '17 07:03 teod

status?

gingur avatar Apr 06 '17 17:04 gingur

Its tough to get it right as I already mentioned in the previous comment. I could hack in to the source map generation from the webpack bundle but that would not be the right source map applied after the optimize-js plugin since the AST becomes different now

The best place to resolve is in optimize-js and its already discussed here https://github.com/nolanlawson/optimize-js/pull/25

Please do share if you have any other ideas.

vigneshshanmugam avatar Apr 07 '17 09:04 vigneshshanmugam