diff --git a/internal/check-browser-gates-guarded.mjs b/internal/check-browser-gates-guarded.mjs index 4949d32dc..aee78d09a 100644 --- a/internal/check-browser-gates-guarded.mjs +++ b/internal/check-browser-gates-guarded.mjs @@ -23,7 +23,7 @@ if (process.argv.includes('--list')) { process.exit(0) } // A REAL import, not text that names one: a static import statement at the start of a line, or a literal -// import('playwright') / require('playwright') call. The detectors (browser-gates.mjs, this file) spell the +// dynamic import or require of the playwright package. The detectors (browser-gates.mjs, this file) spell the // pattern inside regex literals, escaped, which none of these match, so they need no exclusion and a real // import added to one still fails. Only the guard itself imports playwright, by design. const DIRECT = /^\s*import\b[^;\n]*\bfrom\s+['"]playwright['"]|\bimport\(\s*['"]playwright['"]\s*\)|\brequire\(\s*['"]playwright['"]\s*\)/m