Skip to content

Commit 23cc1a2

Browse files
committed
feat: support Vue 2, close #24
1 parent 1626c81 commit 23cc1a2

40 files changed

+1260
-39
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,25 @@ export default {
8484
</script>
8585
```
8686

87+
## Vue 2 Support
88+
89+
From `v0.7`, we support Vue 2 with [`vite-plugin-vue2`](https://github.com/underfin/vite-plugin-vue2)
90+
91+
```ts
92+
// vite.config.js
93+
import { createVuePlugin } from 'vite-plugin-vue2'
94+
import ViteComponents from 'vite-plugin-components'
95+
96+
export default {
97+
plugins: [
98+
createVuePlugin(),
99+
ViteComponents({
100+
transformer: 'vue2', // <--
101+
}),
102+
],
103+
}
104+
```
105+
87106
## Configuration
88107

89108
The following show the default values of the configuration
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)