Tracks the symbols and cross-module references needed while rendering a concatenated module.
new ConcatenationScope(modulesMap, currentModule, usedNames): ConcatenationScope
ModuleInfo[] | Map<Module, ModuleInfo>ConcatenatedModuleInfoConcatenationScopeCreates the mutable scope object used while rendering a concatenated module and its cross-module references.
Source Code: lib/ConcatenationScope.js#L58stringstringconcatenationScope.createModuleReference(module, __namedParameters): string
Encodes a reference to another concatenated module as a placeholder identifier that can be parsed later during code generation.
concatenationScope.getRawExport(exportName): string | undefined
Returns the raw expression registered for an export, if one exists.
concatenationScope.isModuleInScope(module): boolean
Checks whether a module participates in the current concatenation scope.
concatenationScope.registerExport(exportName, symbol): void
Records the symbol that should be used when the current module exports a named binding.
concatenationScope.registerNamespaceExport(symbol): void
stringRecords the symbol that should be used for the synthetic namespace export.
concatenationScope.registerRawExport(exportName, expression): void
Records a raw expression that can be used to reference an export without going through the normal symbol map.
concatenationScope.setRawExportMap(exportName, expression): void
Replaces the raw expression for an export only when that export already has an entry in the raw export map.
ConcatenationScope.isModuleReference(name): boolean
Checks whether an identifier is one of webpack's encoded concatenation module references.
ConcatenationScope.matchModuleReference(name): ModuleReferenceOptions & { index: number } | null
stringModuleReferenceOptions & { index: number } | nullParses an encoded module reference back into its module index and reference flags.