Skip to content

Commit

Permalink
Retain comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed Oct 16, 2024
1 parent 26c13a2 commit 49d941c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/playwright/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 49d941c

Please sign in to comment.