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,
|
map: ?Object,
|
||||||
|};
|
|};
|
||||||
|
|
||||||
|
export type TransformResults = {[string]: TransformResult};
|
||||||
|
|
||||||
export type TransformVariants = {[key: string]: Object};
|
export type TransformVariants = {[key: string]: Object};
|
||||||
|
|
||||||
export type TransformedFile = {
|
export type TransformedFile = {
|
||||||
|
@ -127,6 +129,6 @@ export type TransformedFile = {
|
||||||
file: string,
|
file: string,
|
||||||
hasteID: ?string,
|
hasteID: ?string,
|
||||||
package?: PackageData,
|
package?: PackageData,
|
||||||
transformed: {[variant: string]: TransformResult},
|
transformed: TransformResults,
|
||||||
type: FileTypes,
|
type: FileTypes,
|
||||||
};
|
};
|
||||||
|
|
|
@ -480,9 +480,13 @@ function resolutionHash(modulePath, depName) {
|
||||||
|
|
||||||
class UnableToResolveError extends Error {
|
class UnableToResolveError extends Error {
|
||||||
type: string;
|
type: string;
|
||||||
|
from: string;
|
||||||
|
to: string;
|
||||||
|
|
||||||
constructor(fromModule, toModule, message) {
|
constructor(fromModule, toModule, message) {
|
||||||
super();
|
super();
|
||||||
|
this.from = fromModule.path;
|
||||||
|
this.to = toModule;
|
||||||
this.message = util.format(
|
this.message = util.format(
|
||||||
'Unable to resolve module %s from %s: %s',
|
'Unable to resolve module %s from %s: %s',
|
||||||
toModule,
|
toModule,
|
||||||
|
|
Loading…
Reference in New Issue