import { emit } from "https://deno.land/x/cav@0.0.24/deps.ts";
const { bundle } = emit;
Generate a single file JavaScript bundle of the root module and its dependencies.
Example
import { bundle } from "https://deno.land/x/emit/mod.ts";
const result = await bundle(
"https://deno.land/std@0.140.0/examples/chat/server.ts",
);
const { code } = result;
console.log(code);