[][src]Function deno_typescript::compile_bundle

pub fn compile_bundle(
    bundle_filename: &Path,
    root_names: Vec<PathBuf>,
    extern_crate_modules: Option<HashMap<String, String>>
) -> Result<String, ErrBox>

Compile provided roots into a single JS bundle.

This function writes compiled bundle to disk at provided path.

Source map file and type declaration file are emitted alongside the bundle.

To instantiate bundle use returned module_name.