Skip to content

Commit

Permalink
chore: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Aug 22, 2024
1 parent e81851d commit 0cf0c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/compiler-core/src/transforms/transformElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ export function buildProps(
value.type === NodeTypes.JS_CACHE_EXPRESSION ||
((value.type === NodeTypes.SIMPLE_EXPRESSION ||
value.type === NodeTypes.COMPOUND_EXPRESSION) &&
name !== 'ref' &&
getConstantType(value, context) > 0)
getConstantType(value, context) > 0 &&
name !== 'ref')
) {
// skip if:
// 1. the prop is a cached handler
Expand Down

0 comments on commit 0cf0c87

Please sign in to comment.