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

fix(js): Avoid @babel/preset-env warning in js/babel.ts #14772

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

mauris
Copy link
Contributor

@mauris mauris commented Feb 2, 2023

Current Behavior

When setting useBuiltIns to false while leaving corejs set to 3, @babel/preset-env will give the warning in its output:

WARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`

Expected Behavior

There should not be that warning since useBuiltIns was explicitly set to false. By setting corejs to null when useBuiltIns is set to false, the warning gets suppressed.

See also: https://github.com/babel/babel/blob/main/packages/babel-preset-env/src/normalize-options.ts

@vercel
Copy link

vercel bot commented Feb 2, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 19, 2023 1:05pm

@mauris mauris changed the title fix(js): Avoid @babel/preset-env warning fix(js): Avoid @babel/preset-env warning in js/babel.ts Feb 2, 2023
@mauris
Copy link
Contributor Author

mauris commented Mar 15, 2023

cc @xiongemi

@mandarini mandarini self-assigned this Oct 19, 2023
@mandarini mandarini self-requested a review October 19, 2023 13:04
@mandarini mandarini requested a review from a team as a code owner October 19, 2023 13:04
@mandarini mandarini enabled auto-merge (squash) October 19, 2023 13:06
@mandarini mandarini merged commit d798126 into nrwl:master Oct 19, 2023
2 checks passed
@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 Oct 25, 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.

3 participants