On this page

class webpack.ModuleExternalInitFragment extends InitFragment<GenerateContext>

Represents InitFragment.

new ModuleExternalInitFragment(request, imported, ident?, dependencyMeta?, hashFunction?): ModuleExternalInitFragment
Attributes
request:string
imported:Imported
ident:string
dependencyMeta:ImportDependencyMeta
hashFunction:string | typeof Hash

Creates an instance of ModuleExternalInitFragment.

Attributes
content:string | Source
endContent:string | Source
key:string
position:number
stage:number
STAGE_ASYNC_BOUNDARY:number
STAGE_ASYNC_DEPENDENCIES:number
STAGE_ASYNC_HARMONY_IMPORTS:number
STAGE_CONSTANTS:number
STAGE_HARMONY_EXPORTS:number
STAGE_HARMONY_IMPORTS:number
STAGE_PROVIDES:number
buildIdentifier(ident): string
Attributes
ident:string
Returns:string

Returns identifier.


buildImported(imported): Imported
Attributes
imported:Imported
Returns:Imported

Returns normalized imported.


deserialize(context): void
Attributes

Restores this instance from the provided deserializer context.


getContent(context): string | Source | undefined
Attributes

Returns the source code that will be included as initialization code.


getEndContent(context): string | Source | undefined
Attributes

Returns the source code that will be included at the end of the module.


getImported(): Imported
Returns:Imported

Returns imported.


getNamespaceIdentifier(): string
Returns:string

serialize(context): void
Attributes

Serializes this instance into the provided serializer context.


setImported(imported): void
Attributes
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.

Type:true | [string, string][]