You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webpack settings: "IgnorePlugin(/^\.\/locale$/, /moment$/)" cost is linear with dependency count #11702
React-scripts builds is unnecessarily slow for industrial projects (ex: ~50 dependencies). After analysis with SMP, the webpack plugin to ignore Method.js huge locale files cost 40-60s for such a project (for a total build time of 1min40, it is more than 50% of performances lost). If you do not use Method.js, it is a total loss of build-time on each code modification.
Also, according to Moment NPM page: "Moment.js is a legacy project, now in maintenance mode. In most cases, you should choose a different library."
Describe the solution you'd like
Please just add a configuration (ENV variable ?) to disable this webpack plugin if we don't use Moment.js. For ex, same as the one for disable webpack ESLint plugin.
or
In the webpack.config.js file, check if directory "node_modules" contains a moment sub directory before adding the ignore plugin ? With a code similar to:
Activity