class webpack.ModuleExternalInitFragment extends InitFragmentnew ModuleExternalInitFragment(request, imported, ident?, dependencyMeta?, hashFunction?): ModuleExternalInitFragmentAttributes
request:
<string>imported:
{Imported}
ident:
<string>dependencyMeta:
<ImportDependencyMeta>Returns:
<ModuleExternalInitFragment>Creates an instance of ModuleExternalInitFragment.
Attributes
buildIdentifier(ident): stringAttributes
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
Adds the provided source to the init fragment.