From d6d4d95b2042aad838abb1b29bdbc00a34cdd241 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 30 Apr 2019 12:42:04 +0100 Subject: [PATCH] Fix .babelrc to be the same as react-sdk it was missing some plugins which firstly means we're using inconsistent js between projects, but also causes builds to fail due to our unique build system. --- .babelrc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.babelrc b/.babelrc index 6ba0e0dae..3fb847ad1 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,21 @@ { - "presets": ["react", "es2015", "es2016"], - "plugins": ["transform-class-properties", "transform-object-rest-spread", "transform-async-to-bluebird", "transform-runtime", "add-module-exports"] + "presets": [ + "react", + "es2015", + "es2016" + ], + "plugins": [ + [ + "transform-builtin-extend", + { + "globals": ["Error"] + } + ], + "transform-class-properties", + "transform-object-rest-spread", + "transform-async-to-bluebird", + "transform-runtime", + "add-module-exports", + "syntax-dynamic-import" + ] }