class 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.
Source Code: lib/InitFragment.js#L47Type:
stringType:
numberType:
numberType:
numberType:
numberType:
numberType:
numberType:
numberType:
numberType:
numbermoduleExternalInitFragment.buildIdentifier(ident): string
Attributes
Returns identifier.
moduleExternalInitFragment.buildImported(imported): Imported
Attributes
Returns normalized imported.
moduleExternalInitFragment.deserialize(context): void
Attributes
Restores this instance from the provided deserializer context.
moduleExternalInitFragment.getContent(context): string | Source | undefined
Attributes
context:
GenerateContextReturns the source code that will be included as initialization code.
moduleExternalInitFragment.getEndContent(context): string | Source | undefined
Attributes
context:
GenerateContextReturns the source code that will be included at the end of the module.
moduleExternalInitFragment.getImported(): Imported
Returns:
ImportedReturns imported.
moduleExternalInitFragment.getNamespaceIdentifier(): string
Returns:
stringmoduleExternalInitFragment.serialize(context): void
Attributes
Serializes this instance into the provided serializer context.
moduleExternalInitFragment.setImported(imported): void
Attributes
imported:
ImportedUpdates imported using the provided imported.
ModuleExternalInitFragment.addToSource(source, initFragments, context): Source
Attributes
Adds the provided source to the init fragment.