Ignore source map warnings

This is for debugging purposes and out of scope for this example.
This commit is contained in:
Franck Royer 2022-01-07 15:17:31 +11:00
parent eaae1e5372
commit e18c4f1619
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,9 @@ module.exports = {
Buffer: ['buffer', 'Buffer'],
}));
if (!config.ignoreWarnings) config.ignoreWarnings = []
config.ignoreWarnings.push(/Failed to parse source map/)
return config;
},
prod: (config) => {
@ -51,6 +54,9 @@ module.exports = {
Buffer: ['buffer', 'Buffer'],
}));
if (!config.ignoreWarnings) config.ignoreWarnings = []
config.ignoreWarnings.push(/Failed to parse source map/)
return config;
}
};