MCPcopy Create free account
hub / github.com/Paciolan/remote-module-loader / defaultRequires

Function defaultRequires

src/lib/loadRemoteModule.ts:13–17  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

11const defaultFetcher = isBrowser ? xmlHttpRequestFetcher : nodeFetcher;
12
13const defaultRequires = (name: string) => {
14 throw new Error(
15 `Could not require '${name}'. The 'requires' function was not provided.`
16 );
17};
18
19export interface CreateLoadRemoteModuleOptions {
20 requires?: any;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected