Skip to content

Commit 458d56c

Browse files
janicduplessisfacebook-github-bot
authored andcommitted
Remove global babelHelpers and regenerator (facebook#21283)
Summary: Follow up to facebook/metro@8932a9c Babel helpers and regenerator runtime will be imported automatically from `babel/runtime`. We still need to add the global regeneratorRuntime for jest tests since we disable babel-runtime currently. Pull Request resolved: facebook#21283 Reviewed By: mjesun Differential Revision: D10010963 Pulled By: rafeca fbshipit-source-id: da5e23dd901f8f8940d46816b4fc9290d0e28c76
1 parent 544adca commit 458d56c

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

IntegrationTests/RCTRootViewIntegrationTestApp.js

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
'use strict';
1111

12-
require('regenerator-runtime/runtime');
13-
1412
const React = require('react');
1513
const ReactNative = require('react-native');
1614

jest/setup.js

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ jest
9292
})
9393
.mock('ensureComponentIsNative', () => () => true);
9494

95-
const mockEmptyObject = {};
9695
const mockNativeModules = {
9796
AlertManager: {
9897
alertWithArgs: jest.fn(),

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
"react": "16.5.0"
149149
},
150150
"dependencies": {
151+
"@babel/runtime": "^7.0.0",
151152
"absolute-path": "^0.0.0",
152153
"art": "^0.10.0",
153154
"base64-js": "^1.1.2",
@@ -203,7 +204,6 @@
203204
},
204205
"devDependencies": {
205206
"@babel/core": "^7.0.0",
206-
"@babel/runtime": "^7.0.0",
207207
"async": "^2.4.0",
208208
"babel-eslint": "9.0.0",
209209
"babel-generator": "^6.26.0",

rn-get-polyfills.js

-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ module.exports = () => [
1818
require.resolve('./Libraries/polyfills/Array.prototype.es6.js'),
1919
require.resolve('./Libraries/polyfills/Array.es6.js'),
2020
require.resolve('./Libraries/polyfills/Object.es7.js'),
21-
require.resolve('./Libraries/polyfills/babelHelpers.js'),
2221
];

0 commit comments

Comments
 (0)