diff --git a/IntegrationTests/RCTRootViewIntegrationTestApp.js b/IntegrationTests/RCTRootViewIntegrationTestApp.js index a81317d50..c40121648 100644 --- a/IntegrationTests/RCTRootViewIntegrationTestApp.js +++ b/IntegrationTests/RCTRootViewIntegrationTestApp.js @@ -10,7 +10,7 @@ */ 'use strict'; -require('regenerator/runtime'); +require('regenerator-runtime/runtime'); var React = require('react'); var ReactNative = require('react-native'); diff --git a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js index b12f4f46a..2f48852d1 100644 --- a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js +++ b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js @@ -22,7 +22,7 @@ /* eslint strict: 0 */ /* globals GLOBAL: true, window: true */ -require('regenerator/runtime'); +require('regenerator-runtime/runtime'); if (typeof GLOBAL === 'undefined') { global.GLOBAL = global; diff --git a/jestSupport/env.js b/jestSupport/env.js index ea3901bf1..13950bc69 100644 --- a/jestSupport/env.js +++ b/jestSupport/env.js @@ -17,6 +17,6 @@ global.__fbBatchedBridgeConfig = { }; global.Promise = require('promise'); -global.regeneratorRuntime = require.requireActual('regenerator/runtime'); +global.regeneratorRuntime = require.requireActual('regenerator-runtime/runtime'); jest.setMock('ErrorUtils', require('ErrorUtils')); diff --git a/package.json b/package.json index 8e03b08ee..7e111fbf6 100644 --- a/package.json +++ b/package.json @@ -165,7 +165,7 @@ "react-timer-mixin": "^0.13.2", "react-transform-hmr": "^1.0.4", "rebound": "^0.0.13", - "regenerator": "^0.8.36", + "regenerator-runtime": "^0.9.5", "sane": "^1.2.0", "semver": "^5.0.3", "source-map": "^0.4.4",