mirror of https://github.com/status-im/metro.git
Add `deps` param to `js_library`
Reviewed By: cpojer Differential Revision: D4334383 fbshipit-source-id: 96f0d6ba5ed8ddab25087edd6381a6e6449ff63a
This commit is contained in:
parent
4431a3abf2
commit
c486c707de
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue