Sourcemap and break points in Chrome don't work
Asked Answered
P

1

6

I'm trying to place breakpoints in transpiled code that has a source map, but every time I press a line to place a breakpoint, it cancels immediately.

Like here:

enter image description here

Is it a problem with the webpack configuration? Should I post it?

Pilothouse answered 13/4, 2017 at 7:23 Comment(1)
I have the same issue but I am not using UglifyJsPlugin.Outplay
P
2

In the webpack config I changed devtool: 'eval-source-map', to devtool: 'source-map', and now it works, but it generates a .map file for each transpiled file, which didn't happen before when it worked.

Edit:

also removing this from the config helped:

new webpack.optimize.UglifyJsPlugin({
  sourceMap: true,
  compress: false,
  minimize: false,
  mangle: false
}),
Pilothouse answered 19/4, 2017 at 6:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.