Skip to main content

compile

Function compile 

pub fn compile(
    source: &str,
    filename: &str,
) -> Result<String, Vec<CompileError>>
Expand description

Compile a single Bynk source string to a TypeScript string.

Parses the input as a self-contained, single-file commons with no uses against other commons. Use project::compile_project for multi-file projects or for any source that declares uses. filename is used only for diagnostic rendering.