mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
fix(build): ignore chardet missing sourcemaps (#4760)
This commit is contained in:
@@ -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$/,
|
||||
|
||||
Reference in New Issue
Block a user