Skip to content

Commit

Permalink
Fix #285
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 26, 2024
1 parent dc339fb commit 8d8b146
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/swc/dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ async function initialCompilation(cliOptions: CliOptions, swcOptions: Options) {
await Promise.all([
Promise.allSettled(
compilable.map(filename =>
workers.run({ filename, outDir, sync, swcOptions }).catch(err => {
console.error(err.message);
throw err;
})
workers
.run({ filename, outDir, sync, cliOptions, swcOptions })
.catch(err => {
console.error(err.message);
throw err;
})
)
),
Promise.allSettled(
Expand Down

0 comments on commit 8d8b146

Please sign in to comment.