On this page

class ModuleExternalInitFragment extends InitFragment<GenerateContext>
Source Code: lib/ExternalModule.js#L363

Represents ModuleExternalInitFragment.

new ModuleExternalInitFragment(request, imported, ident?, dependencyMeta?, hashFunction?): ModuleExternalInitFragment
Source Code: lib/ExternalModule.js#L372
Attributes
request:string
imported:Imported
ident:string
dependencyMeta:ImportDependencyMeta
hashFunction:string | typeof Hash

Creates an instance of ModuleExternalInitFragment.

Source Code: lib/InitFragment.js#L47
Type:string | Source
Source Code: lib/InitFragment.js#L55
Type:string | Source
Source Code: lib/InitFragment.js#L53
Type:string
Source Code: lib/InitFragment.js#L51
Type:number
Source Code: lib/InitFragment.js#L49
Type:number
Type:number
Type:number
Type:number
Type:number
Type:number
Type:number
Type:number
moduleExternalInitFragment.buildIdentifier(ident): string
Source Code: lib/ExternalModule.js#L489
Attributes
ident:string
Returns:string

Returns identifier.

moduleExternalInitFragment.buildImported(imported): Imported
Source Code: lib/ExternalModule.js#L498
Attributes
imported:Imported
Returns:Imported

Returns normalized imported.

moduleExternalInitFragment.deserialize(context): void
Source Code: lib/InitFragment.js#L186
Attributes

Restores this instance from the provided deserializer context.

moduleExternalInitFragment.getContent(context): string | Source | undefined
Source Code: lib/InitFragment.js#L63
Attributes

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

moduleExternalInitFragment.getEndContent(context): string | Source | undefined
Source Code: lib/InitFragment.js#L72
Attributes

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

moduleExternalInitFragment.getImported(): Imported
Source Code: lib/ExternalModule.js#L413
Returns:Imported

Returns imported.

moduleExternalInitFragment.getNamespaceIdentifier(): string
Source Code: lib/ExternalModule.js#L480
Returns:string
moduleExternalInitFragment.serialize(context): void
Source Code: lib/InitFragment.js#L172
Attributes

Serializes this instance into the provided serializer context.

moduleExternalInitFragment.setImported(imported): void
Source Code: lib/ExternalModule.js#L421
Attributes
imported:Imported

Updates imported using the provided imported.

ModuleExternalInitFragment.addToSource(source, initFragments, context): Source
Attributes
source:Source
initFragments:MaybeMergeableInitFragment<Context>[]
context:Context
Returns:Source

Adds the provided source to the init fragment.