File tree 4 files changed +6
-19
lines changed
4 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ import paths from "./paths.js";
16
16
import getClientEnvironment from "./env.js" ;
17
17
import createEnvironmentHash from "./webpack/persistentCache/createEnvironmentHash.js" ;
18
18
19
- const { default : ForkTsCheckerWebpackPlugin } = await import (
20
- process . env . TSC_COMPILE_ON_ERROR === "true"
21
- ? "react-dev-utils/ForkTsCheckerWarningWebpackPlugin.js"
22
- : "react-dev-utils/ForkTsCheckerWebpackPlugin.js"
23
- ) ;
19
+ import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" ;
24
20
25
21
// Source maps are resource heavy and can cause out of memory issue for large source files.
26
22
const shouldUseSourceMap = process . env . GENERATE_SOURCEMAP !== "false" ;
Original file line number Diff line number Diff line change @@ -100,19 +100,9 @@ checkBrowsers(paths.appPath, isInteractive)
100
100
) ;
101
101
} ,
102
102
( err ) => {
103
- const tscCompileOnError = process . env . TSC_COMPILE_ON_ERROR === "true" ;
104
- if ( tscCompileOnError ) {
105
- console . log (
106
- chalk . yellow (
107
- "Compiled with the following type errors (you may want to check these before deploying your app):\n"
108
- )
109
- ) ;
110
- printBuildError ( err ) ;
111
- } else {
112
- console . log ( chalk . red ( "Failed to compile.\n" ) ) ;
113
- printBuildError ( err ) ;
114
- process . exit ( 1 ) ;
115
- }
103
+ console . log ( chalk . red ( "Failed to compile.\n" ) ) ;
104
+ printBuildError ( err ) ;
105
+ process . exit ( 1 ) ;
116
106
}
117
107
)
118
108
. then ( async ( ) => {
Original file line number Diff line number Diff line change 198
198
"extend" : " ^3.0.2" ,
199
199
"file-loader" : " ^6.2.0" ,
200
200
"foreman" : " ^3.0.1" ,
201
+ "fork-ts-checker-webpack-plugin" : " ^9.0.2" ,
201
202
"history" : " ^5.2.0" ,
202
203
"html-validate" : " ^8.18.2" ,
203
204
"html-webpack-plugin" : " ^5.6.0" ,
Original file line number Diff line number Diff line change @@ -7235,7 +7235,7 @@ foreman@^3.0.1:
7235
7235
mustache "^2.2.1"
7236
7236
shell-quote "^1.6.1"
7237
7237
7238
- fork-ts-checker-webpack-plugin@>=6.5.0, fork-ts-checker-webpack-plugin@^6.5.0:
7238
+ fork-ts-checker-webpack-plugin@>=6.5.0, fork-ts-checker-webpack-plugin@^6.5.0, fork-ts-checker-webpack-plugin@^9.0.2 :
7239
7239
version "9.0.2"
7240
7240
resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-9.0.2.tgz#c12c590957837eb02b02916902dcf3e675fd2b1e"
7241
7241
integrity sha512-Uochze2R8peoN1XqlSi/rGUkDQpRogtLFocP9+PGu68zk1BDAKXfdeCdyVZpgTk8V8WFVQXdEz426VKjXLO1Gg==
You can’t perform that action at this time.
0 commit comments