@@ -264,22 +264,30 @@ func (options *CompilerOptions) HasJsonModuleEmitEnabled() bool {
264264// changed require a new SourceFile be created.
265265type SourceFileAffectingCompilerOptions struct {
266266 // !!! generate this
267- Target ScriptTarget
268- Jsx JsxEmit
269- JsxImportSource string
270- ImportHelpers Tristate
271- AlwaysStrict Tristate
272- ModuleDetection ModuleDetectionKind
267+ Target ScriptTarget
268+ Jsx JsxEmit
269+ JsxImportSource string
270+ ImportHelpers Tristate
271+ AlwaysStrict Tristate
272+ ModuleDetection ModuleDetectionKind
273+ AllowUnreachableCode Tristate
274+ AllowUnusedLabels Tristate
275+ PreserveConstEnums Tristate
276+ IsolatedModules Tristate
273277}
274278
275279func (options * CompilerOptions ) SourceFileAffecting () SourceFileAffectingCompilerOptions {
276280 return SourceFileAffectingCompilerOptions {
277- Target : options .Target ,
278- Jsx : options .Jsx ,
279- JsxImportSource : options .JsxImportSource ,
280- ImportHelpers : options .ImportHelpers ,
281- AlwaysStrict : options .AlwaysStrict ,
282- ModuleDetection : options .ModuleDetection ,
281+ Target : options .Target ,
282+ Jsx : options .Jsx ,
283+ JsxImportSource : options .JsxImportSource ,
284+ ImportHelpers : options .ImportHelpers ,
285+ AlwaysStrict : options .AlwaysStrict ,
286+ ModuleDetection : options .ModuleDetection ,
287+ AllowUnreachableCode : options .AllowUnreachableCode ,
288+ AllowUnusedLabels : options .AllowUnusedLabels ,
289+ PreserveConstEnums : options .PreserveConstEnums ,
290+ IsolatedModules : options .IsolatedModules ,
283291 }
284292}
285293
0 commit comments