Add `deps` param to `js_library`

Reviewed By: cpojer

Differential Revision: D4334383

fbshipit-source-id: 96f0d6ba5ed8ddab25087edd6381a6e6449ff63a
This commit is contained in:
David Aurelio 2016-12-16 11:11:38 -08:00 committed by Facebook Github Bot
parent 4431a3abf2
commit c486c707de
2 changed files with 7 additions and 1 deletions

View File

@ -120,6 +120,8 @@ export type TransformResult = {|
map: ?Object,
|};
export type TransformResults = {[string]: TransformResult};
export type TransformVariants = {[key: string]: Object};
export type TransformedFile = {
@ -127,6 +129,6 @@ export type TransformedFile = {
file: string,
hasteID: ?string,
package?: PackageData,
transformed: {[variant: string]: TransformResult},
transformed: TransformResults,
type: FileTypes,
};

View File

@ -480,9 +480,13 @@ function resolutionHash(modulePath, depName) {
class UnableToResolveError extends Error {
type: string;
from: string;
to: string;
constructor(fromModule, toModule, message) {
super();
this.from = fromModule.path;
this.to = toModule;
this.message = util.format(
'Unable to resolve module %s from %s: %s',
toModule,