Skip to content
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

prevent calling stats.toJson() #1910

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pikpok
Copy link

@pikpok pikpok commented Mar 3, 2023

Use hasErrors/hasWarnings methods to check for errors on webpack stats, instead of always calling toJson(). Also, in case of errors use errors-only or errors-warnings stat config presets to avoid generating unnecessary stats.

In our (quite large) Razzle project, stats.toJson() call takes a lot of time and memory, and after migrating to webpack 5 even results in OOM errors on build.

@pikpok
Copy link
Author

pikpok commented May 22, 2023

@fivethreeo could you take a look? 👀 or is Razzle abandoned and there's no way of getting this merged and released? 😅

@rahulranjan-blitz
Copy link

looks good tbh.. need @fivethreeo approval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants