Use @volar-plugins/vetur instead of Vetur 为什么要这样做
时间: 2024-05-20 07:13:31 浏览: 130
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`.
阅读全文