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

fix(app): easycom (question/155701)

上级 478fe759
......@@ -23,11 +23,11 @@ export function uniEasycomPlugin(options: UniEasycomPluginOptions): Plugin {
if (!filter(id)) {
return
}
const { filename, query } = parseVueRequest(id)
if (
query.type !== 'template' &&
(query.vue || !EXTNAME_VUE_TEMPLATE.includes(path.extname(filename)))
) {
const { filename } = parseVueRequest(id)
if (!EXTNAME_VUE_TEMPLATE.includes(path.extname(filename))) {
return
}
if (!code.includes('_resolveComponent')) {
return
}
let i = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册