We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
script.propsDestructure
1 parent 5d592cd commit 1e24322Copy full SHA for 1e24322
packages/plugin-vue/src/index.ts
@@ -58,6 +58,10 @@ export interface Options {
58
* using Vue 3.4 or above.
59
*/
60
defineModel?: boolean
61
+ /**
62
+ * @deprecated moved to `features.propsDestructure`.
63
+ */
64
+ propsDestructure?: boolean
65
}
66
template?: Partial<
67
Omit<
packages/plugin-vue/src/script.ts
@@ -82,7 +82,8 @@ export function resolveScript(
82
? scriptIdentifier
83
: undefined,
84
customElement,
85
- propsDestructure: options.features?.propsDestructure,
+ propsDestructure:
86
+ options.features?.propsDestructure ?? options.script?.propsDestructure,
87
})
88
89
if (!options.isProduction && resolved?.deps) {
0 commit comments