Skip to content

Commit dccdd55

Browse files
authoredJan 12, 2025··
fix(ui): wrong module graph when generating html.meta.json.gz in browser mode (#7214)
1 parent e0b4775 commit dccdd55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎packages/ui/node/reporter.ts

+3
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ export default class HTMLReporter implements Reporter {
7171
await Promise.all(
7272
result.files.map(async (file) => {
7373
const projectName = file.projectName || ''
74+
const resolvedConfig = this.ctx.getProjectByName(projectName).config
75+
const browser = resolvedConfig.browser.enabled && resolvedConfig.browser.ui
7476
result.moduleGraph[projectName] ??= {}
7577
result.moduleGraph[projectName][file.filepath] = await getModuleGraph(
7678
this.ctx as any,
7779
projectName,
7880
file.filepath,
81+
browser,
7982
)
8083
if (!result.sources[file.filepath]) {
8184
try {

0 commit comments

Comments
 (0)
Please sign in to comment.