Revert "Revert "fix: break require cycle (#6353)""

This reverts commit 17e966bc2e.
This commit is contained in:
Pavel Feldman 2021-04-28 22:16:53 -07:00
parent 17e966bc2e
commit 0becd9428a

View File

@ -20,7 +20,6 @@ import * as util from 'util';
import { CRPage } from '../../chromium/crPage';
import { Page } from '../../page';
import { ProgressController } from '../../progress';
import { createPlaywright } from '../../playwright';
import { EventEmitter } from 'events';
import { internalCallMetadata } from '../../instrumentation';
import type { CallLog, EventData, Mode, Source } from './recorderTypes';
@ -95,7 +94,7 @@ export class RecorderApp extends EventEmitter {
}
static async open(inspectedContext: BrowserContext): Promise<RecorderApp> {
const recorderPlaywright = createPlaywright(true);
const recorderPlaywright = require('../../playwright').createPlaywright() as import('../../playwright').Playwright;
const args = [
'--app=data:text/html,',
'--window-size=600,600',