From 308ab1001e00f980de05778544d39e2a60b32ce7 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Tue, 11 Oct 2016 10:08:54 -0700 Subject: [PATCH] Reorganize core JS files Reviewed By: lexs Differential Revision: D3987463 fbshipit-source-id: fa8f1d1bea7ed699120b9705ddc1c83767fcf8e4 --- react-packager/src/Bundler/__tests__/Bundle-test.js | 8 ++++---- react-packager/src/Server/__tests__/Server-test.js | 10 +++++----- react-packager/src/Server/index.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/react-packager/src/Bundler/__tests__/Bundle-test.js b/react-packager/src/Bundler/__tests__/Bundle-test.js index a043c164..9aef2b35 100644 --- a/react-packager/src/Bundler/__tests__/Bundle-test.js +++ b/react-packager/src/Bundler/__tests__/Bundle-test.js @@ -212,7 +212,7 @@ describe('Bundle', () => { }).then(() => { otherBundle.setMainModuleId('foo'); otherBundle.finalize({ - runBeforeMainModule: ['InitializeJavaScriptAppEngine'], + runBeforeMainModule: ['InitializeCore'], runMainModule: true, }); @@ -243,11 +243,11 @@ describe('Bundle', () => { line: 6 }, map: { - file: 'require-InitializeJavaScriptAppEngine.js', + file: 'require-InitializeCore.js', mappings: 'AAAA;', names: [], - sources: [ 'require-InitializeJavaScriptAppEngine.js' ], - sourcesContent: [';require("InitializeJavaScriptAppEngine");'], + sources: [ 'require-InitializeCore.js' ], + sourcesContent: [';require("InitializeCore");'], version: 3, } }, diff --git a/react-packager/src/Server/__tests__/Server-test.js b/react-packager/src/Server/__tests__/Server-test.js index 4cb07397..2a404116 100644 --- a/react-packager/src/Server/__tests__/Server-test.js +++ b/react-packager/src/Server/__tests__/Server-test.js @@ -160,7 +160,7 @@ describe('processRequest', () => { dev: true, platform: undefined, onProgress: jasmine.any(Function), - runBeforeMainModule: ['InitializeJavaScriptAppEngine'], + runBeforeMainModule: ['InitializeCore'], unbundle: false, entryModuleOnly: false, isolateModuleIDs: false, @@ -185,7 +185,7 @@ describe('processRequest', () => { dev: true, platform: 'ios', onProgress: jasmine.any(Function), - runBeforeMainModule: ['InitializeJavaScriptAppEngine'], + runBeforeMainModule: ['InitializeCore'], unbundle: false, entryModuleOnly: false, isolateModuleIDs: false, @@ -210,7 +210,7 @@ describe('processRequest', () => { dev: true, platform: undefined, onProgress: jasmine.any(Function), - runBeforeMainModule: ['InitializeJavaScriptAppEngine'], + runBeforeMainModule: ['InitializeCore'], unbundle: false, entryModuleOnly: false, isolateModuleIDs: false, @@ -440,7 +440,7 @@ describe('processRequest', () => { runModule: true, dev: true, platform: undefined, - runBeforeMainModule: ['InitializeJavaScriptAppEngine'], + runBeforeMainModule: ['InitializeCore'], unbundle: false, entryModuleOnly: false, isolateModuleIDs: false, @@ -463,7 +463,7 @@ describe('processRequest', () => { sourceMapUrl: '/path/to/foo.map?dev=false&runModule=false', dev: false, platform: undefined, - runBeforeMainModule: ['InitializeJavaScriptAppEngine'], + runBeforeMainModule: ['InitializeCore'], unbundle: false, entryModuleOnly: false, isolateModuleIDs: false, diff --git a/react-packager/src/Server/index.js b/react-packager/src/Server/index.js index 1b679e81..a9153d27 100644 --- a/react-packager/src/Server/index.js +++ b/react-packager/src/Server/index.js @@ -130,7 +130,7 @@ const bundleOpts = declareOpts({ type: 'array', default: [ // Ensures essential globals are available and are patched correctly. - 'InitializeJavaScriptAppEngine' + 'InitializeCore' ], }, unbundle: {