diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-08 13:56:56 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-07 21:56:56 -0500 |
commit | 24d6bf6aeb2b9ac929808e2b8ae4cd5e844a9f8b (patch) | |
tree | 45047054bad41f3e27ae51759d5055879af0b243 /js/compiler.ts | |
parent | cd1992aeaab92c4446ac289bced3ec548050467d (diff) |
Remove 'deno' builtin module (#1895)
Diffstat (limited to 'js/compiler.ts')
-rw-r--r-- | js/compiler.ts | 10 |
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 |