aboutsummaryrefslogtreecommitdiffstats
path: root/.babelrc
diff options
context:
space:
mode:
authorcedricnjanga2017-10-06 10:17:17 +0200
committercedricnjanga2017-10-06 10:17:17 +0200
commitb6f08e58fae35d5dd8a610af31c2950b37746695 (patch)
tree989843dd674c41ff73eb75bd630ce4cc91fff91b /.babelrc
parent08517c27551a2dd8b227f6662f4c41574a36d81e (diff)
downloadchouette-core-b6f08e58fae35d5dd8a610af31c2950b37746695.tar.bz2
Add webpacker gem and migrate the React apps
Diffstat (limited to '.babelrc')
-rw-r--r--.babelrc26
1 files changed, 26 insertions, 0 deletions
diff --git a/.babelrc b/.babelrc
new file mode 100644
index 000000000..6d4eeeba6
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,26 @@
+{
+ "presets": [
+ [
+ "env",
+ {
+ "modules": false,
+ "targets": {
+ "browsers": "> 1%",
+ "uglify": false
+ },
+ "useBuiltIns": true
+ }
+ ],
+ "react"
+ ],
+ "plugins": [
+ "syntax-dynamic-import",
+ "transform-object-rest-spread",
+ [
+ "transform-class-properties",
+ {
+ "spec": true
+ }
+ ]
+ ]
+}