mirror of https://github.com/portainer/portainer
fix(build): ignore chardet missing sourcemaps (#4760)
parent
20cbeb698d
commit
c04bbb5775
|
@ -22,7 +22,17 @@ module.exports = {
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
enforce: 'pre',
|
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$/,
|
test: /\.js$/,
|
||||||
|
|
Loading…
Reference in New Issue