Jelajahi Sumber

chore(compiler-sfc): change `let start` to `const start` (#12849)

Aaron-zon 1 tahun lalu
induk
melakukan
99551e387a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      packages/compiler-sfc/src/rewriteDefault.ts

+ 1 - 1
packages/compiler-sfc/src/rewriteDefault.ts

@@ -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