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

[Do not merge]: feat(bundling): Add support to rollup for babelUpwardRootMode #17292

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

ndcunningham
Copy link
Contributor

No description provided.

@ndcunningham ndcunningham requested review from a team as code owners May 29, 2023 18:06
@ndcunningham ndcunningham requested review from jaysoo and bcabanes May 29, 2023 18:06
@vercel
Copy link

vercel bot commented May 29, 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 31, 2023 11:45pm

@ndcunningham ndcunningham self-assigned this May 29, 2023
@jaysoo
Copy link
Member

jaysoo commented May 29, 2023

There seems to be missing logic to set rootMode: undefined | 'upward' in rollup.impl.ts. The new babelUpwardRootMode for @nx/rollup:rollup executor will allow users to set rootMode: 'upward' (matching previous behavior), otherwise we should set rootMode: undefined to only use the .babelrc of the current project being built.

I don't think we need to add the babelConfig option to generators. The .babelrc file is already added for the user depending on the --compiler option when generating a library, we just need to update the executor to not set rootMode: 'upward' by default.

@ndcunningham ndcunningham force-pushed the feat/rollup-add-babel-root branch 4 times, most recently from 9eab1b1 to 3b61080 Compare May 30, 2023 16:00
@ndcunningham ndcunningham requested a review from jaysoo May 30, 2023 16:01
@ndcunningham ndcunningham force-pushed the feat/rollup-add-babel-root branch from 11a9da6 to a01a03f Compare May 31, 2023 23:42
@ndcunningham ndcunningham changed the title feat(bundling): Add support to rollup for babelUpwardRootMode [Do not merge]: feat(bundling): Add support to rollup for babelUpwardRootMode Jun 1, 2023
@jaysoo jaysoo merged commit 2d76993 into nrwl:master Jun 5, 2023
jaysoo added a commit that referenced this pull request Jun 5, 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 Jun 11, 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