function importPlaywrightCore
importPlaywrightCore(): Promise<playwright-core>

playwright-core, from the running SEA's sidecar when it has one, else resolved as usual.

import { importPlaywrightCore } from './import-playwright-core.ts';

// Defined, not invoked: loading playwright-core takes ~150ms.
async function example() {
  return (await importPlaywrightCore()).chromium; // BrowserType
}

Return Type

Promise<playwright-core>

Usage

import { importPlaywrightCore } from "lib/utils/import-playwright-core.ts";