Skip to content

Commit

Permalink
fix(js): add outfile to swc compiler in non-watch mode. fixes nrwl#12344
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinl committed Sep 30, 2022
1 parent d91c7ca commit f008b6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/js/src/utils/swc/compile-swc.ts
Expand Up @@ -67,7 +67,10 @@ export async function compileSwc(
await printDiagnostics(errors, warnings);
}

return { success: !hasErrors && isCompileSuccess };
return {
success: !hasErrors && isCompileSuccess,
outfile: normalizedOptions.mainOutputPath
};
}

export async function* compileSwcWatch(
Expand Down

0 comments on commit f008b6c

Please sign in to comment.