mirror of https://github.com/status-im/metro.git
Deploy v0.47.0 to xplat/js
Reviewed By: zertosh Differential Revision: D5135644 fbshipit-source-id: f979970f8d0c4e082ec1302084d4def6652557c8
This commit is contained in:
parent
6ac824264d
commit
5ad47b1a24
|
@ -296,6 +296,12 @@ class ResolutionRequest<TModule: Moduleish, TPackage: Packageish> {
|
|||
return result;
|
||||
}
|
||||
|
||||
function resolveKeyWithPromise(
|
||||
[key: TModule, promise: Promise<Array<TModule>>],
|
||||
): Promise<[TModule, Array<TModule>]> {
|
||||
return promise.then(value => [key, value]);
|
||||
}
|
||||
|
||||
return Promise.all([
|
||||
// kicks off recursive dependency discovery, but doesn't block until it's
|
||||
// done
|
||||
|
@ -901,10 +907,6 @@ function resolveWindowsPath(modulePath) {
|
|||
return path.resolve(modulePath);
|
||||
}
|
||||
|
||||
function resolveKeyWithPromise([key, promise]) {
|
||||
return promise.then(value => [key, value]);
|
||||
}
|
||||
|
||||
function isRelativeImport(filePath) {
|
||||
return /^[.][.]?(?:[/]|$)/.test(filePath);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue