coding · Cursor · free
Write a production grade vite.config.ts for [APP DESCRIPTION] . Stack: [React 19 / Vue 3 / Svelte / vanilla TS] Target browsers: [BROWSERSLIST STRING] Deployed to: [STATIC HOST / SSR / EDGE] Env boundaries: dev / preview / prod Deliver a single config file with: resolve.alias for the paths I actually use (@ → /src), synchronized with tsconfig.json paths build.target set from browserslist, not esnext by default build.sourcemap — hidden for prod (upload to Sentry, don't ship) or inline for staging Manual chunk strategy for vendor split — but only if bundle analysis shows it wins server.proxy for local API calls to avoid CORS in dev define for build time constants including BUILD ID and APP VERSION CSS: PostCSS chain, CSS modules pattern, @import order deterministic Plugins in the RIGHT order (framework plugin first, checker plugins, then transformers) optimizeDeps.include for the CJS deps that ruin cold start A preview mode note so I catch prod only breakage before deploy Comment every non obvious option with the WHY, not the WHAT.
#vite #tooling #config