diff --git a/common/src/zygote.ts b/common/src/zygote.ts index a43a96c103..a3f3b7c86c 100644 --- a/common/src/zygote.ts +++ b/common/src/zygote.ts @@ -5,14 +5,16 @@ import os from 'os'; export type Zygote = () => PluginFork; -export function createZygote(name: string): Zygote { - let zygote = sdk.fork(); +export function createZygote(name?: string, filename?: string): Zygote { + const opts = { + name, + filename, + }; + let zygote = sdk.fork(opts); function* next() { while (true) { const cur = zygote; - zygote = sdk.fork({ - name, - }); + zygote = sdk.fork(opts); yield cur; } }