fix(plugin-vue): add deprecated script.propsDestructure option · vitejs/vite-plugin-vue@1e24322 (original) (raw)
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -58,6 +58,10 @@ export interface Options { | ||
| 58 | 58 | * using Vue 3.4 or above. |
| 59 | 59 | */ |
| 60 | 60 | defineModel?: boolean |
| 61 | +/** | |
| 62 | + * @deprecated moved to `features.propsDestructure`. | |
| 63 | + */ | |
| 64 | +propsDestructure?: boolean | |
| 61 | 65 | } |
| 62 | 66 | template?: Partial< |
| 63 | 67 | Omit< |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -82,7 +82,8 @@ export function resolveScript( | ||
| 82 | 82 | ? scriptIdentifier |
| 83 | 83 | : undefined, |
| 84 | 84 | customElement, |
| 85 | -propsDestructure: options.features?.propsDestructure, | |
| 85 | +propsDestructure: | |
| 86 | +options.features?.propsDestructure ?? options.script?.propsDestructure, | |
| 86 | 87 | }) |
| 87 | 88 | |
| 88 | 89 | if (!options.isProduction && resolved?.deps) { |