Skip to content

Commit

Permalink
Refactor conditional statement in main.ts to include format check
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jan 8, 2024
1 parent ebc787a commit f3ec6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pack/src/actions/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = async function action(specifiedEntries: string[], options: any
}
})
}
if (eachOptions.bundle && options.forceIifeBundle) {
if (eachOptions.format === 'iife' && eachOptions.bundle && options.forceIifeBundle) {
external = []
}
const eachOutdir = eachOptions.outdir || options.outdir
Expand Down

0 comments on commit f3ec6d0

Please sign in to comment.