new ExportInfo(): ExportInfo
Returns:
ExportInfoAttributes
canInlineProvide:
InlinedValuedefined: the export binds to a small primitive constant and may be inlined
undefined: not an inlined constant export
canInlineUse:
booleantrue: at least one consumer accepts inlining, none rejected
false: at least one consumer rejected inlining
undefined: collecting; no consumer has decided yet
canMangle:
booleancanMangleProvide:
booleantrue: it can be mangled
false: is can not be mangled
undefined: it was not determined if it can be mangled
canMangleUse:
booleantrue: it can be mangled
false: is can not be mangled
undefined: it was not determined if it can be mangled
exportsInfo:
ExportsInfoexportsInfoOwned:
booleanname:
stringtrue: 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:
booleanOnly 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:
booleanis the export a terminal binding that should be checked for export star conflicts
canInline(): InlinedValue | undefined
Returns:
InlinedValue | undefinedcreateNestedExportsInfo(): ExportsInfo
Returns:
ExportsInfoCreates a nested exports info.
findTarget(moduleGraph, validTargetModuleFilter): false | TargetItemWithoutConnection | null | undefined
Attributes
moduleGraph:
ModuleGraphReturns:
false | TargetItemWithoutConnection | null | undefinedReturns the target, undefined when there is no target, false when no target is valid.
getNestedExportsInfo(): ExportsInfo | undefined
Returns:
ExportsInfo | undefinedgetProvidedInfo(): "provided" | "no provided info" | "maybe provided (runtime-defined)" | "not provided"
Returns:
"provided" | "no provided info" | "maybe provided (runtime-defined)" | "not provided"getRenameInfo(): string
Returns:
stringgetTarget(moduleGraph, resolveTargetFilter?): TargetItemWithConnection | undefined
Attributes
moduleGraph:
ModuleGraphresolveTargetFilter:
(target: TargetItemWithConnection) => booleanReturns:
TargetItemWithConnection | undefinedReturns the target.
getTerminalBinding(moduleGraph, resolveTargetFilter?): ExportsInfo | ExportInfo | undefined
Attributes
moduleGraph:
ModuleGraphresolveTargetFilter:
(target: TargetItemWithConnection) => booleanReturns:
ExportsInfo | ExportInfo | undefinedGets terminal binding.
getUsed(runtime): UsageStateType
Attributes
runtime:
RuntimeSpecReturns:
UsageStateTypeReturns usage state.
getUsedInfo(): string
Returns:
stringgetUsedName(fallbackName, runtime): string | false | InlinedUsedName
Attributes
Returns used name. May return InlinedUsedName when the export is inlined to a primitive.
hasInfo(baseInfo, runtime): boolean
Attributes
Checks whether this export info contains the base info.
hasUsedName(): boolean
Returns:
booleanChecks whether this export info has used name.
isReexport(): boolean | undefined
moveTarget(moduleGraph, resolveTargetFilter, updateOriginalConnection?): TargetItemWithConnection | undefined
Attributes
moduleGraph:
ModuleGraphresolveTargetFilter:
(target: TargetItemWithConnection) => booleanupdateOriginalConnection:
(target: TargetItemWithConnection) => ModuleGraphConnection | undefinedReturns:
TargetItemWithConnection | undefinedMove the target forward as long resolveTargetFilter is fulfilled
setHasProvideInfo(): void
Returns:
voidsetHasUseInfo(): void
Returns:
voidsetTarget(key, connection, exportName?, priority?): boolean
Attributes
Updates target using the provided key.
setUsed(newValue, runtime): boolean
Attributes
Updates used using the provided new value.
setUsedConditionally(condition, newValue, runtime): boolean
Attributes
condition:
(condition: UsageStateType) => booleannewValue:
UsageStateTyperuntime:
RuntimeSpecReturns:
booleanSets used conditionally.
setUsedInUnknownWay(runtime): boolean
Attributes
runtime:
RuntimeSpecReturns:
booleanSets used in unknown way.
setUsedName(name): void
Attributes
name:
string | InlinedUsedNameReturns:
voidUpdates used name using the provided name.
setUsedWithoutInfo(runtime): boolean
Attributes
runtime:
RuntimeSpecReturns:
booleanSets used without info.
unsetTarget(key): boolean
Attributes
key:
DependencyReturns:
booleanReturns true, if something has changed.
updateHash(hash, runtime): void
Attributes
Updates the hash with the data contributed by this instance.
Attributes
Attributes