Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

chore: fix build

Martin Adámekdfe017af8ab4
diff --git a/packages/browser-pool/src/playwright/playwright-controller.ts b/packages/browser-pool/src/playwright/playwright-controller.ts
index 6032f2b7a..0f7a4c1bf 100644
--- a/packages/browser-pool/src/playwright/playwright-controller.ts
+++ b/packages/browser-pool/src/playwright/playwright-controller.ts
@@ -6,10 +6,6 @@ import { tryCancel } from '@apify/timeout';
import { BrowserController } from '../abstract-classes/browser-controller.js';
import { anonymizeProxySugar } from '../anonymize-proxy.js';
import type { SafeParameters } from '../utils.js';
-import type { PlaywrightPlugin } from './playwright-plugin.js';
-
-const tabIds = new WeakMap<Page, number>();
-const keyFromTabId = (tabId: string | number) => `.${tabId}.`;
export class PlaywrightController extends BrowserController<
BrowserType,