Skip to content

Commit 4d1d77b

Browse files
committedSep 24, 2021
fix(tsbb): Fix the error of watch type.
1 parent c6eb043 commit 4d1d77b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎packages/tsbb/src/utils/watchCompile.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ export async function watchCompile(
5858
}
5959
}
6060
});
61-
if (tsOptions.noEmit && disableBabel) {
61+
// if ((tsOptions.noEmit && disableBabel) || (tsOptions.noEmit && !disableBabel)) {
62+
if ((tsOptions.noEmit && disableBabel) || (tsOptions.noEmit && !disableBabel)) {
63+
return;
64+
}
65+
66+
if (tsOptions.noEmit || !disableBabel) {
6267
return;
6368
}
6469
compilerOptions.noEmit = false;

0 commit comments

Comments
 (0)
Please sign in to comment.