mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
fix CommonJs modules no longer affecting the global scope (#43090)
This commit is contained in:
1 parent
5813907abf
commit
8a5939fdae
2 files changed
+2
-2
No files matched your search
@@ -472,7 +472,7 @@ namespace ts {
|
||||
*/
|
||||
function isFileAffectingGlobalScope(sourceFile: SourceFile) {
|
||||
return containsGlobalScopeAugmentation(sourceFile) ||
|
||||
!isExternalModule(sourceFile) && !containsOnlyAmbientModules(sourceFile);
|
||||
!isExternalOrCommonJsModule(sourceFile) && !containsOnlyAmbientModules(sourceFile);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user