blob: 4f32f0b3f55c18f1b92e90b2cdff24de642def01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use deno::ErrBox;
use futures::Future;
mod js;
mod json;
mod ts;
mod wasm;
pub use js::JsCompiler;
pub use json::JsonCompiler;
pub use ts::TsCompiler;
pub use wasm::WasmCompiler;
#[derive(Debug, Clone)]
pub struct CompiledModule {
pub code: String,
pub name: String,
}
pub type CompiledModuleFuture =
dyn Future<Output = Result<CompiledModule, ErrBox>> + Send;
|