website icon indicating copy to clipboard operation
website copied to clipboard

Update preset-env.md

Open epreston opened this issue 2 years ago • 2 comments

Clarify exception to "targets" handling for backward compatibility.

https://github.com/babel/babel/issues/15371#issuecomment-1404849205

Closes https://github.com/babel/babel/issues/15371

epreston avatar Jan 27 '23 05:01 epreston

Deploy Preview for babel ready!

Name Link
Latest commit 4187d71f657e2e6a98f03c7cfa6f9d30163f32c1
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.

netlify[bot] avatar Jan 27 '23 05:01 netlify[bot]

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: https://github.com/babel/babel/issues/15371

epreston avatar Jan 27 '23 05:01 epreston