Use @volar-plugins/vetur instead of Vetur 为什么要这样做
时间: 2024-05-20 19:13:31 浏览: 16
There are several reasons why you might want to use `@volar-plugins/vetur` instead of the original `Vetur` plugin:
1. `@volar-plugins/vetur` is a newer and more actively maintained plugin that offers better performance and more features than the original `Vetur`.
2. `@volar-plugins/vetur` is built on top of the `Volar` language server, which is a lightweight and fast server that provides enhanced TypeScript support and other features.
3. `@volar-plugins/vetur` is designed to work seamlessly with the `Volar` extension for Visual Studio Code, which provides additional features like better type checking and refactoring tools.
4. `@volar-plugins/vetur` supports Vue 3 out of the box, while the original `Vetur` plugin requires additional configuration to work with Vue 3 projects.
Overall, if you're working with Vue projects and want the best possible development experience, it's recommended to switch to `@volar-plugins/vetur`.
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)