Update and synchronize preloaded modules config

Reviewed By: davidaurelio

Differential Revision: D5154657

fbshipit-source-id: cdf752d4a358ee6d4ff06aee74a71052a615c33e
This commit is contained in:
Pieter De Baets 2017-06-06 03:53:34 -07:00 committed by Facebook Github Bot
parent 48edba9e53
commit 2c85490aa2
2 changed files with 5 additions and 11 deletions

View File

@ -213,12 +213,12 @@ if (__DEV__) {
}
require('RCTDebugComponentOwnership');
}
}
// Set up inspector
if (__DEV__) {
if (!global.__RCTProfileIsProfiling) {
// In order to use Cmd+P to record/dump perf data, we need to make sure
// this module is available in the bundle
require('RCTRenderingPerf');
// Set up inspector
const JSInspector = require('JSInspector');
JSInspector.registerAgent(require('NetworkAgent'));
}

View File

@ -21,12 +21,6 @@ const infoLog = require('infoLog');
const invariant = require('fbjs/lib/invariant');
const renderApplication = require('renderApplication');
if (__DEV__) {
// In order to use Cmd+P to record/dump perf data, we need to make sure
// this module is available in the bundle
require('RCTRenderingPerf');
}
type Task = (taskData: any) => Promise<void>;
type TaskProvider = () => Task;
export type ComponentProvider = () => ReactClass<any>;