[quickjs-emscripten](../README.md) / [Exports](../modules.md) / JSModuleLoader

# Interface: JSModuleLoader

## Callable

### JSModuleLoader

▸ **JSModuleLoader**(`moduleName`, `context`): [`JSModuleLoadResult`](../modules.md#jsmoduleloadresult)

Load module (sync)

#### Parameters

| Name | Type |
| :------ | :------ |
| `moduleName` | `string` |
| `context` | [`QuickJSContext`](../classes/QuickJSContext.md) |

#### Returns

[`JSModuleLoadResult`](../modules.md#jsmoduleloadresult)

#### Defined in

[ts/types.ts:82](https://github.com/justjake/quickjs-emscripten/blob/main/ts/types.ts#L82)
