Skip to content

fix(js): update babel preset to specify minor version of core-js for better optimization #22433

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

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Mar 21, 2024

This PR adds the minor version when passing corejs option to @babel/preset-env. When it is passed as just major version 3, there are some optimizations that may be skipped.

  • Also fix @nx/rollup:configuration generator to add core-js as needed (apps don't need it anymore, but libs still do if they target cjs)
  • Update core-js to ^3.36.1

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #21354

@jaysoo jaysoo marked this pull request as ready for review March 21, 2024 15:21
@jaysoo jaysoo requested review from a team as code owners March 21, 2024 15:21
@jaysoo jaysoo requested a review from Coly010 March 21, 2024 15:21
Copy link

vercel bot commented Mar 21, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 22, 2024 1:55am

@jaysoo jaysoo requested a review from mandarini March 21, 2024 15:21
ndcunningham
ndcunningham previously approved these changes Mar 21, 2024
@ndcunningham ndcunningham self-requested a review March 21, 2024 16:23
@ndcunningham ndcunningham dismissed their stale review March 21, 2024 16:24

Updated status for changes

@jaysoo jaysoo force-pushed the fix_core_js branch 3 times, most recently from 6b7f9d5 to 4a72fa2 Compare March 22, 2024 01:28
@jaysoo jaysoo requested a review from a team as a code owner March 22, 2024 01:28
@jaysoo jaysoo requested a review from leosvelperez March 22, 2024 01:28
…better optimization

- Also fix rollup:configuration generator to add core-js as needed
@jaysoo jaysoo merged commit 61cb63d into master Mar 22, 2024
@jaysoo jaysoo deleted the fix_core_js branch March 22, 2024 02:09
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 Mar 29, 2024
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.

Corejs should not be set to "3" in @nx/js/babel preset
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy