Migrate Webpack Build to Vite

Replace an existing Webpack setup with faster, modern Vite configuration.

category:modernization
webpack
vite
build-system
tooling
migration
0

Prompt

Migrate this Webpack-based build to Vite.

Steps:
- Create vite.config.(ts|js) with equivalent entry points
- Convert loaders to Vite plugins where needed
- Recreate aliases and environment variables
- Update npm scripts for dev/build/preview
- Call out any plugin gaps or behavior changes

Return the Vite config and updated package.json scripts.