Skip to content

Commit b6c35cb

Browse files
committed
fix: do not use ts checker plugin if hasTypeScript is explicitly false
1 parent 4d1701a commit b6c35cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/scripts/src/scripts/Server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ export class Server {
363363
// heavily based on create-react-script
364364

365365
// Some more hooks on typescript
366-
if (this.hasTs) {
366+
if (
367+
this.hasTs &&
368+
this.projectConfig.files.some(f => f.hasTypeScript !== false)
369+
) {
367370
// try to get the fork ts checker webpack plugin
368371
let ForkTsCheckerWebpackPlugin: any;
369372
try {

0 commit comments

Comments
 (0)