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.
1 parent 038f9ed commit 9c9e5b3Copy full SHA for 9c9e5b3
packages/react-scripts/config/webpack.config.js
@@ -674,7 +674,10 @@ module.exports = function(webpackEnv) {
674
// solution that requires the user to opt into importing specific locales.
675
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
676
// You can remove this if you don't use Moment.js:
677
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
+ new webpack.IgnorePlugin({
678
+ resourceRegExp: /^\.\/locale$/,
679
+ contextRegExp: /moment$/,
680
+ }),
681
// Generate a service worker script that will precache, and keep up to date,
682
// the HTML & assets that are part of the Webpack build.
683
isEnvProduction &&
0 commit comments