Interface VirtualModuleSource
interface VirtualModuleSource { exports: string[]; imports: string[]; execute(exportsTarget: Record<string, any>,
compartment: Compartment,
resolvedImports: Record<string, string>): void; } Properties
Methods
execute
- execute(exportsTarget, compartment, resolvedImports): void
Parameters
- exportsTarget: Record<string, any>
- compartment: Compartment
- resolvedImports: Record<string, string>
Returns void
Note that this value does not contain any numeric or symbol property keys, which can theoretically be members of
exports
in a CommonJS module.