Skip to content

Commit

Permalink
Enable optional catch binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Johnson committed Apr 2, 2020
1 parent d7f8da3 commit 391e4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ module.exports = declare((api, options) => {
require('@babel/plugin-transform-member-expression-literals'),
require('@babel/plugin-transform-property-literals'),
require('@babel/plugin-proposal-nullish-coalescing-operator'),
require('@babel/plugin-proposal-optional-catch-binding'),
require('@babel/plugin-proposal-optional-chaining'),
jscript ? require('@babel/plugin-transform-jscript') : null,
[require('@babel/plugin-proposal-object-rest-spread'), {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@babel/helper-plugin-utils": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/plugin-proposal-optional-catch-binding": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/plugin-transform-classes": "^7.4.4",
"@babel/plugin-transform-exponentiation-operator": "^7.2.0",
Expand Down

0 comments on commit 391e4c5

Please sign in to comment.