-
Notifications
You must be signed in to change notification settings - Fork 26.2k
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
Optimize minifier #6950
Comments
Checking the stats first. But at least until #6950 is figured out we should disable it for serverless builds as it's also disabled for zeit.co serverless builds.
I tried using ESBuild for minification only instead of Terser but you seem to be compiling packages before using them? So, I couldn't configure it with Next.js. Would you like to try ESBuild? |
When it compresses in a similar ballpark to Terser we'd be happy to investigate adding it. I'm going to close this issue for now given that we're working on webpack 5 support which has stable build output that can be reliably cached: #13341 this will allow us to avoid most of the work that was previously done on every build. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Currently more than half of the
next build
time is spent in running minification (Terser).@developit has some ideas on how to optimize this.
The text was updated successfully, but these errors were encountered: