-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Production build is taking more than 25 mins earlier it was taking 6 mins #9975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicate of #9966. |
Here's a workaround: #9930 (comment) |
@mareksuscak there is no improvement in production build performance. Still take 25 mins before this change build was taking 6 mins. It did help in local development now hot reloading is happening fast. There could be some other issue while creating production build. |
Yeah I feel like eslint is the culprit here and should not be run as part of the build. We can always run eslint outside of the build context. |
Agree, I have eslint for my src folder files and it takes 30 sec to check all files. as we don't get log we have not idea whats going on in backend. This is really frustrating. |
I see one of new bug created today #9997 says react-scripts ignores .eslintignore files. This could be another reason build take so much time. as it might be scanning node_modules files too. |
Hi React-scripts team, |
They should really split the 4.0.1 release and fix the performance issues first. |
@pascalstr I read in one of the issues or PRs that the maintainers are not FB employees (does FB even use react anymore?) which somewhat explains why things are moving at snail's pace. |
team, when are you planning to fix this build performance issue. This is really painful to see build to run for 30 mins. Please priorities this issue. |
There is a great non-intrusive workaround mentioned by @mareksuscak: #9975 (comment) |
@hugogiraudel - I have replied that fix did not help in prod build, it only help in hot reloading. |
Yeah it is looking pretty stale and so many projects / tutorials are depending on it. Just no response after a broken major release, it will reflect bad on React. It was a great tool once but looking at the current state it seems like abandoning this is a safe choice instead of relying on this project. |
See also excluding IgnorePlugin if you are not using moment.js. In our case it took 2 minutes (7 minutes total). eg, If you use config overrides packages:
|
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
Describe the bug
Production build react-scripts build is now taking more than 25 mins earlier it was taking 6 mins
Using react-scripts 4.0.0
trying to rollback to script 3.4.3 and will see the build prformance
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
Expected behavior
Build should take 6-7 mins
Actual behavior
Build is taking more than 25 mins.
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: