Skip to content

Commit

Permalink
chore: improve esbuildMinifyIIFE check log
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m committed Mar 14, 2024
1 parent 98c0bfc commit ad1881b
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ async function checkDir(opts: { dir: string }) {
.filter((v) => varMap[v].length > 1)
.map((v) => `${v} (${varMap[v].join(', ')})`);
if (conflicts.length) {
throw new Error(
`Found conflicts in esbuild helpers: ${conflicts.join(
', ',
)}, please set esbuildMinifyIIFE: true in your config file.`,
logger.fatal(
chalk.yellow(
`Found conflicts in esbuild helpers: ${conflicts.join(', ')}`,
),
);
logger.info(
`please set ${chalk.blue('esbuildMinifyIIFE: true')} in your config file`,
);
throw new Error(`Found conflicts in esbuild helpers.`);
}
logger.info(`[esbuildHelperChecker] No conflicts found.`);
}
Expand Down

0 comments on commit ad1881b

Please sign in to comment.