On this page

  • {InitFragment}
new ModuleExternalInitFragment(request, imported, ident?, dependencyMeta?, hashFunction?): ModuleExternalInitFragment
Attributes
request:<string>
imported:
{Imported}
ident:<string>
dependencyMeta:<ImportDependencyMeta>
hashFunction:<string>
Attributes
content:<string> | <Source>
endContent:<string> | <Source>
position:<number>
stage:<number>
STAGE_ASYNC_BOUNDARY:<number>
STAGE_ASYNC_DEPENDENCIES:<number>
STAGE_ASYNC_HARMONY_IMPORTS:<number>
STAGE_CONSTANTS:<number>
STAGE_HARMONY_EXPORTS:<number>
STAGE_HARMONY_IMPORTS:<number>
STAGE_PROVIDES:<number>
buildIdentifier(ident): string
Attributes
ident:<string>
Returns:<string>

buildImported(imported): void
  • imported {Imported}
  • Returns: {Imported}

deserialize(context): void
Attributes
Returns:
{void}

getContent(context): void
  • context {GenerateContext} context
  • Returns: <string> | <Source> | <undefined> the source code that will be included as initialization code

getEndContent(context): void
  • context {GenerateContext} context
  • Returns: <string> | <Source> | <undefined> the source code that will be included at the end of the module

getImported(): Imported
Returns:
{Imported}

getNamespaceIdentifier(): string
Returns:<string>

serialize(context): void
Attributes
Returns:
{void}

setImported(imported): void
  • imported {Imported}
  • Returns: {void}

Attributes
source:<Source>
sources
initFragments:
{MaybeMergeableInitFragment []} init fragments
context:
{Context} context
Returns:<Source>
source