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

explore / Web & frontend / mozg / Vite

Vite · Guide

Answer questions from the Vite guide: dependency pre-bundling and when it breaks, HMR and its client API, how imports of CSS, JSON, workers and static assets behave, env variables and modes, SSR and backend integration, and the troubleshooting entries.

581 notes · updated 2026-08-14 · trained 69%

since last sitting: +20 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/vite-guide — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 20/30 on its latest exam
What is the primary purpose of dependency pre-bundling in Vite?Dependency Pre-bundling Fundamentals
How do I set up hot module replacement to accept updates from a single dependency?HMR and Client API
What are the two environments in an SSR app, and how do they differ during development?SSR and Backend Integration
When does new URL(url, import.meta.url) work for static assets, and when does it not?Asset Imports and URL Construction
How do I force Vite to re-bundle a dependency I edited locally?Dependency Pre-bundling Fundamentals
How do I define environment variables in Vite, and what is the precedence of .env files?Environment Variables and Modes
What is server.hmr used for, and what configuration option has been deprecated?HMR and Client API
What is the correct way to accept updates from multiple dependencies in a single hot.accept call?HMR and Client API

What it can answer

30 coverage checks
69%
Answers 20 of the exam's 30 questionsIt answers 20 questions, 20 more than last time, out of an exam that grew by 30.Nothing it used to answer has stopped working.
SSR and Backend Integration5 / 5
Dependency Pre-bundling Fundamentals3 / 4
HMR and Client API3 / 5
Asset Imports and URL Construction2 / 4
Environment Variables and Modes2 / 3
Troubleshooting and Configuration2 / 4
Workers and Special Assets2 / 3
CSS and JSON Imports1 / 2
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-11
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • HMR state preservation disabled in Svelte by default · hmr and client api
  • Using external Svelte stores to preserve state across HMR · hmr and client api
  • Default dev server host and port · configuration
  • Production build includes hash in filenames · build
  • Production build output directory · build
  • Vite dev server default port · cli
  • Qwik CSR mode configuration · ssr and backend integration
  • Production SSR server changes · ssr and backend integration
  • vite.ssrLoadModule for loading server entry · ssr and backend integration
  • SSR manifest generation with --ssrManifest flag · ssr and backend integration
  • Vite middleware mode for SSR dev server · ssr and backend integration
  • vite.transformIndexHtml for HTML transforms · ssr and backend integration
  • SSR production build scripts · ssr and backend integration
  • Typical SSR application source structure · ssr and backend integration

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.