Skip to main content

bundle_and_compile

Function bundle_and_compile 

Source
pub async fn bundle_and_compile(
    entry_paths: &[PathBuf],
    cwd: &Path,
) -> Result<CompiledBundle, ScriptError>
Expand description

Bundle the step entry files (TypeScript ok; node_modules and shared utils resolved + tree-shaken) into one ESM module and compile it to bytecode. Done once, before workers spawn.