about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-05-18 10:14:58 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-18 19:14:58 +0200
commit4cc8ddabe5a925fe8dc93f943ae196dfdca2175d (patch)
tree64401dc63a2085b47224cfa75a86ded69f8edfdb
parent07e875972a2ad7df976f87473df3a1447588b665 (diff)
Add transform-runtime for smaller Babel helpers (#3116)
-rw-r--r--.babelrc10
-rw-r--r--package.json1
-rw-r--r--yarn.lock6
3 files changed, 16 insertions, 1 deletions
diff --git a/.babelrc b/.babelrc
index 716f88775..e80364f0f 100644
--- a/.babelrc
+++ b/.babelrc
@@ -32,7 +32,15 @@
     },
     "production": {
       "plugins": [
-        "lodash"
+        "lodash",
+        [
+          "transform-runtime",
+          {
+            "helpers": true,
+            "polyfill": false,
+            "regenerator": false
+          }
+        ]
       ]
     },
     "test": {
diff --git a/package.json b/package.json
index f19fa8d14..f65ebaeb1 100644
--- a/package.json
+++ b/package.json
@@ -33,6 +33,7 @@
     "babel-plugin-transform-object-rest-spread": "^6.23.0",
     "babel-plugin-transform-react-jsx-self": "^6.22.0",
     "babel-plugin-transform-react-jsx-source": "^6.22.0",
+    "babel-plugin-transform-runtime": "^6.23.0",
     "babel-preset-env": "^1.4.0",
     "babel-preset-react": "^6.11.1",
     "coffee-loader": "^0.7.3",
diff --git a/yarn.lock b/yarn.lock
index 03ca284d6..3c277a182 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -984,6 +984,12 @@ babel-plugin-transform-runtime@6.15.0:
   dependencies:
     babel-runtime "^6.9.0"
 
+babel-plugin-transform-runtime@^6.23.0:
+  version "6.23.0"
+  resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee"
+  dependencies:
+    babel-runtime "^6.22.0"
+
 babel-plugin-transform-strict-mode@^6.24.1:
   version "6.24.1"
   resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758"