class webpack.ModuleExternalInitFragment extends InitFragmentnew ModuleExternalInitFragment(request, imported, ident?, dependencyMeta?, hashFunction?): ModuleExternalInitFragmentAttributes
request:
<string>imported:
<Imported>ident:
<string>dependencyMeta:
<ImportDependencyMeta>hashFunction:
<string>
|
<typeof Hash>Returns:
<ModuleExternalInitFragment>Creates an instance of ModuleExternalInitFragment.
Attributes
buildIdentifier(ident): stringAttributes
Returns identifier.
buildImported(imported): ImportedAttributes
imported:
<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): voidAttributes
imported:
<Imported>Returns:
<void>Updates imported using the provided imported.
Attributes
source:
<Source>initFragments:
<MaybeMergeableInitFragment><
<Context>
>[]context:
{Context}
Returns:
<Source>Adds the provided source to the init fragment.