Skip to content

Commit 98bda99

Browse files
committed
docs: added experimental defineModel requirement
1 parent 11cc999 commit 98bda99

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,17 @@ createApp(App)
4040
.use(MyLibPlugin) //use plugin
4141

4242
```
43+
In the vite config, vue will require the experimental useModel:
4344

45+
```
46+
plugins: [
47+
vue({
48+
script: {
49+
defineModel: true,
50+
},
51+
}),
52+
],
53+
```
4454

4555
<!-- TODO test -->
4656
You should also be able to use tailwind directly instead of importing the styles.
@@ -92,6 +102,13 @@ Everything can just be done from the config. Nuxt will automatically import the
92102
],
93103
modules: [
94104
["@alanscodelog/vue-components/nuxt"],
95-
]
105+
],
106+
vite: {
107+
vue: {
108+
script: {
109+
defineModel: true,
110+
},
111+
}
112+
}
96113

97114
```

0 commit comments

Comments
 (0)