Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phaistonian opened this issue Oct 7, 2016 · 7 comments
Labels

Comments

@phaistonian
Copy link

devtool: source-map

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

@vigneshshanmugam
Copy link
Owner

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

@vigneshshanmugam
Copy link
Owner

vigneshshanmugam commented Oct 10, 2016

This is tricky to get it right as of now. Until #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.

@phaistonian
Copy link
Author

Thanks for the heads-up:)

@vojtatranta
Copy link

Same problem here!

@teod
Copy link

teod commented Mar 8, 2017

using stable 2.2.1 source maps still not generated

@gingur
Copy link

gingur commented Apr 6, 2017

status?

@vigneshshanmugam
Copy link
Owner

vigneshshanmugam commented Apr 7, 2017

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 nolanlawson/optimize-js#25

Please do share if you have any other ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants