- {InitFragment< GenerateContext >}
new ModuleExternalInitFragment(request, imported, ident?, dependencyMeta?, hashFunction?): ModuleExternalInitFragmentAttributes
Returns:
<ModuleExternalInitFragment>Creates an instance of ModuleExternalInitFragment.
Attributes
buildIdentifier(ident): stringAttributes
ident:
<string>Returns:
<string>Returns identifier.
buildImported(imported): voidimported{Imported}- Returns: {Imported}
Returns normalized imported.
deserialize(context): voidAttributes
context:
<ObjectDeserializerContext>Returns:
{void}
Restores this instance from the provided deserializer context.
getContent(context): string | Source | undefinedAttributes
context:
<GenerateContext>Returns:
<string>
|
<Source>
|
<undefined>Returns the source code that will be included as initialization code.
getEndContent(context): string | Source | undefinedAttributes
context:
<GenerateContext>Returns:
<string>
|
<Source>
|
<undefined>Returns the source code that will be included at the end of the module.
getImported(): ImportedReturns:
{Imported}
Returns imported.
getNamespaceIdentifier(): stringReturns:
<string>serialize(context): voidAttributes
context:
<ObjectSerializerContext>Returns:
{void}
Serializes this instance into the provided serializer context.
setImported(imported): voidimported{Imported}- Returns: {void}
Updates imported using the provided imported.
Attributes
Returns:
<Source>Adds the provided source to the init fragment.