I have this Webpack Config
Notice:
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
}),
and:
devtool: !PROD ? 'eval-source-map' : 'source-map',
I'm running a dev environment so in this case
devtool: 'eval-source-map'
I use firefox 54 with the following setting:
devtools.source-map.locations.enabled:true
When working with Chrome console I can easily debug from the console since the mapping works perfectly
And it takes me to the right line:
But when using firefox it gets the mapping wrong:
And always takes me to a wrong file and line (in this case a lodash.js line)
Is this a Firefox bug? Or there's something wrong with my webpack config?



