Skip to content

Commit e55e7dc

Browse files
committed
chore: support transform nullish
1 parent 4b0b87c commit e55e7dc

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

babel.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
const presets = ['@babel/preset-env'];
2-
const plugins = ['@vue/babel-plugin-jsx'];
2+
const plugins = [
3+
'@vue/babel-plugin-jsx',
4+
'@babel/plugin-proposal-nullish-coalescing-operator',
5+
];
36

47
const babelConfig = {
58
presets,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
},
5656
"devDependencies": {
5757
"@babel/core": "^7.12.3",
58+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
5859
"@babel/plugin-transform-runtime": "^7.12.1",
5960
"@babel/preset-env": "^7.12.1",
6061
"@babel/runtime-corejs3": "^7.12.5",

yarn.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@
187187
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz#806526ce125aed03373bc416a828321e3a6a33af"
188188
integrity sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ==
189189

190+
"@babel/helper-plugin-utils@^7.14.5":
191+
version "7.14.5"
192+
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz#5ac822ce97eec46741ab70a517971e443a70c5a9"
193+
integrity sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==
194+
190195
"@babel/helper-remap-async-to-generator@^7.13.0":
191196
version "7.13.0"
192197
resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.13.0.tgz#376a760d9f7b4b2077a9dd05aa9c3927cadb2209"
@@ -360,6 +365,14 @@
360365
"@babel/helper-plugin-utils" "^7.13.0"
361366
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
362367

368+
"@babel/plugin-proposal-nullish-coalescing-operator@^7.14.5":
369+
version "7.14.5"
370+
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz#ee38589ce00e2cc59b299ec3ea406fcd3a0fdaf6"
371+
integrity sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==
372+
dependencies:
373+
"@babel/helper-plugin-utils" "^7.14.5"
374+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
375+
363376
"@babel/plugin-proposal-numeric-separator@^7.12.13":
364377
version "7.12.13"
365378
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.13.tgz#bd9da3188e787b5120b4f9d465a8261ce67ed1db"

0 commit comments

Comments
 (0)