Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6dbe712

Browse files
committed
fix: add deprecated script.propsDestructure option
1 parent a592150 commit 6dbe712

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/core/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ export interface Options {
6666
* using Vue 3.4 or above.
6767
*/
6868
defineModel?: boolean
69+
/**
70+
* @deprecated moved to `features.propsDestructure`.
71+
*/
72+
propsDestructure?: boolean
6973
}
7074
template?: Partial<
7175
Omit<

src/core/script.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export function resolveScript(
8585
? scriptIdentifier
8686
: undefined,
8787
customElement,
88-
propsDestructure: options.features.propsDestructure,
88+
propsDestructure:
89+
options.features.propsDestructure ?? options.script?.propsDestructure,
8990
})
9091

9192
if (!options.isProduction && resolved?.deps) {

0 commit comments

Comments
 (0)