summaryrefslogtreecommitdiff
path: root/cli/js/compiler_imports.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/compiler_imports.ts')
-rw-r--r--cli/js/compiler_imports.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/js/compiler_imports.ts b/cli/js/compiler_imports.ts
index 903bcfe4d..387c47fc4 100644
--- a/cli/js/compiler_imports.ts
+++ b/cli/js/compiler_imports.ts
@@ -5,6 +5,7 @@ import {
SourceFile,
SourceFileJson
} from "./compiler_sourcefile.ts";
+import { normalizeString, CHAR_FORWARD_SLASH } from "./compiler_util.ts";
import { cwd } from "./dir.ts";
import { sendAsync, sendSync } from "./dispatch_json.ts";
import { assert } from "./util.ts";
@@ -27,18 +28,18 @@ function resolvePath(...pathSegments: string[]): string {
}
resolvedPath = `${path}/${resolvedPath}`;
- resolvedAbsolute = path.charCodeAt(0) === util.CHAR_FORWARD_SLASH;
+ resolvedAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
}
// At this point the path should be resolved to a full absolute path, but
// handle relative paths to be safe (might happen when cwd() fails)
// Normalize the path
- resolvedPath = util.normalizeString(
+ resolvedPath = normalizeString(
resolvedPath,
!resolvedAbsolute,
"/",
- code => code === util.CHAR_FORWARD_SLASH
+ code => code === CHAR_FORWARD_SLASH
);
if (resolvedAbsolute) {