Skip to content

Commit 5627616

Browse files
janicduplessisgrabbou
authored andcommitted
Remove global babelHelpers and regenerator (#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: #21283 Reviewed By: mjesun Differential Revision: D10010963 Pulled By: rafeca fbshipit-source-id: da5e23dd901f8f8940d46816b4fc9290d0e28c76
1 parent e8663ff commit 5627616

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

IntegrationTests/RCTRootViewIntegrationTestApp.js

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
"react": "16.5.0"
150150
},
151151
"dependencies": {
152+
"@babel/runtime": "^7.0.0",
152153
"absolute-path": "^0.0.0",
153154
"art": "^0.10.0",
154155
"base64-js": "^1.1.2",

rn-get-polyfills.js

Lines changed: 0 additions & 1 deletion
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)