Vue 3 Migration Build: Incremental Upgrades

On this page

Vue 3’s migration build lets you upgrade incrementally. Run Vue 2 code with Vue 3 runtime.

Install Migration Build

Bash1 line
npm install vue@3 @vue/compat

Config

JavaScript6 lines
// vue.config.js
module.exports = {
  chainWebpack: config => {
    config.resolve.alias.set('vue', '@vue/compat')
  }
}

Process

  1. Install compat build
  2. Fix deprecation warnings
  3. Convert filters to methods
  4. Switch to Vue 3 proper

Discover more from C4: Container, Code, Cloud & Context

Subscribe to get the latest posts sent to your email.

Written by

Nithin Mohan TK

Hello Namaste! 👋🏻 I'm an accomplished Enterprise Solution Architect & Engineering Leader with 20+ years of progressive experience architecting, building, and scaling transformative enterprise solutions. ⚜️ Solution Architect / AI & Cloud 📌 Galway, Ireland

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.