From fee7aed30f2954d90591a172c29abca9707b4df7 Mon Sep 17 00:00:00 2001 From: Prashant Date: Thu, 14 Jul 2022 09:28:03 +0530 Subject: [PATCH] fix : build issue #40 --- package.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f0655e5c..87df58ad 100644 --- a/package.json +++ b/package.json @@ -98,6 +98,10 @@ "test:coverage": "node scripts/test.js --env=jsdom --watchAll=False --coverage --coverageDirectory=output/coverage/jest" }, "devDependencies": { + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-object-rest-spread": "^7.18.6", + "@babel/preset-env": "^7.18.6", + "@babel/preset-typescript": "^7.18.6", "worker-loader": "^2.0.0" }, "browserslist": [ @@ -154,7 +158,14 @@ }, "babel": { "presets": [ - "react-app","@babel/preset-env", "@babel/preset-react" + "react-app", + "@babel/preset-env", + "@babel/preset-react", + "@babel/preset-typescript" + ], + "plugins": [ + "@babel/proposal-class-properties", + "@babel/proposal-object-rest-spread" ] }, "eslintConfig": {