From f61c9883e31f2083a8d79c916fd1fd7f5c199810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 30 Sep 2020 19:19:42 +0200 Subject: [PATCH] fix optional chaining --- babel.config.js | 1 + package.json | 1 + tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index ba993da5..016cb186 100644 --- a/babel.config.js +++ b/babel.config.js @@ -3,6 +3,7 @@ module.exports = { '@babel/preset-env', ], plugins: [ + '@babel/plugin-proposal-nullish-coalescing-operator', '@babel/plugin-proposal-optional-chaining', ], } diff --git a/package.json b/package.json index 40e28492..5c95f518 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install" }, "devDependencies": { + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4", "@babel/plugin-proposal-optional-chaining": "^7.11.0", "@babel/preset-env": "^7.11.5", "@types/prosemirror-commands": "^1.0.3", diff --git a/tsconfig.json b/tsconfig.json index 107fcef6..96ec68b1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "esnext", + "target": "es2019", "module": "esnext", "strict": true, "jsx": "preserve",