diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-22 23:58:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 23:58:13 +0100 |
commit | 63293a90e1503aa9c18ce5f89ebc6d5c066f09bf (patch) | |
tree | cef7439565c558bede48bff6cf8cc527689808a9 /cli/js/compiler_host.ts | |
parent | bd9561f4de8f940ce6ed8b5eedfa84161a749c54 (diff) |
refactor: snapshotting (#3753)
Diffstat (limited to 'cli/js/compiler_host.ts')
-rw-r--r-- | cli/js/compiler_host.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/js/compiler_host.ts b/cli/js/compiler_host.ts index 3e6df4485..bff16757b 100644 --- a/cli/js/compiler_host.ts +++ b/cli/js/compiler_host.ts @@ -1,10 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { MediaType, SourceFile } from "./compiler_sourcefile.ts"; -import { OUT_DIR, WriteFileCallback } from "./compiler_util.ts"; +import { OUT_DIR, WriteFileCallback, getAsset } from "./compiler_util.ts"; import { cwd } from "./dir.ts"; -import { sendSync } from "./dispatch_json.ts"; -import * as dispatch from "./dispatch.ts"; import { assert, notImplemented } from "./util.ts"; import * as util from "./util.ts"; @@ -135,7 +133,7 @@ export class Host implements ts.CompilerHost { return sourceFile; } const name = url.includes(".") ? url : `${url}.d.ts`; - const sourceCode = sendSync(dispatch.OP_FETCH_ASSET, { name }); + const sourceCode = getAsset(name); return new SourceFile({ url, filename, |