Skip to content

Commit cfe990e

Browse files
committed
change copy and functionality
1 parent 80ec147 commit cfe990e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/client.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,12 @@ export class Kernel {
191191
if (
192192
typeof globalThis !== 'undefined' &&
193193
typeof (globalThis as any).Bun !== 'undefined' &&
194-
(globalThis as any).Bun.version
194+
(globalThis as any).Bun.version &&
195+
!readEnv('KERNEL_SUPPRESS_BUN_WARNING')
195196
) {
196-
throw new Errors.KernelError('The Bun runtime is not supported. Please use a different runtime.');
197+
loggerFor(this).warn(
198+
'The Bun runtime was detected. Playwright may have CDP connection issues, proceed with caution. Suppress this warning by setting the KERNEL_SUPPRESS_BUN_WARNING environment variable to true',
199+
);
197200
}
198201

199202
if (apiKey === undefined) {

0 commit comments

Comments
 (0)