Unverified Commit 42f155f4 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

bundle-analyzer: exclude traces from output types (#98536)

## Summary

Exclude traced project files from emitted output-type classification in
the bundle analyzer.

Traced TypeScript sources are synthetic provenance entries, but were
classified as assets because their filenames do not use an emitted
JavaScript extension. This could make JavaScript sources appear red in
the treemap even when their emitted chunks are JavaScript.

## Verification

- `pnpm --filter=@next/bundle-analyzer-ui build`

<!-- NEXT_JS_LLM -->
parent 1999173b
......@@ -464,6 +464,7 @@ export class AnalyzeData {
} else if (outputFile.filename.startsWith('[project]/')) {
traced = true
server = true
continue
} else {
server = true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment