website
website copied to clipboard
Update preset-env.md
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
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
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
targetssetting - intersection - from the local
targetssetting within the@babel/preset-envoption - no intersection
Further detail is provided in the github issue: https://github.com/babel/babel/issues/15371