Skip to content

Commit 236fb7a

Browse files
authoredAug 8, 2024··
fix(compiler-core): use isProp.arg.loc instead of isProp.loc (#11547)
1 parent 29e4a11 commit 236fb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/compiler-core/src/transforms/transformElement.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export function resolveComponentType(
250250
exp = isProp.exp
251251
if (!exp) {
252252
// #10469 handle :is shorthand
253-
exp = createSimpleExpression(`is`, false, isProp.loc)
253+
exp = createSimpleExpression(`is`, false, isProp.arg!.loc)
254254
if (!__BROWSER__) {
255255
exp = isProp.exp = processExpression(exp, context)
256256
}

0 commit comments

Comments
 (0)
Please sign in to comment.