vite-audit

Installation
SKILL.md

Audit the Vite configuration for this React 19 + Express SPA project. Check for correctness, performance, and optimization opportunities.

Target: $ARGUMENTS (default: full audit)

Pre-flight

  1. Read vite.config.ts, package.json, tsconfig.json, and index.html.
  2. Glob for src/**/*.{ts,tsx} barrel files (index.ts that re-export).
  3. Check installed Vite version and plugin versions in node_modules.

Audit Checklist

1. CORE CONFIG

  • Uses defineConfig wrapper (enables IDE autocomplete and type safety)
  • Config function receives { mode, command } for conditional logic
  • loadEnv used correctly if accessing env vars in config (not process.env directly for .env files)
  • No hardcoded secrets in define — only public/build-time values
  • define values use JSON.stringify() for string replacements
  • process.env.* replacements don't leak server secrets to client bundle
Installs
1
GitHub Stars
1
First Seen
Jun 4, 2026
vite-audit — joshuashepherd/my-skills