On November 26, 2026, the Vite team shipped the official Vite 8.4 release, introducing an allow-list file-serving gate (server.fs.strict: 'extended'), a plugin this.environment.addSafeModule API, standard WebAssembly source phase imports, and a stabilized --configLoader CLI flag. That shift matters right away. Earlier this month, Vite patched a critical dev server RCE bypass (GHSA-p4f5-76q4-ffq7) when exposing --host, so moving away from fragile block-lists isn’t just housekeeping. I dug through the Vite GitHub release notes this morning to see which defaults stay safe and which config keys I need to update across my projects.
Why the Vite 8.4 Release Matters for Dev Security
Previously, Vite protected local files during development by maintaining a block-list of restricted paths. However, path-normalization quirks and HTTP parser edge cases kept finding ways around block-lists. As a result, security teams spent years chasing one bypass after another. Instead of patching another edge case, the Vite 8.4 release introduces an opt-in allow-list model that flips the default trust boundary.
I like this direction because I run multi-service stacks locally every day. When I test responsive layouts from my phone on the same Wi-Fi, I often pass --host to expose the dev server. Old block-lists made me nervous. Even so, you shouldn’t flip strict: 'extended' blindly in a huge monorepo without testing your plugins first. Since Vite now traces entrypoints, CSS url() references, and transitive imports, any custom plugin that reads dynamic files off disk without registering them will trigger a 403 error. In my own test app, an icon-sprite plugin failed on startup until I whitelisted its output directory.

Enabling Strict Allow-List File Serving in Vite Config
To lock down your dev server completely, set server.fs.strict to 'extended' and clear server.fs.allow. Because custom plugins sometimes inject virtual or generated files outside static module graphs, Vite 8.4 also exposes this.environment.addSafeModule(id) inside plugin module hooks. First, update your config file; second, register any dynamic plugin assets so legitimate requests don’t break.
// vite.config.js
export default {
server: {
fs: {
strict: 'extended',
allow: [],
},
},
dev: {
sourcemap: {
css: true,
},
},
plugins: [
{
name: 'register-dynamic-asset',
load(id) {
if (id.endsWith('runtime-manifest.json')) {
// Allow-list plugin-resolved files when strict: 'extended' is active
this.environment?.addSafeModule?.(id);
}
},
},
],
};
Notice the CSS sourcemap key in that snippet. While updating my TypeScript templates—similar to the setup I used in my React useActionState TypeScript forms guide—I spotted that Vite migrated css.devSourcemap to dev.sourcemap.css. In addition, Vite 8.4 injects plugin names directly into module-hook error traces, so debugging broken transforms takes half the time. That detail saved me several minutes when a legacy CSS plugin threw an unexpected hook error.
What Changed in the Vite 8.4 Release: Before vs. After
I put together this quick reference table because several config flags shifted at once in this update. Review these five changes before bumping your workspace dependency.
| Area | Before (Vite 8.3 and Earlier) | After (Vite 8.4 Release) |
|---|---|---|
| File-Serve Security | Block-list checks with server.fs.strict: true | Opt-in allow-list mode via server.fs.strict: 'extended' |
| Plugin Asset Safelisting | Users had to expand server.fs.allow manually | Plugins call this.environment.addSafeModule(id) |
| CSS Dev Sourcemaps | Configured under css.devSourcemap | Migrated to dev.sourcemap.css |
| Config Loader CLI | --configLoader=runner supported | --configLoader stabilized; runner deprecated |
| WebAssembly Loading | Vite-specific .wasm?init query suffix | Standard import source Wasm phase imports |
Wasm Source Phase Imports and Stable Config Loaders
Beyond security hardening, Vite 8.4 adds standards-aligned WebAssembly source phase imports. Rather than relying on custom ?init query parameters, you can now import a compiled WebAssembly.Module directly and instantiate it with explicit host imports. Here’s how clean that looks in TypeScript.
import source mod from './processor.wasm';
const instance = await WebAssembly.instantiate(mod, {
'./imports.js': {
logMetric: (value) => console.log('Metric:', value),
},
});
Meanwhile, the Vite team stabilized the --configLoader flag and formally deprecated --configLoader=runner. I prefer --configLoader native whenever my local Node.js runtime supports native type stripping, because VS Code breakpoints inside vite.config.ts map straight back to the original file instead of a temporary bundle inside node_modules/.vite-temp. If you run multiple local runtimes side by side, check my ServBay local development setup guide for keeping Node versions isolated per project. Also, Windows users get faster process start-time diagnostics via native binaries, while dependency optimization now catches in-place lockfile hash changes.
Two Quick Developer FAQs on the Vite 8.4 Release
Should I enable extended strict mode immediately?
Yes, especially if you expose the dev server over LAN with --host. Start by enabling server.fs.strict: 'extended' in staging or local CI first, because older community plugins may not call this.environment.addSafeModule yet. Once your dev routes load cleanly without 403 errors, clear server.fs.allow: [] and lock it down. The Vite team plans to make allow-list serving the default in Vite 9, so testing it now prevents surprises later.
Does the old .wasm?init syntax break right away?
No, existing .wasm?init imports still work in Vite 8.4. However, I’m moving my new Wasm modules to import source since TypeScript 7.1 and modern bundlers align around the TC39 source phase specification. That saves you a migration pass down the road.

