prepack-webpack-plugin
prepack-webpack-plugin copied to clipboard
Utilise prepackFromAst
The prepack method does not allow to utilise source maps. Use prepackFromAst to sourcemap generation.
I haven't had time to take a proper look into this, but it appears that UglifyJs plugin is operating on the AST level.
https://github.com/webpack-contrib/uglifyjs-webpack-plugin/blob/master/src/index.js
@montogeek Do you happen to have experience with this?
@gajus No, no really
I just took a look at the prepack source, and the prepackFromAst method currently ignores the AST and parses the code identically to the prepack method.
I'm thinking this means that sourcemaps just aren't possible with the current state of prepack. Can somebody confirm?
So if i understand correctly, source maps aren't working on that moment?
So if i understand correctly, source maps aren't working on that moment?
As far as I understand, source maps do not work at all with Prepack.