]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(compiler-sfc): change `let start` to `const start` (#12849)
authorAaron-zon <1640485761@qq.com>
Tue, 11 Feb 2025 07:18:09 +0000 (15:18 +0800)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 07:18:09 +0000 (15:18 +0800)
packages/compiler-sfc/src/rewriteDefault.ts

index e6714c9906d423ccee05f6d3f23b92c57bb5498b..0f3ee35b51f188133e2ec987cc829820ca1c39de 100644 (file)
@@ -39,7 +39,7 @@ export function rewriteDefaultAST(
   ast.forEach(node => {
     if (node.type === 'ExportDefaultDeclaration') {
       if (node.declaration.type === 'ClassDeclaration' && node.declaration.id) {
-        let start: number =
+        const start: number =
           node.declaration.decorators && node.declaration.decorators.length > 0
             ? node.declaration.decorators[
                 node.declaration.decorators.length - 1