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
import type * as NodeChildProcess from 'node:child_process'
import { IS_NODE } from '../constants/runtime'
let childProcess: typeof NodeChildProcess | undefined
export function getNodeChildProcess(): typeof NodeChildProcess {
if (!IS_NODE) {
return undefined as unknown as typeof NodeChildProcess
}
return (childProcess ??=
// 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
/*@__PURE__*/ require('child_process') as typeof NodeChildProcess)