1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)?$/,