mirror of https://github.com/status-im/metro.git
Reorganize core JS files
Reviewed By: lexs Differential Revision: D3987463 fbshipit-source-id: fa8f1d1bea7ed699120b9705ddc1c83767fcf8e4
This commit is contained in:
parent
89d4f26846
commit
308ab1001e
|
@ -212,7 +212,7 @@ describe('Bundle', () => {
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
otherBundle.setMainModuleId('foo');
|
otherBundle.setMainModuleId('foo');
|
||||||
otherBundle.finalize({
|
otherBundle.finalize({
|
||||||
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
|
runBeforeMainModule: ['InitializeCore'],
|
||||||
runMainModule: true,
|
runMainModule: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -243,11 +243,11 @@ describe('Bundle', () => {
|
||||||
line: 6
|
line: 6
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
file: 'require-InitializeJavaScriptAppEngine.js',
|
file: 'require-InitializeCore.js',
|
||||||
mappings: 'AAAA;',
|
mappings: 'AAAA;',
|
||||||
names: [],
|
names: [],
|
||||||
sources: [ 'require-InitializeJavaScriptAppEngine.js' ],
|
sources: [ 'require-InitializeCore.js' ],
|
||||||
sourcesContent: [';require("InitializeJavaScriptAppEngine");'],
|
sourcesContent: [';require("InitializeCore");'],
|
||||||
version: 3,
|
version: 3,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -160,7 +160,7 @@ describe('processRequest', () => {
|
||||||
dev: true,
|
dev: true,
|
||||||
platform: undefined,
|
platform: undefined,
|
||||||
onProgress: jasmine.any(Function),
|
onProgress: jasmine.any(Function),
|
||||||
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
|
runBeforeMainModule: ['InitializeCore'],
|
||||||
unbundle: false,
|
unbundle: false,
|
||||||
entryModuleOnly: false,
|
entryModuleOnly: false,
|
||||||
isolateModuleIDs: false,
|
isolateModuleIDs: false,
|
||||||
|
@ -185,7 +185,7 @@ describe('processRequest', () => {
|
||||||
dev: true,
|
dev: true,
|
||||||
platform: 'ios',
|
platform: 'ios',
|
||||||
onProgress: jasmine.any(Function),
|
onProgress: jasmine.any(Function),
|
||||||
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
|
runBeforeMainModule: ['InitializeCore'],
|
||||||
unbundle: false,
|
unbundle: false,
|
||||||
entryModuleOnly: false,
|
entryModuleOnly: false,
|
||||||
isolateModuleIDs: false,
|
isolateModuleIDs: false,
|
||||||
|
@ -210,7 +210,7 @@ describe('processRequest', () => {
|
||||||
dev: true,
|
dev: true,
|
||||||
platform: undefined,
|
platform: undefined,
|
||||||
onProgress: jasmine.any(Function),
|
onProgress: jasmine.any(Function),
|
||||||
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
|
runBeforeMainModule: ['InitializeCore'],
|
||||||
unbundle: false,
|
unbundle: false,
|
||||||
entryModuleOnly: false,
|
entryModuleOnly: false,
|
||||||
isolateModuleIDs: false,
|
isolateModuleIDs: false,
|
||||||
|
@ -440,7 +440,7 @@ describe('processRequest', () => {
|
||||||
runModule: true,
|
runModule: true,
|
||||||
dev: true,
|
dev: true,
|
||||||
platform: undefined,
|
platform: undefined,
|
||||||
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
|
runBeforeMainModule: ['InitializeCore'],
|
||||||
unbundle: false,
|
unbundle: false,
|
||||||
entryModuleOnly: false,
|
entryModuleOnly: false,
|
||||||
isolateModuleIDs: false,
|
isolateModuleIDs: false,
|
||||||
|
@ -463,7 +463,7 @@ describe('processRequest', () => {
|
||||||
sourceMapUrl: '/path/to/foo.map?dev=false&runModule=false',
|
sourceMapUrl: '/path/to/foo.map?dev=false&runModule=false',
|
||||||
dev: false,
|
dev: false,
|
||||||
platform: undefined,
|
platform: undefined,
|
||||||
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
|
runBeforeMainModule: ['InitializeCore'],
|
||||||
unbundle: false,
|
unbundle: false,
|
||||||
entryModuleOnly: false,
|
entryModuleOnly: false,
|
||||||
isolateModuleIDs: false,
|
isolateModuleIDs: false,
|
||||||
|
|
|
@ -130,7 +130,7 @@ const bundleOpts = declareOpts({
|
||||||
type: 'array',
|
type: 'array',
|
||||||
default: [
|
default: [
|
||||||
// Ensures essential globals are available and are patched correctly.
|
// Ensures essential globals are available and are patched correctly.
|
||||||
'InitializeJavaScriptAppEngine'
|
'InitializeCore'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
unbundle: {
|
unbundle: {
|
||||||
|
|
Loading…
Reference in New Issue