mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
fix(build): ignore source maps for 3rd party [EE-5106] (#8549)
This commit is contained in:
@@ -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)?$/,
|
||||
|
||||
Reference in New Issue
Block a user