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

docs(core): document all/none for rollup external #17005

Merged
merged 1 commit into from
May 15, 2023

Conversation

toddbaert
Copy link
Contributor

@toddbaert toddbaert commented May 13, 2023

This option now supports "all"/"none". Moreover the change that added this dramatically changes default packaging behavior of nx:rollup, so it should be clearly documented.

If authors don't take action and had "external": [], (the default) tons of dependencies will suddenly be bundled into the distributed module. For me, that caused a bunch of issues. The least we can do is add this doc, so it's clear how to achieve the previous behavior.

@vercel
Copy link

vercel bot commented May 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2023 8:32pm

This option now supports `"all"/"none"`. Moreover, the addition dramatically changes packaging behavior, so it should be clearly documented.
@mandarini mandarini merged commit c34853d into nrwl:master May 15, 2023
@toddbaert
Copy link
Contributor Author

Thanks for merging @mandarini .

IMHO, it's worth trying to highlight this change as much as possible. I totally see why the change was done, and it certainly was a valid fix. Unfortunately, it also changes the default behavior as I described above, and I'm worried it will give lots of people trouble when they upgrade to 16 and nx/rollup.

@toddbaert toddbaert deleted the patch-1 branch May 15, 2023 14:25
@mandarini
Copy link
Member

Thank you for the feedback @toddbaert ! I'll keep this in mind! :)

@mandarini mandarini self-assigned this May 15, 2023
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants