Skip to content

Commit 2cb217e

Browse files
committed
docs: document vue support
1 parent 9582171 commit 2cb217e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/guide/features.md

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ This will provide the following type shims:
5050
- Types for the Vite-injected [env variables](./env-and-mode#env-variables) on `import.meta.env`
5151
- Types for the [HMR API](./api-hmr) on `import.meta.hot`
5252

53+
## Vue
54+
55+
Vite provides first-class Vue support:
56+
57+
- Vue 3 SFC support via [@vitejs/plugin-vue](https://github.com/vitejs/vite/tree/main/packages/plugin-vue)
58+
- Vue 3 JSX support via [@vitejs/plugin-vue-jsx](https://github.com/vitejs/vite/tree/main/packages/plugin-vue)
59+
- Vue 2 support via [underfin/vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2)
60+
5361
## JSX
5462

5563
`.jsx` and `.tsx` files are also supported out of the box. JSX transpilation is also handled via [ESBuild](https://esbuild.github.io), and defaults to the React 16 flavor. React 17 style JSX support in ESBuild is tracked [here](https://github.com/evanw/esbuild/issues/334).

0 commit comments

Comments
 (0)