Skip to content

Commit 28baa3d

Browse files
committed
fix: lower version browsers do not support nullish-coalescing syntax
via @zbJinu #2060
1 parent d58b06e commit 28baa3d

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"plugins": [
3-
"@babel/plugin-transform-optional-chaining"
3+
"@babel/plugin-transform-optional-chaining",
4+
"@babel/plugin-transform-nullish-coalescing-operator"
45
]
56
}

package-lock.json

+48
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"@babel/core": "^7.18.0",
5454
"@babel/eslint-parser": "^7.17.0",
5555
"@babel/plugin-syntax-class-properties": "^7.12.13",
56+
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
5657
"@babel/plugin-transform-optional-chaining": "^7.22.10",
5758
"@rollup/plugin-babel": "^6.0.3",
5859
"chokidar-cli": "^3.0.0",

0 commit comments

Comments
 (0)