fix optional chaining

This commit is contained in:
Philipp Kühn
2020-09-30 19:19:42 +02:00
parent ecfa26b28a
commit f61c9883e3
3 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ module.exports = {
'@babel/preset-env', '@babel/preset-env',
], ],
plugins: [ plugins: [
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-optional-chaining',
], ],
} }

View File

@@ -21,6 +21,7 @@
"reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install" "reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install"
}, },
"devDependencies": { "devDependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.11.0", "@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/preset-env": "^7.11.5", "@babel/preset-env": "^7.11.5",
"@types/prosemirror-commands": "^1.0.3", "@types/prosemirror-commands": "^1.0.3",

View File

@@ -1,6 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "esnext", "target": "es2019",
"module": "esnext", "module": "esnext",
"strict": true, "strict": true,
"jsx": "preserve", "jsx": "preserve",