From 7008de78dc769a0b0d0e3e7df98e6964a06d75cb Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 27 Jul 2016 21:33:16 +0100 Subject: [PATCH] Opt out of using helpers --- config/babel.dev.js | 5 +++-- config/babel.prod.js | 5 +++-- package.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config/babel.dev.js b/config/babel.dev.js index 7482d1f0e85..64545127d07 100644 --- a/config/babel.dev.js +++ b/config/babel.dev.js @@ -21,8 +21,9 @@ module.exports = { 'babel-plugin-transform-object-rest-spread' ].map(require.resolve).concat([ [require.resolve('babel-plugin-transform-runtime'), { - regenerator: true, - polyfill: false + helpers: false, + polyfill: false, + regenerator: true }] ]) }; diff --git a/config/babel.prod.js b/config/babel.prod.js index 86f85c1e80a..f5446012c5e 100644 --- a/config/babel.prod.js +++ b/config/babel.prod.js @@ -21,8 +21,9 @@ module.exports = { 'babel-plugin-transform-react-constant-elements', ].map(require.resolve).concat([ [require.resolve('babel-plugin-transform-runtime'), { - regenerator: true, - polyfill: false + helpers: false, + polyfill: false, + regenerator: true }] ]) }; diff --git a/package.json b/package.json index c405ab88ebb..15a99e59334 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "babel-plugin-transform-class-properties": "6.10.2", "babel-plugin-transform-object-rest-spread": "6.8.0", "babel-plugin-transform-react-constant-elements": "6.9.1", - "babel-plugin-transform-runtime": "6.9.0", + "babel-plugin-transform-runtime": "6.12.0", "babel-preset-es2015": "6.9.0", "babel-preset-es2016": "6.11.3", "babel-preset-react": "6.11.1",