On this page

new ExportsInfo(): ExportsInfo
Returns:ExportsInfo
Attributes
Returns all exports in any order.
orderedExports:Iterable<ExportInfo>
Gets ordered exports.
orderedOwnedExports:Iterable<ExportInfo>
Gets ordered owned exports.
otherExportsInfo:ExportInfo
Gets other exports info.
ownedExports:Iterable<ExportInfo>
Gets owned exports.
getExportInfo(name): ExportInfo
Attributes
name:string
Returns:ExportInfo

Returns export info for this name.


getNestedExportsInfo(name?): ExportsInfo | undefined
Attributes
name:string[]

Gets nested exports info.


getOwnExportInfo(name): ExportInfo
Attributes
name:string
Returns:ExportInfo

Gets own export info.


getProvidedExports(): true | string[] | null
Returns:true | string[] | null

Gets provided exports.


getReadOnlyExportInfo(name): ExportInfo
Attributes
name:string
Returns:ExportInfo

Gets read only export info.


getReadOnlyExportInfoRecursive(name): ExportInfo | undefined
Attributes
name:string[]

Gets read only export info recursive.


getRelevantExports(runtime): ExportInfo[]
Attributes
runtime:RuntimeSpec
Returns:ExportInfo[]

Gets relevant exports.


getRestoreProvidedData(): RestoreProvidedData

Gets restore provided data.


getUsageKey(runtime): string
Attributes
runtime:RuntimeSpec
Returns:string

Returns key representing the usage.


getUsed(name, runtime): UsageStateType
Attributes
name:string | string[]
runtime:RuntimeSpec

Returns usage status.


getUsedExports(runtime): boolean | SortableSet<string> | null
Attributes
runtime:RuntimeSpec
Returns:boolean | SortableSet<string> | null

Returns set of used exports, or true (when namespace object is used), or false (when unused), or null (when unknown).


getUsedName(name, runtime): UsedName
Attributes
name:string | string[]
runtime:RuntimeSpec
Returns:UsedName

Returns the used name.


isEquallyUsed(runtimeA, runtimeB): boolean
Attributes
runtimeA:RuntimeSpec
runtimeB:RuntimeSpec
Returns:boolean

Checks whether this exports info is equally used.


isExportProvided(name): boolean | null | undefined
Attributes
name:string | string[]
Returns:boolean | null | undefined

Checks whether this exports info is export provided.


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

Checks whether this exports info is module used.


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

Checks whether this exports info is used.


restoreProvided(restoreProvidedData): void
Attributes
restoreProvidedData:RestoreProvidedData
Returns:void

Processes the provided data.


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

Sets all known exports used.


setHasProvideInfo(): void
Returns:void

setHasUseInfo(): void
Returns:void

setRedirectNamedTo(exportsInfo?): boolean
Attributes
exportsInfo:ExportsInfo
Returns:boolean

Sets redirect named to.


setUnknownExportsProvided(canMangle?, excludeExports?, targetKey?, targetModule?, priority?): boolean
Attributes
canMangle:boolean
excludeExports:Set<string>
targetKey:Dependency
priority:number
Returns:boolean

Sets unknown exports provided.


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

Sets used for side effects only.


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

Sets used in unknown way.


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

Sets used without info.


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

Updates the hash with the data contributed by this instance.

Type:string | false | string[]