Fix accidental leftover requires (#11513)
Dan Abramov committed
Nov 10, 2017 at 11:43 UTC
54051f9738d90c64d2f52d117bdc49a86bcf8d93
1 file changed
+9
-10
packages/react-rt-renderer/src/ReactNativeRT.js
+9
-10
@@ -10,6 +10,15 @@
10
import type {ReactNativeRTType} from './ReactNativeRTTypes';
11
import type {ReactNodeList} from 'shared/ReactTypes';
12
13
+/**
14
+ * Make sure essential globals are available and are patched correctly. Please don't remove this
15
+ * line. Bundles created by react-packager `require` it before executing any application code. This
16
+ * ensures it exists in the dependency graph and can be `require`d.
17
+ * TODO: require this in packager, not in React #10932517
18
+ */
19
+import 'InitializeCore';
20
+import './ReactNativeRTEventEmitter';
21
+
22
// TODO: direct imports like some-package/src/* are bad. Fix me.
23
import * as ReactFiberErrorLogger from 'react-reconciler/src/ReactFiberErrorLogger';
24
import {showDialog} from 'react-native-renderer/src/ReactNativeFiberErrorDialog';
@@ -21,16 +30,6 @@ import {getFiberFromTag} from './ReactNativeRTComponentTree';
30
import ReactNativeRTFiberRenderer from './ReactNativeRTFiberRenderer';
31
import ReactNativeRTFiberInspector from './ReactNativeRTFiberInspector';
32
24
-/**
25
- * Make sure essential globals are available and are patched correctly. Please don't remove this
26
- * line. Bundles created by react-packager `require` it before executing any application code. This
27
- * ensures it exists in the dependency graph and can be `require`d.
28
- * TODO: require this in packager, not in React #10932517
29
- */
30
-require('InitializeCore');
31
-
32
-require('./ReactNativeRTEventEmitter');
33
-
33
ReactGenericBatching.injection.injectFiberBatchedUpdates(
34
ReactNativeRTFiberRenderer.batchedUpdates,
35
);