Skip to content

Commit 99551e3

Browse files
authored
chore(compiler-sfc): change let start to const start (#12849)
1 parent 2ab70c2 commit 99551e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/rewriteDefault.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function rewriteDefaultAST(
3939
ast.forEach(node => {
4040
if (node.type === 'ExportDefaultDeclaration') {
4141
if (node.declaration.type === 'ClassDeclaration' && node.declaration.id) {
42-
let start: number =
42+
const start: number =
4343
node.declaration.decorators && node.declaration.decorators.length > 0
4444
? node.declaration.decorators[
4545
node.declaration.decorators.length - 1

0 commit comments

Comments
 (0)