class webpack.ModuleExternalInitFragment extends InitFragment<GenerateContext>Represents InitFragment.
new ModuleExternalInitFragment(request, imported, ident?, dependencyMeta?, hashFunction?): ModuleExternalInitFragmentAttributes
request:
stringimported:
Importedident:
stringdependencyMeta:
ImportDependencyMetaReturns:
ModuleExternalInitFragmentCreates an instance of ModuleExternalInitFragment.
Attributes
buildIdentifier(ident): stringAttributes
Returns identifier.
buildImported(imported): ImportedAttributes
Returns normalized imported.
deserialize(context): voidAttributes
context:
ObjectDeserializerContextReturns:
voidRestores this instance from the provided deserializer context.
getContent(context): string | Source | undefinedAttributes
context:
GenerateContextReturns the source code that will be included as initialization code.
getEndContent(context): string | Source | undefinedAttributes
context:
GenerateContextReturns the source code that will be included at the end of the module.
getImported(): ImportedReturns:
ImportedReturns imported.
getNamespaceIdentifier(): stringReturns:
stringserialize(context): voidAttributes
context:
ObjectSerializerContextReturns:
voidSerializes this instance into the provided serializer context.
setImported(imported): voidAttributes
Updates imported using the provided imported.
Attributes
Adds the provided source to the init fragment.