fix(build): ignore source maps for 3rd party [EE-5106] (#8549)

This commit is contained in:
Chaim Lev-Ari
2023-02-28 14:54:52 +02:00
committed by GitHub
parent 69a91ff90a
commit 86d0e30eb7
2 changed files with 17 additions and 12 deletions

View File

@@ -29,17 +29,8 @@ module.exports = {
test: /\.js$/,
type: 'javascript/auto',
enforce: 'pre',
use: [
{
loader: 'source-map-loader',
options: {
filterSourceMappingUrl: (_, resourcePath) => {
// ignores pkgs missing sourcemaps
return ['chardet', 'tokenize-ansi'].every((pkg) => !resourcePath.includes(pkg));
},
},
},
],
exclude: /node_modules/,
use: ['source-map-loader'],
},
{
test: /\.(js|ts)(x)?$/,