Open gajus opened 7 years ago
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.
The
prepack
method does not allow to utilise source maps. UseprepackFromAst
to sourcemap generation.