function prelaunchPromise
prelaunchPromise(): Promise<EarlyChrome | null>

The in-flight pre-launch, or a resolved null when startPrelaunch was never called or decided not to spawn (non-run command, --search, a daemon-routed run, non-chromium, or macOS — where the CI runner installs playwright's own headless shell and its path is not known this early).

import { prelaunchPromise } from './prelaunch.ts';

await prelaunchPromise(); // null — nothing was pre-launched in this process

Return Type

Promise<EarlyChrome | null>

Usage

import { prelaunchPromise } from "lib/chrome/prelaunch.ts";