about summary refs log tree commit diff
path: root/.babelrc
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-05-05 19:18:23 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-06 04:18:23 +0200
commit37caf0b36e90e7ec6219dcaaf6cdf4e1a2825cce (patch)
treebb24703668f901a16c116e531cc938ea621e36f0 /.babelrc
parentcf0b7532097e7a59d59ea71a89ba39f8a4ab62ad (diff)
separate .babelrc for prod/dev, add babel-plugin-lodash (#2829)
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"
+      ]
+    }
+  }
 }