Skip to content

Commit

Permalink
Remove global babelHelpers and regenerator (#21283)
Browse files Browse the repository at this point in the history
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/react-native#21283

Reviewed By: mjesun

Differential Revision: D10010963

Pulled By: rafeca

fbshipit-source-id: da5e23dd901f8f8940d46816b4fc9290d0e28c76
  • Loading branch information
janicduplessis authored and aleclarson committed Mar 26, 2019
1 parent 405a9f7 commit d94ba38
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions IntegrationTests/RCTRootViewIntegrationTestApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
*/
'use strict';

require('regenerator-runtime/runtime');

var React = require('React');
var ReactNative = require('react-native');

Expand Down
1 change: 0 additions & 1 deletion jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ jest
})
.mock('ensureComponentIsNative', () => () => true);

const mockEmptyObject = {};
const mockNativeModules = {
AlertManager: {
alertWithArgs: jest.fn(),
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
"react": "16.6.3"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"babel-core": "^6.24.1",
Expand Down
1 change: 0 additions & 1 deletion rn-get-polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ module.exports = () => [
require.resolve('./Libraries/polyfills/Array.prototype.es6.js'),
require.resolve('./Libraries/polyfills/Array.es6.js'),
require.resolve('./Libraries/polyfills/Object.es7.js'),
require.resolve('./Libraries/polyfills/babelHelpers.js'),
];

0 comments on commit d94ba38

Please sign in to comment.