-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Webpack settings: "IgnorePlugin(/^\.\/locale$/, /moment$/)" cost is linear with dependency count #11702
Labels
Comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Is your proposal related to a problem?
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
or
Describe alternatives you've considered
The only alternative I found for now is to use react-app-rewired (and optionally customize-cra and remove the plugin manually with the code below:
Additional context
(Write your answer here.)
The text was updated successfully, but these errors were encountered: