mirror of https://github.com/vuejs/core.git
chore(compiler-sfc): change `let start` to `const start` (#12849)
This commit is contained in:
parent
2ab70c202f
commit
99551e387a
|
@ -39,7 +39,7 @@ export function rewriteDefaultAST(
|
||||||
ast.forEach(node => {
|
ast.forEach(node => {
|
||||||
if (node.type === 'ExportDefaultDeclaration') {
|
if (node.type === 'ExportDefaultDeclaration') {
|
||||||
if (node.declaration.type === 'ClassDeclaration' && node.declaration.id) {
|
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 > 0
|
||||||
? node.declaration.decorators[
|
? node.declaration.decorators[
|
||||||
node.declaration.decorators.length - 1
|
node.declaration.decorators.length - 1
|
||||||
|
|
Loading…
Reference in New Issue