Skip to content

Commit 3e59331

Browse files
committed
fix webpack validation error #264
1 parent e9e81c1 commit 3e59331

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,12 @@ function plugins() {
367367
}
368368

369369
// Ignore all locale files of moment.js
370-
plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
370+
plugins.push(
371+
new webpack.IgnorePlugin({
372+
resourceRegExp: /^\.\/locale$/,
373+
contextRegExp: /moment$/,
374+
})
375+
);
371376

372377
// Ignore any packages specified in the `ignorePackages` option
373378
for (let i = 0, l = ignorePackages.length; i < l; i++) {

0 commit comments

Comments
 (0)