On this page

new ExportInfo(): ExportInfo
Returns:ExportInfo
Attributes
canInlineProvide:InlinedValue
defined: the export binds to a small primitive constant and may be inlined undefined: not an inlined constant export
canInlineUse:boolean
true: at least one consumer accepts inlining, none rejected false: at least one consumer rejected inlining undefined: collecting; no consumer has decided yet
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
pureProvide:boolean
Only specific export info can be pure, so other_export_info.pure is always undefined. true: calling the export has no observable side effects undefined: it was not determined whether the export is pure
terminalBinding:boolean
is the export a terminal binding that should be checked for export star conflicts
canInline(): InlinedValue | undefined

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 | InlinedUsedName
Attributes
fallbackName:string | undefined
runtime:RuntimeSpec
Returns:string | false | InlinedUsedName

Returns used name. May return InlinedUsedName when the export is inlined to a primitive.


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 | undefined

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

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