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

fix(cli): isJsFile

上级 d4bd6eef
......@@ -70,11 +70,11 @@ export function isJsFile(id: string) {
if (id === UNI_MODULES_EXPORTS) {
return true
}
const isJs = EXTNAME_JS_RE.test(id)
const { filename, query } = parseVueRequest(id)
const isJs = EXTNAME_JS_RE.test(filename)
if (isJs) {
return true
}
const { filename, query } = parseVueRequest(id)
const isVueJs = EXTNAME_VUE.includes(path.extname(filename)) && !query.vue
if (isVueJs) {
return true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册