-
Notifications
You must be signed in to change notification settings - Fork 793
feat: export console issues #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete the file
| BUILD_DIR, | ||
| 'node_modules/chrome-devtools-frontend/front_end/models/issues_manager/descriptions', | ||
| ); | ||
| fs.cpSync(sourceDir, destDir, {recursive: true}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the destDir the same as sourceDir?
| import * as path from 'node:path'; | ||
|
|
||
| const DESCRIPTIONS_PATH = path.join( | ||
| process.cwd(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not use the process.cwd() because the server could be start from any current working directory. Instead let's use import.meta.dirname
| } | ||
|
|
||
| protected async subscribeForIssues(page: Page) { | ||
| if (this instanceof NetworkCollector) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's create a subclass for ConsoleCollector and invoke this by extending the addPage call. Let's also make sure we set up listeners first (by calling this.#initializePage) and then call subscribeForIssues
No description provided.