@ubermanu/bobun
v0.2.0
Published
A CLI that bundles your Bun project
Downloads
12
Readme
@ubermanu/bobun
An all-in-one bundler using Bun.build.
Install
bun add @ubermanu/bobun -dUsage
bunx bobun [options]Options
--minifyMinify the output files--sourcemapGenerate 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 bobunWhich will generate these files:
src/index.ts → dist/index.mjs
src/index.ts → dist/index.d.ts
src/bin.ts → dist/bin.js