Skip to content

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

@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