mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix accidental leftover requires (#11513)
This commit is contained in:
+9
-10
@@ -10,6 +10,15 @@
|
||||
import type {ReactNativeRTType} from './ReactNativeRTTypes';
|
||||
import type {ReactNodeList} from 'shared/ReactTypes';
|
||||
|
||||
/**
|
||||
* Make sure essential globals are available and are patched correctly. Please don't remove this
|
||||
* line. Bundles created by react-packager `require` it before executing any application code. This
|
||||
* ensures it exists in the dependency graph and can be `require`d.
|
||||
* TODO: require this in packager, not in React #10932517
|
||||
*/
|
||||
import 'InitializeCore';
|
||||
import './ReactNativeRTEventEmitter';
|
||||
|
||||
// TODO: direct imports like some-package/src/* are bad. Fix me.
|
||||
import * as ReactFiberErrorLogger from 'react-reconciler/src/ReactFiberErrorLogger';
|
||||
import {showDialog} from 'react-native-renderer/src/ReactNativeFiberErrorDialog';
|
||||
@@ -21,16 +30,6 @@ import {getFiberFromTag} from './ReactNativeRTComponentTree';
|
||||
import ReactNativeRTFiberRenderer from './ReactNativeRTFiberRenderer';
|
||||
import ReactNativeRTFiberInspector from './ReactNativeRTFiberInspector';
|
||||
|
||||
/**
|
||||
* Make sure essential globals are available and are patched correctly. Please don't remove this
|
||||
* line. Bundles created by react-packager `require` it before executing any application code. This
|
||||
* ensures it exists in the dependency graph and can be `require`d.
|
||||
* TODO: require this in packager, not in React #10932517
|
||||
*/
|
||||
require('InitializeCore');
|
||||
|
||||
require('./ReactNativeRTEventEmitter');
|
||||
|
||||
ReactGenericBatching.injection.injectFiberBatchedUpdates(
|
||||
ReactNativeRTFiberRenderer.batchedUpdates,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user