提交 b88cc38e 编写于 作者: fxy060608's avatar fxy060608

fix: block with wxs

上级 075271d3
......@@ -52,9 +52,11 @@ export function uniPreVuePlugin(): Plugin {
debugPreVue(id)
const watchFiles: string[] = []
const errors: SyntaxError[] = []
const ast = parseVue(code, errors)
let ast = parseVue(code, errors)
if (hasBlock) {
code = parseBlockCode(ast, code)
// 重新解析新的 code
ast = parseVue(code, errors)
}
if (hasWxs) {
const wxsNodes = parseWxsNodes(ast)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册