Skip to content

Commit

Permalink
fix(compiler-core): use isProp.arg.loc instead of isProp.loc (vue…
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX authored Aug 8, 2024
1 parent 29e4a11 commit 236fb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/transforms/transformElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export function resolveComponentType(
exp = isProp.exp
if (!exp) {
// #10469 handle :is shorthand
exp = createSimpleExpression(`is`, false, isProp.loc)
exp = createSimpleExpression(`is`, false, isProp.arg!.loc)
if (!__BROWSER__) {
exp = isProp.exp = processExpression(exp, context)
}
Expand Down

0 comments on commit 236fb7a

Please sign in to comment.