File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -232,12 +232,12 @@ export class BuildAction extends AbstractAction {
232
232
const isPreserveWatchOutputEnabled = options . find (
233
233
( option ) =>
234
234
option . name === 'preserveWatchOutput' && option . value === true ,
235
- ) ;
235
+ ) ?. value as boolean | undefined ;
236
236
watchCompiler . run (
237
237
configuration ,
238
238
pathToTsconfig ,
239
239
appName ,
240
- { preserveWatchOutput : ! ! isPreserveWatchOutputEnabled } ,
240
+ { preserveWatchOutput : isPreserveWatchOutputEnabled } ,
241
241
onSuccess ,
242
242
) ;
243
243
} else {
Original file line number Diff line number Diff line change @@ -16,7 +16,11 @@ import {
16
16
import { TypeScriptBinaryLoader } from './typescript-loader' ;
17
17
18
18
type TypescriptWatchCompilerExtras = {
19
- preserveWatchOutput : boolean ;
19
+ /**
20
+ * If `undefined`, the value of 'preserveWatchOutput' option from tsconfig
21
+ * file will be used instead.
22
+ */
23
+ preserveWatchOutput : boolean | undefined ;
20
24
} ;
21
25
22
26
export class WatchCompiler extends BaseCompiler < TypescriptWatchCompilerExtras > {
@@ -60,7 +64,8 @@ export class WatchCompiler extends BaseCompiler<TypescriptWatchCompilerExtras> {
60
64
configPath ,
61
65
{
62
66
...options ,
63
- preserveWatchOutput : extras . preserveWatchOutput ,
67
+ preserveWatchOutput :
68
+ extras . preserveWatchOutput ?? options . preserveWatchOutput ,
64
69
} ,
65
70
tsBin . sys ,
66
71
createProgram ,
You can’t perform that action at this time.
0 commit comments