Skip to content

docs(builtin-plugins): add bundle analyzer plugin docs#9292

Merged
shulaoda merged 3 commits into
mainfrom
05-05-docs_builtin-plugins_add_bundle_analyzer_plugin_docs
May 5, 2026
Merged

docs(builtin-plugins): add bundle analyzer plugin docs#9292
shulaoda merged 3 commits into
mainfrom
05-05-docs_builtin-plugins_add_bundle_analyzer_plugin_docs

Conversation

@shulaoda

@shulaoda shulaoda commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Add docs/builtin-plugins/bundle-analyzer.md, documenting the experimental bundleAnalyzerPlugin exported from rolldown/experimental.
  • Cover the fileName and format options, the JSON output schema, and the LLM-friendly markdown report (sections, optimization-suggestion severity levels, and an example of piping the report into a coding agent) introduced in feat: add LLM-friendly markdown output format to bundle analyzer plugin #8242.
  • Register the new page in the Builtin Plugins sidebar in docs/.vitepress/config.ts.

Context

The bundle analyzer plugin already shipped with an example in examples/bundle-analyzer-demo, but had no entry under docs/builtin-plugins/. With the markdown output format added in #8242 and shipped in v1.0.0-rc.7, the plugin now has enough surface area to deserve its own documentation page alongside builtin:replace and builtin:esm-external-require.

The new page follows the same structure as the existing built-in plugin docs:

  • Intro and :::tip EXPERIMENTAL callout noting the import path.
  • ## Usage with a minimal config example.
  • ## Options listing each option with type, default, and example.
  • ## JSON Format showing the default output schema.
  • ## Markdown Format describing each section of the markdown report, the [HIGH] / [MEDIUM] / [LOW] severity levels in optimization suggestions, and how to pipe the report into an LLM.
  • A pointer to the runnable examples/bundle-analyzer-demo example.

@netlify

netlify Bot commented May 4, 2026

Copy link
Copy Markdown

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit bdc64ae
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/69f9a368682b230008367655
😎 Deploy Preview https://deploy-preview-9292--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

Comment thread docs/builtin-plugins/bundle-analyzer.md Outdated
Comment thread docs/builtin-plugins/bundle-analyzer.md Outdated
@shulaoda
shulaoda requested a review from IWANABETHATGUY May 5, 2026 07:24
@shulaoda
shulaoda merged commit 158255a into main May 5, 2026
31 checks passed
@shulaoda
shulaoda deleted the 05-05-docs_builtin-plugins_add_bundle_analyzer_plugin_docs branch May 5, 2026 10:17
This was referenced May 6, 2026
@shulaoda shulaoda mentioned this pull request May 7, 2026
shulaoda added a commit that referenced this pull request May 7, 2026
## [1.0.0] - 2026-05-07

### 🐛 Bug Fixes

- dev/lazy: lazily compiled modules should be watched (#9301) by @h-a-n-a
- implement dynamic dominator merge logic (#9270) by @TheAlexLichter
- dev: apply __toCommonJS interop when CJS requires ESM in HMR finalizer (#9261) by @h-a-n-a

### 🚜 Refactor

- ecma_ast: tighten allocator access to enforce Sync invariant (#9278) by @IWANABETHATGUY
- scan_stage: remove stmt_infos field from EcmaView (#9276) by @IWANABETHATGUY
- link_stage: detach stmt_infos from EcmaView (#9274) by @IWANABETHATGUY
- link_stage: detach depended_runtime_helper from EcmaView to remove unsafe (#9265) by @IWANABETHATGUY
- link_stage: remove unsafe in determine_module_exports_kind (#9253) by @IWANABETHATGUY

### 📚 Documentation

- getting-started: remove RC warning for 1.0.0 release (#9310) by @shulaoda
- getting-started: update version references for 1.0.0 release (#9309) by @shulaoda
- add Vite+ tab to getting-started snippets (#9285) by @shulaoda
- lazy-barrel: clarify own-exports behavior for import-then-export records (#9298) by @shulaoda
- restructure top navigation around Learn vs Reference (#9284) by @shulaoda
- builtin-plugins: add bundle analyzer plugin docs (#9292) by @shulaoda
- design doc for reference_needed_symbols (#9264) by @IWANABETHATGUY

### ⚡ Performance

- devtools: write logs on a background thread (#9219) by @IWANABETHATGUY

### ⚙️ Miscellaneous Tasks

- mark esbuild/ts/parameter_props_use_define_for_class_fields_true as passed (#9308) by @sapphi-red
- deps: upgrade oxc to 0.129.0 (#9297) by @shulaoda
- deps: update rollup submodule for tests to v4.60.3 (#9294) by @sapphi-red
- deps: update test262 submodule for tests (#9295) by @sapphi-red
- ai: add rolldown REPL decode skill (#9245) by @Dunqing
pull Bot pushed a commit to olrtg/rolldown that referenced this pull request May 7, 2026
## [1.0.0] - 2026-05-07

### 🐛 Bug Fixes

- dev/lazy: lazily compiled modules should be watched (rolldown#9301) by @h-a-n-a
- implement dynamic dominator merge logic (rolldown#9270) by @TheAlexLichter
- dev: apply __toCommonJS interop when CJS requires ESM in HMR finalizer (rolldown#9261) by @h-a-n-a

### 🚜 Refactor

- ecma_ast: tighten allocator access to enforce Sync invariant (rolldown#9278) by @IWANABETHATGUY
- scan_stage: remove stmt_infos field from EcmaView (rolldown#9276) by @IWANABETHATGUY
- link_stage: detach stmt_infos from EcmaView (rolldown#9274) by @IWANABETHATGUY
- link_stage: detach depended_runtime_helper from EcmaView to remove unsafe (rolldown#9265) by @IWANABETHATGUY
- link_stage: remove unsafe in determine_module_exports_kind (rolldown#9253) by @IWANABETHATGUY

### 📚 Documentation

- getting-started: remove RC warning for 1.0.0 release (rolldown#9310) by @shulaoda
- getting-started: update version references for 1.0.0 release (rolldown#9309) by @shulaoda
- add Vite+ tab to getting-started snippets (rolldown#9285) by @shulaoda
- lazy-barrel: clarify own-exports behavior for import-then-export records (rolldown#9298) by @shulaoda
- restructure top navigation around Learn vs Reference (rolldown#9284) by @shulaoda
- builtin-plugins: add bundle analyzer plugin docs (rolldown#9292) by @shulaoda
- design doc for reference_needed_symbols (rolldown#9264) by @IWANABETHATGUY

### ⚡ Performance

- devtools: write logs on a background thread (rolldown#9219) by @IWANABETHATGUY

### ⚙️ Miscellaneous Tasks

- mark esbuild/ts/parameter_props_use_define_for_class_fields_true as passed (rolldown#9308) by @sapphi-red
- deps: upgrade oxc to 0.129.0 (rolldown#9297) by @shulaoda
- deps: update rollup submodule for tests to v4.60.3 (rolldown#9294) by @sapphi-red
- deps: update test262 submodule for tests (rolldown#9295) by @sapphi-red
- ai: add rolldown REPL decode skill (rolldown#9245) by @Dunqing

Co-authored-by: shulaoda <[email protected]>
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.

2 participants