From 991d7a228cf4e59ded3c546f7487b9ee859ebebc Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Mon, 4 Jun 2018 16:32:35 +0300 Subject: [PATCH] transform-class-properties plugin configured --- .babelrc | 3 ++- package.json | 1 + yarn.lock | 13 +++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 67d71ed7a..9e11a85f9 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,4 @@ { - "presets": ["env", "react"] + "presets": ["env", "react"], + "plugins": ["transform-class-properties"] } \ No newline at end of file diff --git a/package.json b/package.json index 7cebd1a3c..5b972d3f5 100755 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "devDependencies": { "babel-core": "6.26.3", "babel-loader": "7.1.4", + "babel-plugin-transform-class-properties": "6.24.1", "babel-preset-env": "1.7.0", "babel-preset-react": "6.24.1", "html-webpack-plugin": "3.2.0", diff --git a/yarn.lock b/yarn.lock index d4e6d218e..54f0fe838 100644 --- a/yarn.lock +++ b/yarn.lock @@ -465,6 +465,10 @@ babel-plugin-syntax-async-functions@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" +babel-plugin-syntax-class-properties@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" + babel-plugin-syntax-exponentiation-operator@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" @@ -489,6 +493,15 @@ babel-plugin-transform-async-to-generator@^6.22.0: babel-plugin-syntax-async-functions "^6.8.0" babel-runtime "^6.22.0" +babel-plugin-transform-class-properties@6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" + dependencies: + babel-helper-function-name "^6.24.1" + babel-plugin-syntax-class-properties "^6.8.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-plugin-transform-es2015-arrow-functions@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"