diff --git a/packages/ui/node/reporter.ts b/packages/ui/node/reporter.ts index 1e53756ad9a5..82945f7d4289 100644 --- a/packages/ui/node/reporter.ts +++ b/packages/ui/node/reporter.ts @@ -71,11 +71,14 @@ export default class HTMLReporter implements Reporter { await Promise.all( result.files.map(async (file) => { const projectName = file.projectName || '' + const resolvedConfig = this.ctx.getProjectByName(projectName).config + const browser = resolvedConfig.browser.enabled && resolvedConfig.browser.ui result.moduleGraph[projectName] ??= {} result.moduleGraph[projectName][file.filepath] = await getModuleGraph( this.ctx as any, projectName, file.filepath, + browser, ) if (!result.sources[file.filepath]) { try {