v6.14.0 (2016-08-23) TAKE ME TO FLAVOR TOWN
Lots of stuff in this release!
- #3624 A new preset for
es2017
: it includes the 2 previous stage-3 plugins: async/await (via transform-async-to-generator) and trailing commas in functions. (thanks to @bettiolo for the npm package)
npm install babel-preset-es2017 --save-dev
// .babelrc
{ "presets": ["es2017"] }
- #3625, #3673 A new preset called
latest
that transforms ES2015+ (currently ES2015, ES2016, ES2017). You can also pass options down to thees2015
preset.
We also will be working on getting a target/env (autoprefixer) preset soon.
npm install babel-preset-latest --save-dev
// .babelrc
{ "presets": ["latest"] }
// with options
{ "presets": [
["latest", {
"es2015": {
"modules": false
}
}]
] }
- #3671 We also are including a
spec
option for thees2015
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 inString
rather than simple string concatenation.
// .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 compilancy, 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
babel-core
- #3641 Fix exports of babel-core. (@thejameskyle)
- #3646 Remove Guy Fieri from Babel's source code. (@jdan)
Commiters: 17
It's also a lot folk's first PR (or first code PR)!
- Adam Leventhal (ahl)
- Boopathi Rajaa (boopathi)
- Diogo Franco (Kovensky)
- Jordan Scales (jdan)
- Kai Cataldo (kaicataldo)
- Marcelo Jorge Vieira (marcelometal)
- Paul O’Shannessy (zpao)
- Sota Yamashtia (sotayamashita)
- Thomas Aylott (subtleGradient)
New Feature
babel-preset-es2015
babel-preset-latest
- #3673 add options to
babel-preset-latest
. (@hzoo) - #3625 Create
babel-preset-latest
. (@sotayamashita)
- #3673 add options to
babel-preset-es2017
- #3624 Add es2017-preset. (@sotayamashita)
babel-core
,babel-traverse
babel-cli
,babel-core
,babel-generator
,babel-plugin-transform-regenerator
,babel-template
,babel-traverse
babel-generator
,babel-types
Spec Compliancy
babel-plugin-transform-es2015-modules-amd
,babel-plugin-transform-es2015-modules-commonjs
,babel-plugin-transform-es2015-modules-umd
- #3518 Throw error for multiple exports default. (@kaicataldo)
Bug Fix
babel-core
,babel-helper-replace-supers
,babel-plugin-transform-class-properties
,babel-plugin-transform-es2015-classes
,babel-plugin-transform-es2015-function-name
,babel-plugin-transform-es2015-object-super
,babel-plugin-transform-es2015-parameters
babel-cli
- #3644 Fixes #6726 ignore config option. (@subtleGradient)
babel-plugin-transform-es2015-modules-systemjs
- #3650 System.register update expression consistency. (@guybedford)
babel-generator
babel-register
babel-plugin-transform-es2015-block-scoping
babel-traverse
babel-plugin-transform-flow-strip-types
- #3655 Strip flow-only class props without needing transform-class-properties.. (@loganfsmyth)
Documentation
- Other
- #3651 Fixed typo in README.md. (@marcelometal)
Internal
babel-preset-es2015
,babel-preset-latest
babel-preset-es2015
- #3672 Fixes modules test to actually test modules. (@Kovensky)
- #3640 Update test name to reflect reality.. (@eventualbuddha)
- Other