From 236fb7abebe567b73826a3ddc2120f3273377ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E5=90=B9=E8=89=B2=E5=BE=A1=E5=AE=88?= <85992002+KazariEX@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:13:24 +0800 Subject: [PATCH] fix(compiler-core): use `isProp.arg.loc` instead of `isProp.loc` (#11547) --- packages/compiler-core/src/transforms/transformElement.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-core/src/transforms/transformElement.ts b/packages/compiler-core/src/transforms/transformElement.ts index ebaf08375b9..e40280bd1ff 100644 --- a/packages/compiler-core/src/transforms/transformElement.ts +++ b/packages/compiler-core/src/transforms/transformElement.ts @@ -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) }