fix: add optional chaining
This commit is contained in:
@@ -15,6 +15,7 @@ function preset(context, options = {}) {
|
||||
return {
|
||||
presets: [r(`@babel/preset-env`)],
|
||||
plugins: [
|
||||
r(`@babel/plugin-proposal-optional-chaining`),
|
||||
r(`babel-plugin-transform-typescript-metadata`),
|
||||
r(`@babel/plugin-proposal-optional-chaining`),
|
||||
[r(`@babel/plugin-proposal-decorators`), { legacy: true }],
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
||||
"@babel/plugin-proposal-decorators": "^7.12.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.12.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.14.2",
|
||||
"@babel/plugin-transform-classes": "^7.12.1",
|
||||
"@babel/plugin-transform-instanceof": "^7.12.1",
|
||||
"@babel/plugin-transform-runtime": "^7.12.1",
|
||||
|
||||
Reference in New Issue
Block a user