aboutsummaryrefslogtreecommitdiffstats
path: root/.babelrc
diff options
context:
space:
mode:
authorGuillaume2017-10-16 17:57:25 +0200
committerGuillaume2017-10-16 17:57:25 +0200
commit1c8f131301e7efa828f60945273bfb6b16a0e430 (patch)
tree1ca83adf5782e94be25627a9a6b8210a95ca7c63 /.babelrc
parent6346c658c6e6775b7e50c042602f4dfb0aca52ce (diff)
downloadchouette-core-1c8f131301e7efa828f60945273bfb6b16a0e430.tar.bz2
add jest for js test, fix js test errors, remove unused config in config/environement
Diffstat (limited to '.babelrc')
-rw-r--r--.babelrc22
1 files changed, 7 insertions, 15 deletions
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