Skip to main content

Function: resolveDefaultExport()

resolveDefaultExport<T>(value: T): T

Defined in: _internal/default-export.ts:17

Unwrap nested .default layers that can appear when ESM-only unified plugins are loaded through CommonJS interop.

Type Parameters

T

T

Parameters

value

T

Imported module or value.

Returns

T

The innermost default export when one exists, otherwise the original value.