-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
@nrwl/next build does not treeshake @nrwl/next library #18271
Comments
Any news on this? @AgentEnder |
@astrodomas Not related to the issue itself, but I was not able to send you a private message. How were you able to set this % of Budget that you're showing in the first screenshot? |
This is a PR comment generated by the bot By using https://github.com/hashicorp/nextjs-bundle-analysis , specifically the setup for app router described here: |
This issue has been automatically marked as stale because it hasn't had any activity for 6 months. |
This is related to barrel exports. |
Current Behavior
Currently I have 2 client components exported from my
@mylib/next
but if I import 1 client component viaindex
to my app then my bundlesize increases if it is a direct import - then it decreases.Can this be due to
SWC
?Root index:
Components index:
Component index:
Before direct import:
Expected Behavior (after direct import)
The bundlesize should be reduced:
GitHub Repo
No response
Steps to Reproduce
@nx/next
application@nx/next
libraryindex.ts
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: