mirror of https://github.com/status-im/metro.git
Updates from Wed July 15th
This commit is contained in:
commit
2bc7fea417
|
@ -150,7 +150,16 @@ class DependencyGraph {
|
||||||
|
|
||||||
getOrderedDependencies(entryPath) {
|
getOrderedDependencies(entryPath) {
|
||||||
return this.load().then(() => {
|
return this.load().then(() => {
|
||||||
const absolutePath = path.resolve(this._getAbsolutePath(entryPath));
|
const absPath = this._getAbsolutePath(entryPath);
|
||||||
|
|
||||||
|
if (absPath == null) {
|
||||||
|
throw new NotFoundError(
|
||||||
|
'Could not find source file at %s',
|
||||||
|
entryPath
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const absolutePath = path.resolve(absPath);
|
||||||
|
|
||||||
if (absolutePath == null) {
|
if (absolutePath == null) {
|
||||||
throw new NotFoundError(
|
throw new NotFoundError(
|
||||||
|
|
Loading…
Reference in New Issue