2026-07-23 21:55:39 +08:00
|
|
|
/**
|
2026-07-25 13:02:37 +08:00
|
|
|
* Browser stand-in for `node:module`. `createRequire` is unreachable in the
|
|
|
|
|
* configured loader path and fails loud if that assumption changes.
|
2026-07-23 21:55:39 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** Throwing stand-in for node:module's createRequire (never reached in the browser boot). */
|
|
|
|
|
export const createRequire = (): never => {
|
|
|
|
|
throw new Error('node:module is not available in the browser')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Erased type peer for the vendored loader's type-only LoadHookContext import. */
|
|
|
|
|
export type LoadHookContext = never
|