提交 45f7b8a5 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

fix(cli-shared): 正确判断当前文件是否为 AppVue,兼容用户后缀包含 App.vue 的情况

ask 192513
上级 48b0e5be
......@@ -182,7 +182,8 @@ Please run \`${colors.cyan(
}
export function isAppVue(filename: string) {
return filename.endsWith('App.vue') || filename.endsWith('App.uvue')
const appVue = resolveAppVue(process.env.UNI_INPUT_DIR)
return appVue === normalizePath(filename)
}
export function resolveAppVue(inputDir: string) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册