mirror of https://github.com/status-im/metro.git
Fix initializing packager logging
Reviewed By: cpojer Differential Revision: D6359527 fbshipit-source-id: 0741955ca0efd6d5735637407e1bc140f04c3bbf
This commit is contained in:
parent
6d756334a8
commit
eb1ddfdcd9
|
@ -122,15 +122,17 @@ class DependencyGraph extends EventEmitter {
|
|||
}
|
||||
|
||||
static async load(opts: Options): Promise<DependencyGraph> {
|
||||
const initializingMetroLogEntry = log(
|
||||
createActionStartEntry('Initializing Metro'),
|
||||
);
|
||||
|
||||
opts.reporter.update({type: 'dep_graph_loading'});
|
||||
const haste = DependencyGraph._createHaste(opts);
|
||||
const {hasteFS, moduleMap} = await haste.build();
|
||||
log(
|
||||
createActionEndEntry(
|
||||
log(createActionStartEntry('Initializing Metro Bundler')),
|
||||
),
|
||||
);
|
||||
|
||||
log(createActionEndEntry(initializingMetroLogEntry));
|
||||
opts.reporter.update({type: 'dep_graph_loaded'});
|
||||
|
||||
return new DependencyGraph({
|
||||
haste,
|
||||
initialHasteFS: hasteFS,
|
||||
|
|
Loading…
Reference in New Issue