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:
parent
69a91ff90a
commit
86d0e30eb7
2 changed files with 17 additions and 12 deletions
|
@ -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)?$/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue