On this page

new ExportsInfo(): ExportsInfo
  • 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:
{ExportInfo}

Returns export info for this name.


getNestedExportsInfo(name?): ExportsInfo | undefined
Attributes

Gets nested exports info.


getOwnExportInfo(name): ExportInfo
Attributes
Returns:
{ExportInfo}

Gets own export info.


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

Gets provided exports.


getReadOnlyExportInfo(name): ExportInfo
Attributes
Returns:
{ExportInfo}

Gets read only export info.


getReadOnlyExportInfoRecursive(name): undefined
Attributes
Returns:<undefined>

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< string > | null
Attributes
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
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(__namedParameters): void
Attributes
__namedParameters:<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< string >}
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.