Add optional catch binding to stage 3 preset (#6032)

This commit is contained in:
Brian Ng 2017-07-31 15:00:43 -05:00 committed by Henry Zhu
parent 6d965c0926
commit c5e81516dd
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@
"babel-plugin-syntax-dynamic-import": "7.0.0-alpha.17",
"babel-plugin-transform-async-generator-functions": "7.0.0-alpha.17",
"babel-plugin-transform-object-rest-spread": "7.0.0-alpha.17",
"babel-plugin-transform-optional-catch-binding": "7.0.0-alpha.17",
"babel-plugin-transform-unicode-property-regex": "^2.0.2"
}
}

View File

@ -1,6 +1,7 @@
import syntaxDynamicImport from "babel-plugin-syntax-dynamic-import";
import transformAsyncGeneratorFunctions from "babel-plugin-transform-async-generator-functions";
import transformObjectRestSpread from "babel-plugin-transform-object-rest-spread";
import transformOptionalCatchBinding from "babel-plugin-transform-optional-catch-binding";
import transformUnicodePropertyRegex from "babel-plugin-transform-unicode-property-regex";
export default function() {
@ -9,6 +10,7 @@ export default function() {
syntaxDynamicImport,
transformAsyncGeneratorFunctions,
transformObjectRestSpread,
transformOptionalCatchBinding,
transformUnicodePropertyRegex,
],
};