Diagnostics and Leak Scan
Leak Scan protects the browser bundle from accidentally importing server-only modules.
Default Behavior
When enabled, Vext checks the frontend import graph before emitting browser output.
Blocked Imports
Common blocked imports include:
src/routes/**src/services/**src/config/**- database clients
- Node built-ins such as
node:fs - files named
*.server.*
Friendly Error Shape
If a page imports a service directly:
Vext should report:
The goal is to teach the physical boundary, not to expose a low-level bundler stack trace as the only clue.