Skip to content

Commit

Permalink
Add deps param to js_library
Browse files Browse the repository at this point in the history
Reviewed By: cpojer

Differential Revision: D4334383

fbshipit-source-id: 96f0d6ba5ed8ddab25087edd6381a6e6449ff63a
  • Loading branch information
davidaurelio authored and facebook-github-bot committed Dec 16, 2016
1 parent f49093f commit 4308b9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packager/react-packager/src/ModuleGraph/types.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,15 @@ export type TransformResult = {|
map: ?Object,
|};

export type TransformResults = {[string]: TransformResult};

export type TransformVariants = {[key: string]: Object};

export type TransformedFile = {
code: string,
file: string,
hasteID: ?string,
package?: PackageData,
transformed: {[variant: string]: TransformResult},
transformed: TransformResults,
type: FileTypes,
};
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4308b9e

Please sign in to comment.