Skip to content

Commit

Permalink
fix: do not use ts checker plugin if hasTypeScript is explicitly false
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Apr 29, 2021
1 parent 4d1701a commit b6c35cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/scripts/src/scripts/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,10 @@ export class Server {
// heavily based on create-react-script

// Some more hooks on typescript
if (this.hasTs) {
if (
this.hasTs &&
this.projectConfig.files.some(f => f.hasTypeScript !== false)
) {
// try to get the fork ts checker webpack plugin
let ForkTsCheckerWebpackPlugin: any;
try {
Expand Down

0 comments on commit b6c35cb

Please sign in to comment.