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

fix(mp): Inject uni into the setup script (#3930)

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