Skip to content

Commit

Permalink
chore: merge no entry cases
Browse files Browse the repository at this point in the history
Co-authored-by: Jiachi Liu <[email protected]>
  • Loading branch information
devjiwonchoi and huozhi committed Nov 22, 2023
1 parent c7d5e95 commit aaf6c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ async function bundle(
? (await fileExists(entryPath)) && (await fs.stat(entryPath)).isFile()
: false

if (!hasSpecifiedEntryFile && !isMultiEntries && !hasBin) {
const hasNoEntry = !hasSpecifiedEntryFile && !isMultiEntries && !hasBin
if (hasNoEntry) {
const err = new Error(`Entry file \`${entryPath}\` is not existed`)
err.name = 'NOT_EXISTED'
return Promise.reject(err)
Expand Down

0 comments on commit aaf6c03

Please sign in to comment.