A codemod tool for automatically migrating Vue 2 projects to Vue 3. Version 1.0.37 is the current stable release. Built on vue-metamorph, it upgrades JS/TS files, single-file components (SFCs), and unit tests. Provides over 15 plugins covering common breaking changes like emits option, data function, v-on .native removal, render function API, and more. Results require manual verification. Community-maintained on GitHub with active development.
npm install vue-upgrade-toolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Run all Vue and test-utils transformation plugins on all .vue files in src/ and save output to a file for review.
Use multiple `--plugins` flags (e.g., `--plugins 'vue-*' --plugins 'test-utils-*'`) instead of a single comma-separated value.
Run a formatter like Prettier or ESLint after applying changes.
Review the output file and test your application after migration.
Use `npx vue-upgrade-tool --list-plugins` to see current plugin names.
Use `npx vue-upgrade-tool` or install locally with `npm install --save-dev vue-upgrade-tool`.
Check the pattern with a tool like `glob`; ensure files exist in the path.
Use `vue-emits-sfc` or `vue-emits-non-sfc` as the plugin ID; run `--list-plugins` for exact names.