website
website copied to clipboard
Add a note about preset-env browserlists behavior
@babel/preset-env
only uses Android
, Chrome
, Edge
, Firefox
, IE
, iOS
, Safari
, Node
versions for detecting which transforms to include:
https://github.com/babel/babel/blob/e875fc7bc11ffdb8d5176028ae2b336bf7455c6c/packages/babel-preset-env/src/targets-parser.js#L32-L42
and silently ignores other browsers:
https://github.com/babel/babel/blob/e875fc7bc11ffdb8d5176028ae2b336bf7455c6c/packages/babel-preset-env/src/targets-parser.js#L72-L76
Deploy preview for babel ready!
Built with commit 2d2e17549d87954435b46d276caf92928654c01f
https://deploy-preview-1774--babel.netlify.com
Deploy preview for babel ready!
Built with commit 134256a200fbc2a1fc5c76a0ba1880dbafadc284
https://deploy-preview-1774--babel.netlify.com
@ylemkimon let's update this section to be more explicit:
Example environments: chrome, opera, edge, firefox, safari, ie, ios, android, node, electron.
https://github.com/babel/website/blob/master/docs/preset-env.md#targets
@existentialism I've moved the note to Targets
section.
Now, I realize opera
is missing from browserNameMap
in preset-env
. I'll send a PR to babel/babel.