@@ -7179,7 +7179,7 @@ const _super = (function (geti, seti) {
71797179 write ( `], function(${ exportFunctionForFile } , ${ contextObjectForFile } ) {` ) ;
71807180 writeLine ( ) ;
71817181 increaseIndent ( ) ;
7182- const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ true , /*ensureUseStrict*/ ! compilerOptions . emitModulesInLooseMode ) ;
7182+ const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ true , /*ensureUseStrict*/ ! compilerOptions . emitNonStrictModules ) ;
71837183 writeLine ( ) ;
71847184 write ( `var __moduleName = ${ contextObjectForFile } && ${ contextObjectForFile } .id;` ) ;
71857185 writeLine ( ) ;
@@ -7285,7 +7285,7 @@ const _super = (function (geti, seti) {
72857285 writeModuleName ( node , emitRelativePathAsModuleName ) ;
72867286 emitAMDDependencies ( node , /*includeNonAmdDependencies*/ true , emitRelativePathAsModuleName ) ;
72877287 increaseIndent ( ) ;
7288- const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ true , /*ensureUseStrict*/ ! compilerOptions . emitModulesInLooseMode ) ;
7288+ const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ true , /*ensureUseStrict*/ ! compilerOptions . emitNonStrictModules ) ;
72897289 emitExportStarHelper ( ) ;
72907290 emitCaptureThisForNodeIfNecessary ( node ) ;
72917291 emitLinesStartingAt ( node . statements , startIndex ) ;
@@ -7297,7 +7297,7 @@ const _super = (function (geti, seti) {
72977297 }
72987298
72997299 function emitCommonJSModule ( node : SourceFile ) {
7300- const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ false , /*ensureUseStrict*/ ! compilerOptions . emitModulesInLooseMode ) ;
7300+ const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ false , /*ensureUseStrict*/ ! compilerOptions . emitNonStrictModules ) ;
73017301 emitEmitHelpers ( node ) ;
73027302 collectExternalModuleInfo ( node ) ;
73037303 emitExportStarHelper ( ) ;
@@ -7326,7 +7326,7 @@ const _super = (function (geti, seti) {
73267326})(` ) ;
73277327 emitAMDFactoryHeader ( dependencyNames ) ;
73287328 increaseIndent ( ) ;
7329- const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ true , /*ensureUseStrict*/ ! compilerOptions . emitModulesInLooseMode ) ;
7329+ const startIndex = emitDirectivePrologues ( node . statements , /*startWithNewLine*/ true , /*ensureUseStrict*/ ! compilerOptions . emitNonStrictModules ) ;
73307330 emitExportStarHelper ( ) ;
73317331 emitCaptureThisForNodeIfNecessary ( node ) ;
73327332 emitLinesStartingAt ( node . statements , startIndex ) ;
0 commit comments