Skip to content

Commit

Permalink
fix: 修复 mpx setup 区块内,ts类型定义会被合并为一行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherso1a committed Dec 7, 2023
1 parent 140d794 commit bf7cb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/script-setup-compiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ function compileScriptSetup (
(node.type === 'VariableDeclaration' && node.declare)
) {
recordType(node, declaredTypes)
_s.move(node.start, node.end, 0)
_s.move(node.start, node.end + 1, 0)
}
}

Expand Down

0 comments on commit bf7cb5c

Please sign in to comment.