We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d859094 + 3e59331 commit a3241e2Copy full SHA for a3241e2
src/webpack.config.js
@@ -367,7 +367,12 @@ function plugins() {
367
}
368
369
// Ignore all locale files of moment.js
370
- plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
+ plugins.push(
371
+ new webpack.IgnorePlugin({
372
+ resourceRegExp: /^\.\/locale$/,
373
+ contextRegExp: /moment$/,
374
+ })
375
+ );
376
377
// Ignore any packages specified in the `ignorePackages` option
378
for (let i = 0, l = ignorePackages.length; i < l; i++) {
0 commit comments