6.14.0 Released

A new es2017, latest preset, and lots of fixes in this release.


This content originally appeared on Babel Blog and was authored by Henry Zhu

A new es2017, latest preset, and lots of fixes in this release.

It's been a while since the last post! If you haven't seen it, we started posting some notes at babel/notes.

And... we usually post the changelog in Releases, but I figured it could go as a post as well for minor versions.

TAKE ME TO FLAVOR TOWN

#3624 A new preset for es2017: it includes the 2 previous stage-3 plugins:

JavaScript
// .babelrc
{ "presets": ["es2017"] }

#3625, #3673 A new preset called latest to include at transforms ES2015+ (currently ES2015, ES2016, ES2017). You can also pass options down to the es2015 preset.

We also will be working on getting a target/env (autoprefixer) preset soon.

JavaScript
// .babelrc
{ "presets": ["latest"] }
// with options
{ "presets": [
["latest", {
"es2015": {
"modules": false
}
}]
] }

#3671 We also are including a spec option for the es2015 preset since the arrow function/template string plugins support this option.

spec for arrow functions adds a runtime check to make sure arrow functions are not instantiated (since they transform into normal functions). spec for template literals wraps all expressions in String rather than simple string concatenation.

JavaScript
// .babelrc
{
"presets": [
["es2015", { "spec": true }]
]
}

#3659 @kittens added an optional wrapPluginVisitorMethod callback to transform to allow for performance tracking/introspection of plugins. More docs will be added on the website soon.

#3658 sourcemaps will also now have a names field for identifiers to allow debuggers to do re-aliasing of mangled identifiers.

#3518 For spec compliancy, we now will throw on a file with multiple export default.

Notable Bug Fixes

#3527 Fix class inheritance in IE <=10 without loose mode.

#3644 Support the ignore config option in .babelrc.

#3655 Flow-only class props were not be stripped without transform-class-properties.

Guy Fieri

#3641 Fix exports of babel-core. (@thejameskyle)

#3646 Remove Guy Fieri from Babel's source code. (@jdan)

Thanks!

And check out babel/babel#v6.14.0 for the rest of the changelog.


This content originally appeared on Babel Blog and was authored by Henry Zhu


Print Share Comment Cite Upload Translate Updates
APA

Henry Zhu | Sciencx (2016-08-24T09:30:00+00:00) 6.14.0 Released. Retrieved from https://www.scien.cx/2016/08/24/6-14-0-released-2/

MLA
" » 6.14.0 Released." Henry Zhu | Sciencx - Wednesday August 24, 2016, https://www.scien.cx/2016/08/24/6-14-0-released-2/
HARVARD
Henry Zhu | Sciencx Wednesday August 24, 2016 » 6.14.0 Released., viewed ,<https://www.scien.cx/2016/08/24/6-14-0-released-2/>
VANCOUVER
Henry Zhu | Sciencx - » 6.14.0 Released. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2016/08/24/6-14-0-released-2/
CHICAGO
" » 6.14.0 Released." Henry Zhu | Sciencx - Accessed . https://www.scien.cx/2016/08/24/6-14-0-released-2/
IEEE
" » 6.14.0 Released." Henry Zhu | Sciencx [Online]. Available: https://www.scien.cx/2016/08/24/6-14-0-released-2/. [Accessed: ]
rf:citation
» 6.14.0 Released | Henry Zhu | Sciencx | https://www.scien.cx/2016/08/24/6-14-0-released-2/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.