Skip to content

Commit

Permalink
fix: lower version browsers do not support nullish-coalescing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsemenov committed Sep 8, 2023
1 parent d58b06e commit 28baa3d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"plugins": [
"@babel/plugin-transform-optional-chaining"
"@babel/plugin-transform-optional-chaining",
"@babel/plugin-transform-nullish-coalescing-operator"
]
}
48 changes: 48 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@babel/core": "^7.18.0",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
"@babel/plugin-transform-optional-chaining": "^7.22.10",
"@rollup/plugin-babel": "^6.0.3",
"chokidar-cli": "^3.0.0",
Expand Down

0 comments on commit 28baa3d

Please sign in to comment.