Skip to content

Commit 2e5e146

Browse files
committed
chore: update ignorePlugin
1 parent 5d990af commit 2e5e146

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webpack.build.conf.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const { webpack } = getWebpackConfig;
88
// http://stackoverflow.com/q/25384360
99
function ignoreMomentLocale(webpackConfig) {
1010
delete webpackConfig.module.noParse;
11-
webpackConfig.plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
11+
webpackConfig.plugins.push(
12+
new webpack.IgnorePlugin({ resourceRegExp: /^\.\/locale$/, contextRegExp: /moment$/ }),
13+
);
1214
}
1315

1416
function addLocales(webpackConfig) {

0 commit comments

Comments
 (0)