summaryrefslogtreecommitdiff
path: root/js/compiler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/compiler.ts')
-rw-r--r--js/compiler.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/js/compiler.ts b/js/compiler.ts
index 27890babd..39a32bc24 100644
--- a/js/compiler.ts
+++ b/js/compiler.ts
@@ -477,15 +477,7 @@ class Compiler implements ts.LanguageServiceHost, ts.FormatDiagnosticsHost {
this._log("resolveModuleNames()", { moduleNames, containingFile });
const resolvedModuleNames: ts.ResolvedModuleFull[] = [];
for (const moduleName of moduleNames) {
- let moduleMetaData: ModuleMetaData;
- if (moduleName === "deno") {
- // builtin modules are part of the runtime lib
- moduleMetaData = this._getModuleMetaData(LIB_RUNTIME)!;
- } else if (moduleName === "typescript") {
- moduleMetaData = this._getModuleMetaData(`${ASSETS}/typescript.d.ts`)!;
- } else {
- moduleMetaData = this._resolveModule(moduleName, containingFile);
- }
+ const moduleMetaData = this._resolveModule(moduleName, containingFile);
// According to the interface we shouldn't return `undefined` but if we
// fail to return the same length of modules to those we cannot resolve
// then TypeScript fails on an assertion that the lengths can't be