-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(react): buildable React libraries now generate smaller ESM packages #7199
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nrwl/nx-dev/DZ7fJCLe1WN99EpaPycSueowdqdo [Deployment for fd0748e canceled] |
9e85b89
to
01626d3
Compare
01626d3
to
9b9708c
Compare
9b9708c
to
fd0748e
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This PR updates our
@nrwl/web:package
executor and @nrwl/web/babel` preset so that generated ESM package excludes unnecessary babel built-ins.Current Behavior
nx build mylib --f esm
results in a larger bundle thannx build mylib --f umd
Expected Behavior
ESM should be smaller than UMD.