JSModuleProvider

fun interface JSModuleProvider

JavaScript Module Provider

This interface is implemented for classes which can resolve built-in JavaScript modules; usually, a module provider is paired with (or is also a) SyntheticJSModule. The module provider is responsible for bootstrapping or loading the module, as needed, and then providing an instance which satisfies the import request.

Inheritors

Functions

Link copied to clipboard
abstract fun resolve(info: ModuleInfo): Any

Given a suite of module info for a built-in module, resolve the module implementation and provide it as the return value.