Skip to content

docs: illustrate multiple outputs with the JavaScript API - #6711

Merged
lukastaegert merged 2 commits into
rollup:masterfrom
lxj808624:docs/javascript-api-multiple-outputs
Dec 1, 2026
Merged

lukastaegert merged 2 commits into
rollup:masterfrom
lxj808624:docs/javascript-api-multiple-outputs

Conversation

@lxj808624

Copy link
Copy Markdown
Contributor

This PR contains:

  • documentation

Are tests included?

  • no

Breaking Changes?

  • no

List any relevant issue numbers:

Description

Add a concrete JavaScript API example of writing a regular and minified bundle from one build, with a link to the CLI/API distinction and guidance for multiple chunks. The existing configuration-file example remains the reference for CLI users.

The docs build, Markdown formatting and JavaScript/native-JS lint completed in a clean checkout. The example produced equivalent regular and minified outputs with the installed Rollup and Terser plugin. The full lint command could not complete its unrelated Rust portion because Cargo is not installed in the test environment. No production code changed.

generated with AI

AI-authored documentation prepared and validated by an agent on behalf of lxj808624. Addresses rollup#3014.
@vercel

vercel Bot commented Nov 30, 2026

Copy link
Copy Markdown

@lxj808624 is attempting to deploy a commit to the rollup-js Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install lxj808624/rollup-contrib#docs/javascript-api-multiple-outputs

Notice: To build the native dependencies, you need Rustup installed; the required nightly toolchain is then picked up automatically from rust-toolchain.toml.

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
rollup Ready Ready Preview Dec 1, 2026 5:08am UTC

Request Review

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Performance report

  • BUILD: 3858ms, 852 MB
    • initialize: 0ms, 24.4 MB
    • generate module graph: 1506ms, 613 MB
      • generate ast: 801ms, 602 MB
    • sort and bind modules: 323ms, 676 MB
    • mark included statements: 2029ms, 852 MB
      • treeshaking pass 1: 1244ms, 807 MB
      • treeshaking pass 2: 234ms, 827 MB
      • treeshaking pass 3: 191ms, 837 MB
      • treeshaking pass 4: 178ms, 845 MB
      • treeshaking pass 5: 177ms, 852 MB
  • GENERATE: 498ms, 883 MB
    • initialize render: 0ms, 852 MB
    • generate chunks: 34ms, 821 MB
      • optimize chunks: 0ms, 813 MB
    • render chunks: 446ms, 857 MB
    • transform chunks: 18ms, 883 MB
    • generate bundle: 0ms, 883 MB

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.37%. Comparing base (c728cb2) to head (34ae7e9).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6711   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         382      382           
  Lines       14374    14374           
  Branches     3097     3097           
=======================================
  Hits        14141    14141           
  Misses        189      189           
  Partials       44       44           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lukastaegert
lukastaegert added this pull request to the merge queue Dec 1, 2026
Merged via the queue into rollup:master with commit c648339 Dec 1, 2026
82 of 83 checks passed
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

This PR has been released as part of rollup@4.69.2. You can test it via npm install rollup.

This branch was successfully deployed

1 active deployment
Preview — 34ae7e9a Deployed Dec 1, 2026 by vercel[bot]
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