deepseek-harness / apps /web /src /node-module-stub.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
58a9693 verified
Raw History Blame Contribute Delete
408 Bytes
/**
* Browser stand-in for `node:module`. `createRequire` is unreachable in the
* configured loader path and fails loud if that assumption changes.
*/
/** Fail if browser boot reaches Node's module loader. */
export const createRequire = (): never => {
throw new Error('node:module is not available in the browser')
}
/** Type-only peer for the vendored loader. */
export type LoadHookContext = never