mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-30 04:40:37 +00:00
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
/**
|
|
* 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
|