babel-preset-env
Advanced tools
Changelog
v1.3.3 (2017-04-07)
Adding electron as a target was an inadvertent breaking change as it no longer allowed string versions. We added an exception for now, even though it is inconsistent with other versions. Just as a note, the upcoming version 2.x will allow both number and string versions.
We now force the const-es2015-check
plugin to run first (so that it can
correctly report issues before they get transpiled away).
babel-plugin-
prefix for include and exclude (#242) (@yavorsky)The include
and exclude
options now allow both prefixed (babel-plugin-transform-es2015-spread
)
and prefix-less (transform-es2015-spread
) plugin names.
Changelog
v1.3.2 (2017-03-30)
Changelog
v1.3.1 (2017-03-30)
.npmignore
.Changelog
v1.3.0 (2017-03-30)
We now properly check for Symbol.species
support in ArrayBuffer and include the
polyfill if necessary. This should, as a side effect, fix ArrayBuffer-related
errors on IE9.
We've simplified things by adding electron
as a target instead of doing a bunch of
things at runtime. Electron targets should now also be displayed in the debug output.
If you are targeting the node
environment exclusively, the always-included web polyfills
(like dom.iterable
, and a few others) will now no longer be included.
Changelog
v1.2.2 (2017-03-14)
When parsing plugin data, we weren't properly handling browser families. This caused
transform-es2015-block-scoping
and other plugins to be incorrectly added for Edge >= 12.
(s/o to @mgol for the the report and review!)
Fixes an issue where some TypedArray features were not being polyfilled properly. (s/o to @alippai for the report!)
Changelog
v1.2.1 (2017-03-06)
Our plugin data was missing a mapping for the transform-duplicate-keys
plugin which caused it to never be included. (s/o to @Timer for the report!)
Changelog
v1.2.0 (2017-03-03)
Support for uglify
as a target is now available! This will enable all plugins and, as a result, fully compiles your code to ES5. Note, that useBuiltIns will work as before, and only the polyfills that your other target(s) need will be included.
{
"presets": [
["env", {
"targets": {
"chrome": 55,
"uglify": true
},
"useBuiltIns": true,
"modules": false
}]
]
}
Fixes a number of bugs that caused some incorrect and/or missing environment data when parsing compat-table
.