From 1c3e458012075540440743eb12497786f43d477b Mon Sep 17 00:00:00 2001 From: Luka Skukan Date: Thu, 3 Nov 2016 16:33:24 +0100 Subject: [PATCH] Update build plugins for babel --- .babelrc | 8 +++++++- package.json | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 4a19647..76ab698 100644 --- a/.babelrc +++ b/.babelrc @@ -7,7 +7,13 @@ "plugins": [ [ "transform-decorators-legacy", - "dev-expression" + "dev-expression", + "transform-proto-to-assign", + [ + "transform-es2015-classes", { + "loose": true + } + ] ] ] } diff --git a/package.json b/package.json index becef82..c3e3964 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,8 @@ "babel-loader": "^6.2.4", "babel-plugin-dev-expression": "^0.2.1", "babel-plugin-transform-decorators-legacy": "^1.3.4", + "babel-plugin-transform-es2015-classes": "^6.18.0", + "babel-plugin-transform-proto-to-assign": "^6.9.0", "babel-preset-es2015": "^6.9.0", "babel-preset-react": "^6.11.1", "babel-preset-stage-0": "^6.5.0",