You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @file Early-snapshot accessor for `node:os`. See `node/fs.ts` for the shared
* rationale: the `require` runs at module load behind the runtime `IS_NODE`
* guard (false in browsers → never executes there), giving a load-time
* snapshot in Node while staying browser-safe. `getNodeOs()` returns the
* module object (late method lookup, spy-able); the frozen `os<Method>`
* snapshots below are the tamper-proof hot-path twin.
*/
import type * as NodeOs from 'node:os'
import { IS_NODE } from '../constants/runtime'
// oxlint-disable-next-line unicorn/prefer-node-protocol -- bare specifier (not node:) so webpack resolve.fallback / browser-field can stub this builtin for browser bundles; node: prefix throws UnhandledSchemeError there