On this page

new ConcatenationScope(modulesMap, currentModule, usedNames): void

Creates the mutable scope object used while rendering a concatenated module and its cross-module references.

  • usedNames {Set< string >}
  • DEFAULT_EXPORT <string>
  • NAMESPACE_OBJECT_EXPORT <string>
createModuleReference(module, __namedParameters): string
Attributes
module:<Module>
__namedParameters:
{Partial< ModuleReferenceOptions >}
Returns:<string>

Encodes a reference to another concatenated module as a placeholder identifier that can be parsed later during code generation.


getRawExport(exportName): string | undefined
Attributes
exportName:<string>

Returns the raw expression registered for an export, if one exists.


isModuleInScope(module): boolean
Attributes
module:<Module>
Returns:<boolean>

Checks whether a module participates in the current concatenation scope.


registerExport(exportName, symbol): void
Attributes
exportName:<string>
symbol:<string>
Returns:
{void}

Records the symbol that should be used when the current module exports a named binding.


registerNamespaceExport(symbol): void
Attributes
symbol:<string>
Returns:
{void}

Records the symbol that should be used for the synthetic namespace export.


registerRawExport(exportName, expression): void
Attributes
exportName:<string>
expression:<string>
Returns:
{void}

Records a raw expression that can be used to reference an export without going through the normal symbol map.


setRawExportMap(exportName, expression): void
Attributes
exportName:<string>
expression:<string>
Returns:
{void}

Replaces the raw expression for an export only when that export already has an entry in the raw export map.


Attributes
Returns:<boolean>

Checks whether an identifier is one of webpack's encoded concatenation module references.


Attributes

Parses an encoded module reference back into its module index and reference flags.