From 9d92dbded20037a1142a08d554ea24969c35bb5c Mon Sep 17 00:00:00 2001 From: ifer47 <361301399@qq.com> Date: Thu, 4 Jun 2026 15:43:52 +0800 Subject: [PATCH] docs: update Vite documentation links (#14918) --- .github/contributing.md | 2 +- packages/vue-compat/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/contributing.md b/.github/contributing.md index 68b688b26..960f171c6 100644 --- a/.github/contributing.md +++ b/.github/contributing.md @@ -89,7 +89,7 @@ $ pnpm i # install the dependencies of the project A high level overview of tools used: - [TypeScript](https://www.typescriptlang.org/) as the development language -- [Vite](https://vitejs.dev/) and [ESBuild](https://esbuild.github.io/) for development bundling +- [Vite](https://vite.dev/) and [ESBuild](https://esbuild.github.io/) for development bundling - [Rollup](https://rollupjs.org) for production bundling - [Vitest](https://vitest.dev/) for unit testing - [Prettier](https://prettier.io/) for code formatting diff --git a/packages/vue-compat/README.md b/packages/vue-compat/README.md index 4942b6a67..26ae35d24 100644 --- a/packages/vue-compat/README.md +++ b/packages/vue-compat/README.md @@ -18,7 +18,7 @@ While we've tried hard to make the migration build mimic Vue 2 behavior as much - Internet Explorer 11 support: [Vue 3 has officially dropped the plan for IE11 support](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0038-vue3-ie11-support.md). If you still need to support IE11 or below, you will have to stay on Vue 2. -- Server-side rendering: the migration build can be used for SSR, but migrating a custom SSR setup is much more involved. The general idea is replacing `vue-server-renderer` with [`@vue/server-renderer`](https://github.com/vuejs/core/tree/main/packages/server-renderer). Vue 3 no longer provides a bundle renderer and it is recommended to use Vue 3 SSR with [Vite](https://vitejs.dev/guide/ssr.html). If you are using [Nuxt.js](https://nuxtjs.org/), it is probably better to wait for Nuxt 3. +- Server-side rendering: the migration build can be used for SSR, but migrating a custom SSR setup is much more involved. The general idea is replacing `vue-server-renderer` with [`@vue/server-renderer`](https://github.com/vuejs/core/tree/main/packages/server-renderer). Vue 3 no longer provides a bundle renderer and it is recommended to use Vue 3 SSR with [Vite](https://vite.dev/guide/ssr). If you are using [Nuxt.js](https://nuxtjs.org/), it is probably better to wait for Nuxt 3. ### Expectations @@ -43,7 +43,7 @@ The following workflow walks through the steps of migrating an actual Vue 2 app 1. Upgrade tooling if applicable. - 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://vite.dev/) + [vite-plugin-vue2](https://github.com/underfin/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`: -- 2.47.3