Skip to content

Commit

Permalink
fix: check for this.browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Dec 8, 2024
1 parent 630d780 commit f160fc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/worker/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export class VSCodeReporter implements Reporter {
// @ts-expect-error internal
project[name] = async function _initBrowserProvider(this: WorkspaceProject) {
await original()
if (!this.browser) {
return
}
const config = this.browser!.vite.config
if (!config.server.fs.allow.includes(setupFilePath)) {
config.server.fs.allow.push(setupFilePath)
Expand Down

0 comments on commit f160fc9

Please sign in to comment.