Skip to content

Commit f1c79fb

Browse files
committed
chore: support transform optional chaining #199
1 parent aed68ba commit f1c79fb

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

babel.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const presets = ['@babel/preset-env'];
22
const plugins = [
33
'@vue/babel-plugin-jsx',
44
'@babel/plugin-proposal-nullish-coalescing-operator',
5+
'@babel/plugin-proposal-optional-chaining',
56
[
67
'@babel/plugin-proposal-class-properties',
78
{

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"devDependencies": {
6262
"@babel/core": "^7.12.3",
6363
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
64+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
6465
"@babel/plugin-syntax-class-properties": "^7.12.13",
6566
"@babel/plugin-transform-runtime": "^7.12.1",
6667
"@babel/preset-env": "^7.12.1",

yarn.lock

+9
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@
315315
"@babel/helper-plugin-utils" "^7.18.6"
316316
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
317317

318+
"@babel/plugin-proposal-optional-chaining@^7.21.0":
319+
version "7.21.0"
320+
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz#886f5c8978deb7d30f678b2e24346b287234d3ea"
321+
integrity sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==
322+
dependencies:
323+
"@babel/helper-plugin-utils" "^7.20.2"
324+
"@babel/helper-skip-transparent-expression-wrappers" "^7.20.0"
325+
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
326+
318327
"@babel/plugin-proposal-private-property-in-object@^7.21.0":
319328
version "7.21.0"
320329
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz#19496bd9883dd83c23c7d7fc45dcd9ad02dfa1dc"

0 commit comments

Comments
 (0)