From 87166ab8c816aefea24ad650461363a2ceffb01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 22 Sep 2020 21:54:44 +0200 Subject: [PATCH] add optional chaining --- babel.config.js | 3 +++ docs/babel.config.js | 3 +++ docs/package.json | 1 + package.json | 1 + 4 files changed, 8 insertions(+) diff --git a/babel.config.js b/babel.config.js index edef9fd3..6e5192b8 100644 --- a/babel.config.js +++ b/babel.config.js @@ -2,4 +2,7 @@ module.exports = { presets: [ '@babel/preset-env', ], + plugins: [ + '@babel/plugin-proposal-optional-chaining', + ], } \ No newline at end of file diff --git a/docs/babel.config.js b/docs/babel.config.js index 9a353e32..017d1e3b 100644 --- a/docs/babel.config.js +++ b/docs/babel.config.js @@ -3,4 +3,7 @@ module.exports = { '@babel/preset-env', '@babel/preset-react', ], + plugins: [ + '@babel/plugin-proposal-optional-chaining', + ], } \ No newline at end of file diff --git a/docs/package.json b/docs/package.json index b88d8662..3581fd3d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -24,6 +24,7 @@ "vue-github-button": "^1.1.2" }, "devDependencies": { + "@babel/plugin-proposal-optional-chaining": "^7.11.0", "@babel/preset-env": "^7.11.5", "@babel/preset-react": "^7.10.4", "html-loader": "^1.3.1", diff --git a/package.json b/package.json index 5a0b7abd..855b4319 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install" }, "devDependencies": { + "@babel/plugin-proposal-optional-chaining": "^7.11.0", "@babel/preset-env": "^7.11.5", "@types/prosemirror-commands": "^1.0.3", "@types/prosemirror-history": "^1.0.1",