On this page

new ExportsInfo(): ExportsInfo
Attributes
exports:<Iterable>
< <ExportInfo> > 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

Returns export info for this name.


getNestedExportsInfo(name?): ExportsInfo | undefined
Attributes

Gets nested exports info.


getOwnExportInfo(name): ExportInfo
Attributes

Gets own export info.


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

Gets provided exports.


getReadOnlyExportInfo(name): ExportInfo
Attributes

Gets read only export info.


getReadOnlyExportInfoRecursive(name): ExportInfo | undefined
Attributes

Gets read only export info recursive.


getRelevantExports(runtime): ExportInfo
Attributes
Returns:<ExportInfo>
[]

Gets relevant exports.


getRestoreProvidedData(): RestoreProvidedData

Gets restore provided data.


getUsageKey(runtime): string
Attributes
Returns:<string>

Returns key representing the usage.


getUsed(name, runtime): UsageStateType
Attributes

Returns usage status.


getUsedExports(runtime): boolean | SortableSet
Attributes

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

Checks whether this exports info is export provided.


isModuleUsed(runtime): boolean
Attributes
Returns:<boolean>

Checks whether this exports info is module used.


isUsed(runtime): boolean
Attributes
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
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>
targetKey:<Dependency>
priority:<number>
Returns:<boolean>

Sets unknown exports provided.


setUsedForSideEffectsOnly(runtime): boolean
Attributes
Returns:<boolean>

Sets used for side effects only.


setUsedInUnknownWay(runtime): boolean
Attributes
Returns:<boolean>

Sets used in unknown way.


setUsedWithoutInfo(runtime): boolean
Attributes
Returns:<boolean>

Sets used without info.


updateHash(hash, runtime): void
Attributes
hash:<Hash>
Returns:<void>

Updates the hash with the data contributed by this instance.

Type:<string> | <false> | <string>
[]