From 49d941c00e2e0a356660632d75b260efc5ae9dd7 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker Date: Tue, 15 Oct 2024 17:41:26 -0700 Subject: [PATCH] Retain comment --- packages/playwright/src/util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/playwright/src/util.ts b/packages/playwright/src/util.ts index 0df177d1e0177..0ef9e6baf7864 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;