Skip to content
1 min read · 145 words

Interface: ForkIsolatedModuleOptions

Defined in: src/batteries/isolation/child_process/transport.ts:147

The { modulePath, forkOptions? } variant of ForkIsolatedOptions — spawns via this module's own node:child_process.fork() call.

Properties

PropertyTypeDescriptionDefined in
forkOptions?ForkOptionsForwarded to child_process.fork(). Unless this sets serialization explicitly, this transport pins serialization: 'advanced' — see this module's top-level remarks.src/batteries/isolation/child_process/transport.ts:154
modulePathstring | URLPath to the guest's entry module — passed straight through to child_process.fork(). Must be a runnable module (already bundled/transpiled if it isn't plain CommonJS/ESM node can load directly — fork() cannot load a .ts file itself).src/batteries/isolation/child_process/transport.ts:151
spawn?undefinedAbsent in this variant — mutually exclusive with modulePath/forkOptions. See ForkIsolatedResolverOptions for the BYO-spawner variant.src/batteries/isolation/child_process/transport.ts:157