From 57293fca8b10f0fc8b470a82d9c860aa31a09008 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 4 Dec 2022 13:46:43 +0100 Subject: [PATCH 1/2] linkfix: vitejs/vite-plugin-vue2 --- src/migration-build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migration-build.md b/src/migration-build.md index 0e77fac..3104e33 100644 --- a/src/migration-build.md +++ b/src/migration-build.md @@ -46,7 +46,7 @@ The following workflow walks through the steps of migrating an actual Vue 2 app - If using custom webpack setup: Upgrade `vue-loader` to `^16.0.0`. - If using `vue-cli`: upgrade to the latest `@vue/cli-service` with `vue upgrade` - - (Alternative) migrate to [Vite](https://vitejs.dev/) + [vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2). [[Example commit](https://github.com/vuejs/vue-hackernews-2.0/commit/565b948919eb58f22a32afca7e321b490cb3b074)] + - (Alternative) migrate to [Vite](https://vitejs.dev/) + [vite-plugin-vue2](https://github.com/vitejs/vite-plugin-vue2). [[Example commit](https://github.com/vuejs/vue-hackernews-2.0/commit/565b948919eb58f22a32afca7e321b490cb3b074)] 2. In `package.json`, update `vue` to 3.1, install `@vue/compat` of the same version, and replace `vue-template-compiler` (if present) with `@vue/compiler-sfc`: From 79b2f6b04186d287968d61178376f6784c39fbc4 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 10 Dec 2022 18:40:32 +0100 Subject: [PATCH 2/2] linkfix: vitejs/vite-plugin-vue2 or underfin/vite-plugin-vue2 --- src/migration-build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migration-build.md b/src/migration-build.md index 3104e33..35c40f0 100644 --- a/src/migration-build.md +++ b/src/migration-build.md @@ -46,7 +46,7 @@ The following workflow walks through the steps of migrating an actual Vue 2 app - If using custom webpack setup: Upgrade `vue-loader` to `^16.0.0`. - If using `vue-cli`: upgrade to the latest `@vue/cli-service` with `vue upgrade` - - (Alternative) migrate to [Vite](https://vitejs.dev/) + [vite-plugin-vue2](https://github.com/vitejs/vite-plugin-vue2). [[Example commit](https://github.com/vuejs/vue-hackernews-2.0/commit/565b948919eb58f22a32afca7e321b490cb3b074)] + - (Alternative) migrate to [Vite](https://vitejs.dev/) + [@vitejs/plugin-vue2](https://github.com/vitejs/vite-plugin-vue2) (Vue 2.7) or [vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2) (Vue 2.6 or earlier). [[Example commit](https://github.com/vuejs/vue-hackernews-2.0/commit/565b948919eb58f22a32afca7e321b490cb3b074)] 2. In `package.json`, update `vue` to 3.1, install `@vue/compat` of the same version, and replace `vue-template-compiler` (if present) with `@vue/compiler-sfc`: