File size: 408 Bytes
58a9693 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | /**
* 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
|