Fixed bug in resolution of relative imports.

This commit is contained in:
Eric Traut 2019-04-06 10:39:50 -07:00
parent 8f294edeb7
commit 56fa8040c5

View File

@ -203,11 +203,6 @@ export class ImportResolver {
// Determine which search path this file is part of.
let curDir = getDirectoryPath(this._sourceFilePath);
for (let i = 1; i < moduleName.leadingDots; i++) {
// Make sure we don't walk out of the root directory.
if (!curDir.startsWith(this._executionEnvironment.root)) {
return undefined;
}
curDir = getDirectoryPath(curDir);
}