new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Deno · Reference · all subjects

runtime api/bundle

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Deno.bundle() runtime API

The `Deno.bundle()` API allows you to programmatically bundle JavaScript or TypeScript files to integrate bundling into build processes and workflows. This API was added in Deno v2.5 and is experimental, requiring the `--unstable-bundle` flag.

Deno.bundle() basic usage example

Example of basic Deno.bundle() usage: ```ts const result = await Deno.bundle({ entrypoints: ["./index.tsx"], outputDir: "dist", platform: "browser", minify: true, }); console.log(result); ```

Deno.bundle() in-memory processing example

Example of processing bundled outputs in memory without writing to disk: ```ts const result = await Deno.bundle({ entrypoints: ["./index.tsx"], output: "dist", platform: "browser", minify: true, write: false, }); for (const file of result.outputFiles!) { console.log(file.text()); } ```

Give your agent this brain