Deploy v0.47.0 to xplat/js

Reviewed By: zertosh

Differential Revision: D5135644

fbshipit-source-id: f979970f8d0c4e082ec1302084d4def6652557c8
This commit is contained in:
glevi@fb.com 2017-05-25 22:54:51 -07:00 committed by Facebook Github Bot
parent 6ac824264d
commit 5ad47b1a24
1 changed files with 6 additions and 4 deletions

View File

@ -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);
}