File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -856,9 +856,10 @@ namespace ts {
856
856
const optionKey = name . toLowerCase ( ) ;
857
857
const optionInfo = optionsNameMap . get ( optionKey ) ;
858
858
if ( optionInfo ?. affectsEmit || optionInfo ?. affectsSemanticDiagnostics ||
859
- // Since we should never compare strict directly between options but individual flag, but it does change value of that flag so store it
859
+ // We need to store `strict`, even though it won't be examined directly, so that the
860
+ // flags it controls (e.g. `strictNullChecks`) will be retrieved correctly from the buildinfo
860
861
optionKey === "strict" ||
861
- // These affect if lib files need to be rechecked so store them
862
+ // We need to store these to determine whether ` lib` files need to be rechecked.
862
863
optionKey === "skiplibcheck" || optionKey === "skipdefaultlibcheck" ) {
863
864
( result ||= { } ) [ name ] = convertToReusableCompilerOptionValue (
864
865
optionInfo ,
You can’t perform that action at this time.
0 commit comments