Vite config

Inspect Vite config without running project code

Paste a vite.config.ts/js snippet, choose a deployment preset and review sections, diagnostics, preset drift and a suggested patch. The analyzer parses static config in the browser and never executes plugins, imports, dev server or build output.

  • Static analyzer
  • No plugin execution
  • Vite 8 + Vite 7 baseline

Static Vite config review

The worker uses a lightweight static object-literal parser. It reports dynamic pieces instead of evaluating them.

Ready to analyze

Review dev server, preview server, public env and production build defaults for a browser app.

vite.config.ts / js input

Source characters
336 / 51200
Lines
21
Mode
Vite 8 current

Review output

Run the analyzer to see diagnostics, config map, preset drift and a suggested patch.

Use it before a Vite config review

Vite config decisions affect development server behavior, preview smoke tests, production base paths, sourcemaps, dependency pre-bundling, aliases, public env variables and plugin boundaries. This playground gives a fast review artifact for those decisions while keeping real runtime validation inside your repository build.

export default defineConfig({ server: { port: 5173, strictPort: true }, build: { sourcemap: false } });
export default defineConfig({ build: { lib: { entry: 'src/index.ts' }, rollupOptions: { external: ['react'] } } });
export default defineConfig({ define: { __APP_VERSION__: JSON.stringify('local') }, envPrefix: 'VITE_' });

What the analyzer can and cannot prove

Static is not resolveConfig

The page reads object literals and defineConfig({ ... }) safely. It does not call resolveConfig, loadConfigFromFile, imports, env loaders, plugin hooks or filesystem APIs.

Build settings need release context

Sourcemaps, base paths, library mode and rollupOptions.external affect production behavior. The analyzer flags review risks, then your repository build remains the final proof.

Plugins are detected only

Plugin arrays often contain function calls with side effects. The playground marks them with PLUGIN_EXECUTION_BLOCKED instead of executing arbitrary project code.

Vite Config FAQ

Does this run vite build or vite dev?

No. It is a static browser analyzer. It never starts a dev server, preview server or production build.

Why are plugin calls blocked?

Plugin calls execute JavaScript and can read project state. The public playground detects them but keeps execution in your real repository.

How does the page handle Vite 8 options?

The current documentation target is Vite 8. Options such as environments get a VITE_8_ONLY diagnostic when you compare against a Vite 7 baseline.

Is my config uploaded?

No. Analysis runs in a browser worker and the config text is not sent to a Playground Forge backend.

Can this replace StackBlitz or vite.new?

No. Those are runtime sandboxes. This page is a focused review tool for static config decisions and safe documentation.