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