Skip to main content

bundle_source

Function bundle_source 

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

rolldown-bundle + tree-shake + transpile the step entry files (and their node_modules/shared imports) into a single ESM module. Returns the bundled code and the (hidden) source map JSON. Exposed for diagnostics/tests; production uses bundle_and_compile.