From 26abe2ccb66e9677a20baa5f6a0da64262f53ef8 Mon Sep 17 00:00:00 2001 From: Dominik Piatek Date: Tue, 26 Jul 2016 12:02:38 +0100 Subject: [PATCH] Add babel es3 plugins Signed-off-by: Dominik Piatek --- .babelrc | 6 +++++- package.json | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 7e0a5f29..8531acdb 100644 --- a/.babelrc +++ b/.babelrc @@ -5,7 +5,11 @@ "presets": ["react-hmre"] }, "production": { - "plugins": ["add-module-exports"] + "plugins": [ + "add-module-exports", + "transform-es3-member-expression-literals", + "transform-es3-property-literals" + ] } } } diff --git a/package.json b/package.json index c52c12e9..b21a3b4a 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,8 @@ "babel-eslint": "^6.0.2", "babel-loader": "^6.2.0", "babel-plugin-add-module-exports": "^0.2.1", + "babel-plugin-transform-es3-member-expression-literals": "^6.8.0", + "babel-plugin-transform-es3-property-literals": "^6.8.0", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", "babel-preset-react-hmre": "^1.0.1",