-
Notifications
You must be signed in to change notification settings - Fork 126
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
bundled node_modules bloat #166
Comments
I've noticed this issue for a while. I tried to resolve it with |
I was able to get outputFileTracingExcludes to work, I'll put up a PR soon. |
Nice. Maybe I had something wrong with the globs |
Trying to update the user's We can't import the config and update the object b/c I think we'll just document the config and let users configure what they want to exclude. |
The extra docs would be useful for this case |
Same as
in OS-specified libraries are pain and Next does not have mechanism to omit them for target infra while bundling. |
thanks @sladg I'll put up a PR next week to remove these at build time. |
This issue is a PSA and to track future improvements to minimize lambda size.
These are dev/build deps that gets bundled, we should remove these during bundling... but for now, if you want to reduce the lambda size, manually remove them prior to deployment.
There be more, but these are the ones that take up the majority of the bloat.
NOTE: after attempting to programmatically setting this, it was too brittle to correctly handle due to the config having potential functions, which is not possible to stringify/parse the user file. And since
next build
runs on a child thread, we can't set the next.config at runtime.The text was updated successfully, but these errors were encountered: