diff --git a/.babelrc b/.babelrc index 4f26b9b..c5846bb 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,4 @@ { - "presets": ["@babel/preset-env", "@babel/preset-react"], + "presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"], "plugins": ["@babel/plugin-proposal-optional-chaining"] } diff --git a/package.json b/package.json index c1f88ca..9623480 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@babel/node": "^7.6.1", "@babel/preset-env": "^7.6.0", "@babel/preset-react": "^7.0.0", + "@babel/preset-typescript": "^7.8.3", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.0", "eslint-plugin-prettier": "^3.1.2",