On this page

new ExportInfo(): ExportInfo
Returns:ExportInfo
Attributes
canMangle:boolean
canMangleProvide:boolean
true: it can be mangled false: is can not be mangled undefined: it was not determined if it can be mangled
canMangleUse:boolean
true: it can be mangled false: is can not be mangled undefined: it was not determined if it can be mangled
exportsInfo:ExportsInfo
exportsInfoOwned:boolean
name:string
provided:boolean | null
true: it is provided false: it is not provided null: only the runtime knows if it is provided undefined: it was not determined if it is provided
terminalBinding:boolean
is the export a terminal binding that should be checked for export star conflicts
createNestedExportsInfo(): ExportsInfo
Returns:ExportsInfo

Creates a nested exports info.


findTarget(moduleGraph, validTargetModuleFilter): false | TargetItemWithoutConnection | null | undefined
Attributes
moduleGraph:ModuleGraph
validTargetModuleFilter:(module: Module) => boolean
Returns:false | TargetItemWithoutConnection | null | undefined

Returns the target, undefined when there is no target, false when no target is valid.


getNestedExportsInfo(): ExportsInfo | undefined

getProvidedInfo(): "provided" | "no provided info" | "maybe provided (runtime-defined)" | "not provided"
Returns:"provided" | "no provided info" | "maybe provided (runtime-defined)" | "not provided"

getRenameInfo(): string
Returns:string

getTarget(moduleGraph, resolveTargetFilter?): TargetItemWithConnection | undefined
Attributes
moduleGraph:ModuleGraph
resolveTargetFilter:(target: TargetItemWithConnection) => boolean

Returns the target.


getTerminalBinding(moduleGraph, resolveTargetFilter?): ExportsInfo | ExportInfo | undefined
Attributes
moduleGraph:ModuleGraph
resolveTargetFilter:(target: TargetItemWithConnection) => boolean

Gets terminal binding.


getUsed(runtime): UsageStateType
Attributes

Returns usage state.


getUsedInfo(): string
Returns:string

getUsedName(fallbackName, runtime): string | false
Attributes
fallbackName:string | undefined
runtime:RuntimeSpec
Returns:string | false

Returns used name.


hasInfo(baseInfo, runtime): boolean
Attributes
baseInfo:ExportInfo
runtime:RuntimeSpec
Returns:boolean

Checks whether this export info contains the base info.


hasUsedName(): boolean
Returns:boolean

Checks whether this export info has used name.


isReexport(): boolean | undefined
Returns:boolean | undefined

moveTarget(moduleGraph, resolveTargetFilter, updateOriginalConnection?): TargetItemWithConnection | undefined
Attributes
moduleGraph:ModuleGraph
resolveTargetFilter:(target: TargetItemWithConnection) => boolean
updateOriginalConnection:(target: TargetItemWithConnection) => ModuleGraphConnection

Move the target forward as long resolveTargetFilter is fulfilled


setHasProvideInfo(): void
Returns:void

setHasUseInfo(): void
Returns:void

setTarget(key, connection, exportName?, priority?): boolean
Attributes
exportName:string[] | null
priority:number
Returns:boolean

Updates target using the provided key.


setUsed(newValue, runtime): boolean
Attributes
runtime:RuntimeSpec
Returns:boolean

Updates used using the provided new value.


setUsedConditionally(condition, newValue, runtime): boolean
Attributes
condition:(condition: UsageStateType) => boolean
runtime:RuntimeSpec
Returns:boolean

Sets used conditionally.


setUsedInUnknownWay(runtime): boolean
Attributes
runtime:RuntimeSpec
Returns:boolean

Sets used in unknown way.


setUsedName(name): void
Attributes
name:string
Returns:void

Updates used name using the provided name.


setUsedWithoutInfo(runtime): boolean
Attributes
runtime:RuntimeSpec
Returns:boolean

Sets used without info.


unsetTarget(key): boolean
Attributes
Returns:boolean

Returns true, if something has changed.


updateHash(hash, runtime): void
Attributes
hash:Hash
runtime:RuntimeSpec
Returns:void

Updates the hash with the data contributed by this instance.

Attributes
export:string[]
module:Module

Attributes
deferred:boolean
export:string[]
module:Module