feat: markdown format & optimization suggestions for chunk visualize plugin#8242
Draft
IWANABETHATGUY wants to merge 1 commit intomainfrom
Draft
feat: markdown format & optimization suggestions for chunk visualize plugin#8242IWANABETHATGUY wants to merge 1 commit intomainfrom
IWANABETHATGUY wants to merge 1 commit intomainfrom
Conversation
Member
Author
|
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.
How to use the Graphite Merge QueueAdd 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. |
3f071b6 to
3d3f4cd
Compare
d4dd4de to
a37bde0
Compare
11ac591 to
edbbfbd
Compare
edbbfbd to
9fe108c
Compare
9691365 to
f9d3997
Compare
9fe108c to
3d1e6a6
Compare
f9d3997 to
0812a20
Compare
195e4f8 to
bf26cb2
Compare
f04fcaa to
f2bf28a
Compare
f2bf28a to
1251959
Compare
bf26cb2 to
e7fedd8
Compare
e7fedd8 to
bdbd4a1
Compare
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
bdbd4a1 to
b671a7f
Compare
6eed944 to
325c779
Compare
b671a7f to
1f9f0be
Compare
1f9f0be to
29c2594
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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:[MODULE:],[IMPORT:],[IMPORTED_BY:],[ENTRY:],[CHUNK:]patternsOptimization 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
formatfield type narrowed fromstringto'json' | 'md'via#[napi(ts_type)]chunk-visualize-demoexample with a proper multi-entry dependency graph that demonstrates the optimization suggestions