diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index afec1cd8f..585692e93 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -22,7 +22,17 @@ module.exports = { { test: /\.js$/, enforce: 'pre', - use: ['source-map-loader'], + use: [ + { + loader: 'source-map-loader', + options: { + filterSourceMappingUrl: (_, resourcePath) => { + // ignores `chardet` missing sourcemaps + return !/node_modules\/chardet/i.test(resourcePath); + }, + }, + }, + ], }, { test: /\.js$/,