about summary refs log tree commit diff
path: root/.babelrc
diff options
context:
space:
mode:
Diffstat (limited to '.babelrc')
-rw-r--r--.babelrc17
1 files changed, 14 insertions, 3 deletions
diff --git a/.babelrc b/.babelrc
index 2c4d9aab3..65155184d 100644
--- a/.babelrc
+++ b/.babelrc
@@ -11,8 +11,6 @@
     ]
   ],
   "plugins": [
-    "transform-react-jsx-source",
-    "transform-react-jsx-self",
     "transform-decorators-legacy",
     "transform-object-rest-spread",
     [
@@ -21,5 +19,18 @@
         "messagesDir": "./build/messages"
       }
     ]
-  ]
+  ],
+  "env": {
+    "development": {
+      "plugins": [
+        "transform-react-jsx-source",
+        "transform-react-jsx-self"
+      ]
+    },
+    "production": {
+      "plugins": [
+        "lodash"
+      ]
+    }
+  }
 }