Thalweg · API reference ← Main docs

bundle

Function bundle 

Source
pub fn bundle(
    source: &Path,
    out_dir: &Path,
    opts: &BundleOptions,
) -> Result<Bundle, BundleError>
Expand description

Resolve, compile, and render source, writing the opts.emit subset to out_dir and returning the full Bundle.

§Errors

Any BundleError from resolution, dedup conflict, compilation, decoding, or output I/O.