Field note
What it does
Runtime Package Manager Bundler Test Runner Guides Reference Blog Feedback Browse docs Bundler Core Bundler Development Server Fullstack dev server Hot reloading Asset Processing HTML & static sites Standalone HTML CSS Loaders Single File Executable Single-file executable Extensions Plugins Macros Optimization Bytecode Caching Minifier Migration esbuild Bundler › Core Copy page Bundler Bun's fast native bundler for JavaScript, TypeScript, JSX, and more Use Bun's native bundler through the bun build CLI command or the Bun.build() JavaScript API. At a Glance # JS API: await Bun.build({ entrypoints, outdir }) CLI: bun build <entry> --outdir ./out Watch: --watch for incremental rebuilds Targets: --target browser|bun|node Formats: --format esm|cjs|iife (experimental for cjs/iife) JavaScript CLI build.ts await Bun. build ({ entrypoints : [ ' ./index.tsx ' ], outdir : ' ./build ' , }); terminal bun build ./index.tsx --outdir ./build It's fast. The following numbers are from esbuild's three.js benchmark . Why bundle? # Bundlers solve several problems: Reducing HTTP requests. A single package in node_modules may consist of hundreds of files, and large applications may have dozens of such dependencies. Loading each of these files with a separate HTTP request becomes untenable, so bundlers convert your application source code into a smaller number of self-contained "bundles" that can be loaded with a single request.
Capabilities
Available capabilities
Tags
Tags
No tags filed yet.
Ways to use it
Ways to use it
No integrations filed yet.