Skip to content

Commit

Permalink
add Babel optional chaining plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdi About committed Apr 24, 2021
1 parent 2b8f0dc commit 9855868
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"@babel/core": "^7.11.1",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
"@babel/plugin-transform-object-assign": "^7.10.4",
"@babel/polyfill": "^7.10.4",
"@babel/preset-env": "^7.11.0",
Expand Down
3 changes: 2 additions & 1 deletion src/client/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-optional-chaining"
]
}
3 changes: 2 additions & 1 deletion src/server/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"transform-es3-member-expression-literals",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-object-assign"
"@babel/plugin-transform-object-assign",
"@babel/plugin-proposal-optional-chaining"
]
}

0 comments on commit 9855868

Please sign in to comment.