Migrating a Legacy Vue 2 Application from Webpack 2 to Vite: A Practical Guide Based on Real-World Issues

TL;DR AI
2 min readKey summary
A legacy Vue 2 app was migrated from Webpack 2 to Vite without a full rewrite.
The first step was auditing what Webpack handled, then locking down the Node version for stability.
Instead of replacing Webpack right away, Vite was added alongside it to reduce risk.
Compatibility work focused on Vue 2 support, config parity, Babel, and needed polyfills.
