Skip to content

Commit

Permalink
build: force use of @babel/plugin-proposal-optional-chaining (#3335)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Nov 30, 2021
1 parent 96192e4 commit 78268d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion babel.config.js
Expand Up @@ -7,7 +7,10 @@ module.exports = (api) => {
return {
presets: [
['@babel/preset-env', {
include: ['@babel/plugin-proposal-nullish-coalescing-operator'],
include: [
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
],
loose: true,
targets,
useBuiltIns: false, // Don't add polyfills automatically.
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -42,6 +42,7 @@
"@babel/eslint-parser": "^7.11.3",
"@babel/eslint-plugin": "^7.11.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
"@babel/plugin-transform-react-jsx": "^7.10.4",
"@babel/preset-env": "^7.14.7",
"@babel/register": "^7.10.5",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Expand Up @@ -42265,6 +42265,7 @@ hexo-filter-github-emojis@arturi/hexo-filter-github-emojis:
"@babel/eslint-parser": ^7.11.3
"@babel/eslint-plugin": ^7.11.3
"@babel/plugin-proposal-nullish-coalescing-operator": ^7.14.5
"@babel/plugin-proposal-optional-chaining": ^7.16.0
"@babel/plugin-transform-react-jsx": ^7.10.4
"@babel/preset-env": ^7.14.7
"@babel/register": ^7.10.5
Expand Down

0 comments on commit 78268d0

Please sign in to comment.