diff --git a/packages/playwright/src/util.ts b/packages/playwright/src/util.ts index 0df177d1e0..0ef9e6baf7 100644 --- a/packages/playwright/src/util.ts +++ b/packages/playwright/src/util.ts @@ -293,6 +293,7 @@ function folderIsModule(folder: string): boolean { const isDeno = typeof process.versions.deno === 'string'; if (!packageJsonPath) return isDeno; + // Rely on `require` internal caching logic. const type = require(packageJsonPath).type; if (type === 'module') return true;