Skip to content

Comments

feat: markdown format & optimization suggestions for chunk visualize plugin#8242

Draft
IWANABETHATGUY wants to merge 1 commit intomainfrom
02-07-feat_markdown_format_chunk_meta
Draft

feat: markdown format & optimization suggestions for chunk visualize plugin#8242
IWANABETHATGUY wants to merge 1 commit intomainfrom
02-07-feat_markdown_format_chunk_meta

Conversation

@IWANABETHATGUY
Copy link
Member

@IWANABETHATGUY IWANABETHATGUY commented Feb 8, 2026

Summary

Adds an LLM-friendly markdown output format for the chunk visualization plugin, and an optimization suggestions section that analyzes bundle composition.

Markdown Format (format: 'md')

When format: 'md' is set, the plugin emits a structured markdown report instead of JSON. The report is designed to be consumed by LLMs and contains:

Section Description
Quick Summary Total output size, module count, entry points, code-split chunks
Largest Modules by Output Contribution All modules sorted by size with percentage of total
Entry Point Analysis Each entry's output file, bundle size, loaded chunks, and bundled modules
Dependency Chains Modules imported by multiple files — helps understand why a module is included
Optimization Suggestions Actionable suggestions with severity levels (see below)
Full Module Graph Complete per-module dependency info (imports, imported-by, size)
Raw Data for Searching Grep-friendly [MODULE:], [IMPORT:], [IMPORTED_BY:], [ENTRY:], [CHUNK:] patterns

Optimization Suggestions

The new suggestions section identifies modules in shared common chunks that are only reachable from a single static entry. These modules are unnecessarily shared and could be moved closer to their entry point via code splitting configuration.

Each suggestion includes a severity level based on the proportion of single-entry-reachable module size:

  • [HIGH] — > 50%
  • [MEDIUM] — 30%–50%
  • [LOW] — < 30%

Other Changes

  • format field type narrowed from string to 'json' | 'md' via #[napi(ts_type)]
  • Updated chunk-visualize-demo example with a proper multi-entry dependency graph that demonstrates the optimization suggestions

Copy link
Member Author

IWANABETHATGUY commented Feb 8, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@IWANABETHATGUY IWANABETHATGUY force-pushed the 02-07-feat_markdown_format_chunk_meta branch 8 times, most recently from 3f071b6 to 3d3f4cd Compare February 8, 2026 16:52
@IWANABETHATGUY IWANABETHATGUY force-pushed the 01-28-feat_chunk_visualization_plugin branch from d4dd4de to a37bde0 Compare February 8, 2026 17:09
@IWANABETHATGUY IWANABETHATGUY force-pushed the 02-07-feat_markdown_format_chunk_meta branch from 11ac591 to edbbfbd Compare February 8, 2026 17:09
@IWANABETHATGUY IWANABETHATGUY changed the title feat: chunk visualization plugin feat: markdown format & optimization suggestions for chunk visualize plugin Feb 8, 2026
@IWANABETHATGUY IWANABETHATGUY force-pushed the 02-07-feat_markdown_format_chunk_meta branch from edbbfbd to 9fe108c Compare February 9, 2026 02:41
@IWANABETHATGUY IWANABETHATGUY force-pushed the 01-28-feat_chunk_visualization_plugin branch 2 times, most recently from 9691365 to f9d3997 Compare February 9, 2026 03:58
@IWANABETHATGUY IWANABETHATGUY force-pushed the 02-07-feat_markdown_format_chunk_meta branch from 9fe108c to 3d1e6a6 Compare February 9, 2026 03:58
@IWANABETHATGUY IWANABETHATGUY force-pushed the 01-28-feat_chunk_visualization_plugin branch from f9d3997 to 0812a20 Compare February 9, 2026 04:10
@IWANABETHATGUY IWANABETHATGUY force-pushed the 02-07-feat_markdown_format_chunk_meta branch 2 times, most recently from 195e4f8 to bf26cb2 Compare February 9, 2026 08:40
@IWANABETHATGUY IWANABETHATGUY force-pushed the 01-28-feat_chunk_visualization_plugin branch from f04fcaa to f2bf28a Compare February 9, 2026 08:40
@graphite-app graphite-app bot changed the base branch from 01-28-feat_chunk_visualization_plugin to graphite-base/8242 February 9, 2026 08:53
@graphite-app graphite-app bot force-pushed the graphite-base/8242 branch from f2bf28a to 1251959 Compare February 9, 2026 09:03
@graphite-app graphite-app bot force-pushed the 02-07-feat_markdown_format_chunk_meta branch from bf26cb2 to e7fedd8 Compare February 9, 2026 09:03
@graphite-app graphite-app bot changed the base branch from graphite-base/8242 to main February 9, 2026 09:04
@graphite-app graphite-app bot force-pushed the 02-07-feat_markdown_format_chunk_meta branch from e7fedd8 to bdbd4a1 Compare February 9, 2026 09:04
@netlify
Copy link

netlify bot commented Feb 9, 2026

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 29c2594
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6989b02bad484c00086b01ab
😎 Deploy Preview https://deploy-preview-8242--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@IWANABETHATGUY IWANABETHATGUY changed the base branch from main to graphite-base/8242 February 9, 2026 09:34
@IWANABETHATGUY IWANABETHATGUY force-pushed the 02-07-feat_markdown_format_chunk_meta branch from bdbd4a1 to b671a7f Compare February 9, 2026 09:34
@IWANABETHATGUY IWANABETHATGUY changed the base branch from graphite-base/8242 to 02-09-refactor_give_a_proper_crate_name_for_bundle_analyze_plugin February 9, 2026 09:34
@graphite-app graphite-app bot changed the base branch from 02-09-refactor_give_a_proper_crate_name_for_bundle_analyze_plugin to graphite-base/8242 February 9, 2026 09:44
@graphite-app graphite-app bot force-pushed the graphite-base/8242 branch from 6eed944 to 325c779 Compare February 9, 2026 09:59
@graphite-app graphite-app bot force-pushed the 02-07-feat_markdown_format_chunk_meta branch from b671a7f to 1f9f0be Compare February 9, 2026 09:59
@graphite-app graphite-app bot changed the base branch from graphite-base/8242 to main February 9, 2026 10:00
@graphite-app graphite-app bot force-pushed the 02-07-feat_markdown_format_chunk_meta branch from 1f9f0be to 29c2594 Compare February 9, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant