File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/compiler-core/src/transforms Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,11 @@ export function processExpression(
128
128
const isDestructureAssignment =
129
129
parent && isInDestructureAssignment ( parent , parentStack )
130
130
131
- if ( isConst ( type ) || localVars [ raw ] ) {
131
+ if (
132
+ isConst ( type ) ||
133
+ type === BindingTypes . SETUP_REACTIVE_CONST ||
134
+ localVars [ raw ]
135
+ ) {
132
136
return raw
133
137
} else if ( type === BindingTypes . SETUP_REF ) {
134
138
return `${ raw } .value`
@@ -371,8 +375,6 @@ export function stringifyExpression(exp: ExpressionNode | string): string {
371
375
372
376
function isConst ( type : unknown ) {
373
377
return (
374
- type === BindingTypes . SETUP_CONST ||
375
- type === BindingTypes . LITERAL_CONST ||
376
- type === BindingTypes . SETUP_REACTIVE_CONST
378
+ type === BindingTypes . SETUP_CONST || type === BindingTypes . LITERAL_CONST
377
379
)
378
380
}
You can’t perform that action at this time.
0 commit comments