@ubermanu/bobun
v0.2.0
Published
A CLI that bundles your Bun project
Downloads
1
Readme
@ubermanu/bobun
An all-in-one bundler using Bun.build
.
Install
bun add @ubermanu/bobun -d
Usage
bunx bobun [options]
Options
--minify
Minify the output files--sourcemap
Generate sourcemaps
Quick Start
Bobun reads your package.json
file and determines what to build without you providing any configuration.
For example, if you have a package.json
file like this:
{
"name": "hello-world",
"version": "1.0.0",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"bin": {
"hello": "dist/bin.js"
}
}
Then you can build your package with:
bunx bobun
Which will generate these files:
src/index.ts → dist/index.mjs
src/index.ts → dist/index.d.ts
src/bin.ts → dist/bin.js