]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-core): use `isProp.arg.loc` instead of `isProp.loc` (#11547)
author山吹色御守 <85992002+KazariEX@users.noreply.github.com>
Thu, 8 Aug 2024 09:13:24 +0000 (17:13 +0800)
committerGitHub <noreply@github.com>
Thu, 8 Aug 2024 09:13:24 +0000 (17:13 +0800)
packages/compiler-core/src/transforms/transformElement.ts

index ebaf08375b9642c8e5bce9bc339726810fc0cf5a..e40280bd1ff0e99b461ce2bd59c42d8d22ee0f3f 100644 (file)
@@ -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)
           }