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

Bun · Bundler · all subjects

bundler/jsx

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.

Bun bundler JSX always side-effect-free

JSX is always assumed to be side-effect-free in Bun's bundler. The esbuild `--jsx-side-effects` flag is not applicable.

jsx configuration object

The `jsx` option accepts an object with the following properties: runtime ('automatic' or 'classic'), importSource (for automatic runtime), factory (for classic runtime), fragment (for classic runtime), sideEffects (boolean), and development (boolean).

React with standalone HTML

React apps work with standalone HTML with no extra configuration. Bun transpiles JSX and resolves npm packages. Install dependencies with `bun install react react-dom`, then build with `bun build --compile --target=browser ./index.html --outdir=dist`.

Give your agent this brain