SyntheticModule

constructor(exportNames: ReadonlyArray<String>, evaluateCallback: () -> Unit, options: SyntheticModuleOptions = definedExternally)(source)

Creates a new SyntheticModule instance.

Parameters

exportNames

Array of names that will be exported from the module.

evaluateCallback

Called when the module is evaluated.