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 468ffe6 commit 4d0be4aCopy full SHA for 4d0be4a
packages/react-scripts/config/webpack.config.js
@@ -703,7 +703,10 @@ module.exports = function (webpackEnv) {
703
// solution that requires the user to opt into importing specific locales.
704
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
705
// You can remove this if you don't use Moment.js:
706
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
+ new webpack.IgnorePlugin({
707
+ resourceRegExp: /^\.\/locale$/,
708
+ contextRegExp: /moment$/,
709
+ }),
710
// Generate a service worker script that will precache, and keep up to date,
711
// the HTML & assets that are part of the webpack build.
712
isEnvProduction &&
0 commit comments