Skip to content

Conversation

@tysoncung
Copy link

Adds documentation for the bun build command as part of issue #19127.

Changes

  • New page: pages/common/bun-build.md
  • 8 practical examples covering common bundling scenarios
  • Follows tldr format and style guidelines

Examples included

  • Basic bundling to single file
  • Multiple entry points
  • Source maps for debugging
  • Minification for production
  • Target environment specification
  • Standalone executable compilation
  • Watch mode for development
  • External dependencies handling

Addresses #19127

@CLAassistant
Copy link

CLAassistant commented Nov 1, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers. labels Nov 1, 2025
@Managor Managor mentioned this pull request Nov 1, 2025
42 tasks
@Managor Managor added the hacktoberfest-accepted PRs that were opened for Hacktoberfest, but may not actually get merged until November. label Nov 1, 2025

- Bundle multiple entry points to an output directory:

`bun build {{path/to/entry1.ts path/to/entry2.ts}} --outdir {{path/to/dist}}`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`bun build {{path/to/entry1.ts path/to/entry2.ts}} --outdir {{path/to/dist}}`
`bun build {{path/to/entry1.ts path/to/entry2.ts ...}} --outdir {{path/to/dist}}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted PRs that were opened for Hacktoberfest, but may not actually get merged until November. new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants