Skip to content

docs: explain in-memory programmatic builds#1031

Merged
sxzz merged 1 commit into
rolldown:mainfrom
ColumbusLabs:codex/document-write-false
Jul 25, 2026
Merged

docs: explain in-memory programmatic builds#1031
sxzz merged 1 commit into
rolldown:mainfrom
ColumbusLabs:codex/document-write-false

Conversation

@ColumbusLabs

@ColumbusLabs ColumbusLabs commented Jul 25, 2026

Copy link
Copy Markdown
Contributor
  • This PR contains AI-generated code, but I have carefully reviewed it myself. Otherwise, my PR may be closed.

Description

Documents the Programmatic Usage write:false item from #247 across the English guide, Chinese guide, and synchronized tsdown skill reference.

The new section shows an in-memory build, explains chunk and asset content access, documents the current TsdownBundle[] return shape, notes remaining filesystem side effects, and calls out the watch-mode incompatibility. It also corrects the skill reference’s stale Promise description.

This is AI-assisted documentation, not core code. The final diff was validated against the implementation with a live runtime probe and independently reviewed.

Validation:

  • live build({ write:false, clean:false }) probe returned an in-memory bundle
  • pnpm lint
  • pnpm typecheck
  • pnpm docs:generate
  • pnpm docs:build
  • targeted Prettier and git diff --check

Linked Issues

Addresses the unchecked Programmatic Usage write:false documentation item in #247.

Additional context

The docs explicitly avoid combining write:false with watch mode because current watch rebuilds do not expose returned bundles.

@netlify

netlify Bot commented Jul 25, 2026

Copy link
Copy Markdown

Deploy Preview for tsdown-main ready!

Name Link
🔨 Latest commit 1ad9f93
🔍 Latest deploy log https://app.netlify.com/projects/tsdown-main/deploys/6a6427e43628de0008302b16
😎 Deploy Preview https://deploy-preview-1031--tsdown-main.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.

@pkg-pr-new

pkg-pr-new Bot commented Jul 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

tsdown

pnpm add https://pkg.pr.new/tsdown@1031 -D
npm i https://pkg.pr.new/tsdown@1031 -D
yarn add https://pkg.pr.new/tsdown@1031.tgz -D

create-tsdown

pnpm add https://pkg.pr.new/create-tsdown@1031 -D
npm i https://pkg.pr.new/create-tsdown@1031 -D
yarn add https://pkg.pr.new/create-tsdown@1031.tgz -D

@tsdown/css

pnpm add https://pkg.pr.new/@tsdown/css@1031 -D
npm i https://pkg.pr.new/@tsdown/css@1031 -D
yarn add https://pkg.pr.new/@tsdown/css@1031.tgz -D

@tsdown/exe

pnpm add https://pkg.pr.new/@tsdown/exe@1031 -D
npm i https://pkg.pr.new/@tsdown/exe@1031 -D
yarn add https://pkg.pr.new/@tsdown/exe@1031.tgz -D

tsdown-migrate

pnpm add https://pkg.pr.new/tsdown-migrate@1031 -D
npm i https://pkg.pr.new/tsdown-migrate@1031 -D
yarn add https://pkg.pr.new/tsdown-migrate@1031.tgz -D

commit: 1ad9f93

@sxzz

sxzz commented Jul 25, 2026

Copy link
Copy Markdown
Member

Thanks!

@sxzz
sxzz merged commit 8cf6bb1 into rolldown:main Jul 25, 2026
16 checks passed
@sxzz sxzz mentioned this pull request Jul 25, 2026
15 tasks
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