Skip to content

unpackAsyncModule()

Resolves either a direct value or an asynchronously imported module and unwraps its default export.

Example:

ts
const component = await unpackAsyncModule(import('./Component.ts'));

Released under the MIT License.