fix(compiler-sfc): enable props destructure when reactivity transform option is enabled

...to retain backwards compatible behavior before removal
This commit is contained in:
Evan You 2023-05-06 16:55:38 +08:00
parent cc09cc7e28
commit 862edfd91a
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export function processPropsDestructure(
ctx: ScriptCompileContext,
declId: ObjectPattern
) {
if (!ctx.options.propsDestructure) {
if (!ctx.options.propsDestructure && !ctx.options.reactivityTransform) {
return
}