From e5b2e108c6fbad24ead669f0e8f18ff9300f4d71 Mon Sep 17 00:00:00 2001 From: Hazork Date: Fri, 19 Mar 2021 17:08:42 -0300 Subject: [PATCH] Fix babel compiling --- app/.babelrc | 2 +- app/package-lock.json | 4 +++- app/package.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/.babelrc b/app/.babelrc index 6814234..b565524 100644 --- a/app/.babelrc +++ b/app/.babelrc @@ -1,4 +1,4 @@ { "presets": ["@babel/preset-env", "@babel/preset-typescript"], - "plugins": [["@babel/transform-runtime"]] + "plugins": ["@babel/transform-runtime", "@babel/proposal-class-properties", "@babel/proposal-object-rest-spread"] } diff --git a/app/package-lock.json b/app/package-lock.json index 831df03..85af234 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1096,6 +1096,7 @@ "version": "7.13.10", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.10.tgz", "integrity": "sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==", + "dev": true, "requires": { "regenerator-runtime": "^0.13.4" } @@ -4053,7 +4054,8 @@ "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" + "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==", + "dev": true }, "regenerator-transform": { "version": "0.14.5", diff --git a/app/package.json b/app/package.json index f18e9bd..0b295a3 100644 --- a/app/package.json +++ b/app/package.json @@ -21,7 +21,6 @@ }, "homepage": "https://github.com/ArthurFiorette/steam-trader#readme", "dependencies": { - "@babel/runtime": "^7.13.10", "axios": "^0.21.1", "colors": "^1.4.0", "steam-totp": "^2.1.1", @@ -32,6 +31,8 @@ "devDependencies": { "@babel/cli": "^7.13.10", "@babel/core": "^7.13.10", + "@babel/plugin-proposal-class-properties": "^7.13.0", + "@babel/plugin-proposal-object-rest-spread": "^7.13.8", "@babel/plugin-transform-runtime": "^7.13.10", "@babel/preset-env": "^7.13.10", "@babel/preset-typescript": "^7.13.0",