pub async fn bundle(
    root: ModuleSpecifier,
    options: BundleOptions
) -> Result<(String, Option<String>), AnyError>
Expand description

Given a module graph, generate and return a bundle of the graph and optionally its source map. Unlike emitting with check_and_maybe_emit and emit, which store the emitted modules in the cache, this function simply returns the output.