mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(build): ignore chardet missing sourcemaps (#4760)
This commit is contained in:
parent
20cbeb698d
commit
c04bbb5775
1 changed files with 11 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue