File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
packages/react-scripts/scripts Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ checkBrowsers(paths.appPath, isInteractive)
9595 const protocol = process . env . HTTPS === 'true' ? 'https' : 'http' ;
9696 const appName = require ( paths . appPackageJson ) . name ;
9797 const useTypeScript = fs . existsSync ( paths . appTsConfig ) ;
98+ const tscCompileOnError = process . env . TSC_COMPILE_ON_ERROR === 'true' ;
9899 const urls = prepareUrls ( protocol , HOST , port ) ;
99100 const devSocket = {
100101 warnings : warnings =>
@@ -110,6 +111,7 @@ checkBrowsers(paths.appPath, isInteractive)
110111 urls,
111112 useYarn,
112113 useTypeScript,
114+ tscCompileOnError,
113115 webpack,
114116 } ) ;
115117 // Load proxy config
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ function startWatch() {
221221
222222 const appName = require ( paths . appPackageJson ) . name ;
223223 const useTypeScript = fs . existsSync ( paths . appTsConfig ) ;
224+ const tscCompileOnError = process . env . TSC_COMPILE_ON_ERROR === 'true' ;
224225
225226 const urls = {
226227 localUrlForTerminal : appPackage . browserLaunchTo ,
@@ -247,6 +248,7 @@ function startWatch() {
247248 urls,
248249 useYarn,
249250 useTypeScript,
251+ tscCompileOnError,
250252 webpack,
251253 } ) ;
252254
You can’t perform that action at this time.
0 commit comments