瀏覽代碼

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

Aaron-zon 1 年之前
父節點
當前提交
99551e387a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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