Skip to content

Commit

Permalink
update 2.7 upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 24, 2022
1 parent e443907 commit 0b1fb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posts/vue-2-7-naruto.md
Expand Up @@ -83,7 +83,7 @@ In addition, the following features are explicitly **NOT** ported:

2. Upgrade `vue` to `^2.7.0`. You can also remove `vue-template-compiler` from the dependencies - it is no longer needed in 2.7.

Note: if you are using `@vue/test-utils`, you may need to keep it in the dependencies for now, but this requirement will also be lifted in a new release of test utils.
Note: if you are using `@vue/test-utils`, you will need to keep `vue-template-compiler` in the dependencies because test utils rely on some APIs only exposed in this package.

3. Check your package manager lockfile to ensure the following dependencies meet the version requirements. They may be transitive dependencies not listed in `package.json`.

Expand All @@ -102,7 +102,7 @@ In addition, the following features are explicitly **NOT** ported:

2.7 support for Vite is provided via a new plugin: [@vitejs/plugin-vue2](https://github.com/vitejs/vite-plugin-vue2). This new plugin requires Vue 2.7 or above and supersedes the existing [vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2).

Note that the new plugin does not handle Vue-specific JSX / TSX transform, which is intentional. Vue 2 JSX / TSX transform should be handled in a separate, dedicated plugin, which will be provided soon.
Note that the new plugin does not handle Vue-specific JSX / TSX transform, which is intentional. Vue 2 JSX / TSX transform for Vite is handled in a separate, dedicated plugin: [@vitejs/plugin-vue2-jsx](https://github.com/vitejs/vite-plugin-vue2-jsx).

### Volar Compatibility

Expand Down

1 comment on commit 0b1fb79

@vercel
Copy link

@vercel vercel bot commented on 0b1fb79 Nov 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-rho-five-21.vercel.app
blog.vuejs.org
blog-git-master-vuejs.vercel.app

Please sign in to comment.