I set up a simple node/express-application and tried to utilise Typescript and Webpack. Sourcemaps works fine as long as I don't add Uglify to the webpack config.
Awesome! Thanks for this, I'll take a look.
Any updates on this ?
Seeing this as well here:
Any updates on this ?
I don't believe so. But I'd generally only expect uglify to be used in production builds; is there a need to use uglify when debugging?
is there a need for source maps in production? Yes, there is
That's rather surprising - source maps are expensive and you're increasing your build size by including them.
That apart - if you'd like to submit a PR that resolves this we'd certainly take a look at it.
Hi,
I had the same issue, you have to set {sourceMap: true} in uglify's configuration as well.
new webpack.optimize.UglifyJsPlugin({sourceMap: true, compress: true})
This should solve your issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing as stale. Please reopen if you'd like to work on this further.
Most helpful comment
Any updates on this ?