From 1c8f131301e7efa828f60945273bfb6b16a0e430 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 16 Oct 2017 17:57:25 +0200 Subject: add jest for js test, fix js test errors, remove unused config in config/environement --- .babelrc | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to '.babelrc') diff --git a/.babelrc b/.babelrc index efa322372..f7fac601b 100644 --- a/.babelrc +++ b/.babelrc @@ -1,19 +1,11 @@ { "presets": [ - ["env", { - "modules": false, - "targets": { - "browsers": "> 1%", - "uglify": true - }, - "useBuiltIns": true - }], - "react" + ["es2015"], ["react"] ], - "plugins": [ - "syntax-dynamic-import", - "transform-object-rest-spread", - ["transform-class-properties", { "spec": true }] - ] -} + "env": { + "test": { + "plugins": ["transform-es2015-modules-commonjs"] + } + } +} \ No newline at end of file -- cgit v1.2.3