Skip to content

Commit

Permalink
fix(js): add outfile to swc compiler in non-watch mode. fixes #12344
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinl committed Oct 7, 2022
1 parent 142ed2e commit 3de5040
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/js/src/utils/swc/compile-swc.ts
Expand Up @@ -66,7 +66,11 @@ export async function compileSwc(
}

await postCompilationCallback();
return { success: !hasErrors && isCompileSuccess };

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

export async function* compileSwcWatch(
Expand Down

0 comments on commit 3de5040

Please sign in to comment.