Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sourcemap and break points in Chrome don't work

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?

like image 365
shinzou Avatar asked Apr 13 '17 07:04

shinzou


1 Answers

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
}),
like image 123
shinzou Avatar answered Oct 05 '22 05:10

shinzou