Skip to content

Commit

Permalink
fix(tsbb): Fix the error of watch type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 24, 2021
1 parent c6eb043 commit 4d1d77b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/tsbb/src/utils/watchCompile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export async function watchCompile(
}
}
});
if (tsOptions.noEmit && disableBabel) {
// if ((tsOptions.noEmit && disableBabel) || (tsOptions.noEmit && !disableBabel)) {
if ((tsOptions.noEmit && disableBabel) || (tsOptions.noEmit && !disableBabel)) {
return;
}

if (tsOptions.noEmit || !disableBabel) {
return;
}
compilerOptions.noEmit = false;
Expand Down

0 comments on commit 4d1d77b

Please sign in to comment.