diff options
author | Andy Finch <andyfinch7@gmail.com> | 2020-02-01 03:02:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 12:02:23 +0100 |
commit | 4f8a5c0239cd633ea3fd15a27046da3edee2b2f2 (patch) | |
tree | 80467fdd1132a44dc7fce01d73261693ee6c7fb5 /deno_typescript/compiler_main.js | |
parent | 2cd3994902fb6a4d4d0603c839a78503d792b96a (diff) |
feat: support crate imports in deno_typescript (#3814)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'deno_typescript/compiler_main.js')
-rw-r--r-- | deno_typescript/compiler_main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deno_typescript/compiler_main.js b/deno_typescript/compiler_main.js index 94b38e070..013d6e157 100644 --- a/deno_typescript/compiler_main.js +++ b/deno_typescript/compiler_main.js @@ -184,8 +184,8 @@ class Host { fileName = moduleMap.get(fileName); } - const { sourceCode, moduleName } = dispatch("readFile", { - fileName, + const { sourceCode, moduleName } = dispatch("loadModule", { + moduleUrl: fileName, languageVersion, shouldCreateNewSourceFile }); |