ccqgithub / fis3-parser-vue-component

fis3-parser-vue-component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse5.parseFragment(content)

atian25 opened this issue · comments

https://github.com/ccqgithub/fis3-parser-vue-component/blob/master/index.js#L23

这里应该修改为 var fragment = parse5.parseFragment(content.toString()

不用,content本身就是string,参考其他parser插件……

content

应该是之前我没加 isJsLike 导致 fis 没识别为 text file,所以传过去的是 buffer。