Skip to content

Commit

Permalink
feat(alita): 检测到多个入口文件,提供报错提示消息
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Nov 8, 2019
1 parent 7403465 commit b76e6be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/struc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ export default async function (srcpath, targetpath) {
}

if (isEntry && isRF) { // 入口文件 保证入口文件一定最先处理
if (entryFilePath) {
console.log(`${srcpath.replace(global.execArgs.INPUT_DIR, '')} :发现两个入口文件!`.error)
}


const entryResult = handleEntry(ast, targetpath)
entryFilePath = entryResult.realFilePath
allCompSet = entryResult.allCompSet
Expand Down

0 comments on commit b76e6be

Please sign in to comment.