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

Update preset-env.md #2714

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update preset-env.md #2714

wants to merge 2 commits into from

Conversation

epreston
Copy link

@epreston epreston commented Jan 27, 2023

Clarify exception to "targets" handling for backward compatibility.

babel/babel#15371 (comment)

Closes babel/babel#15371

Clarify exception to "targets" handling for backward compatibility.

babel/babel#15371 (comment)
@netlify
Copy link

netlify bot commented Jan 27, 2023

Deploy Preview for babel ready!

Name Link
🔨 Latest commit 4187d71
🔍 Latest deploy log https://app.netlify.com/sites/babel/deploys/64028e9721365d0007303cf7
😎 Deploy Preview https://deploy-preview-2714--babel.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@epreston
Copy link
Author

This clarifies the behaviour of the targets setting in @babel/preset-env. The behaviour of esmodule and browsers "intersection" differs depending on where the settings come from.

  • from the .browserslistrc - intersection
  • from the top level targets setting - intersection
  • from the local targets setting within the @babel/preset-env option - no intersection

Further detail is provided in the github issue: babel/babel#15371

docs/preset-env.md Outdated Show resolved Hide resolved
@epreston epreston closed this by deleting the head repository Mar 6, 2023
@nicolo-ribaudo nicolo-ribaudo reopened this Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: babel/preset-env - document says esmodules is intersected, build warning says its ignored.
3 participants