bup

raw JSON →
5.0.1 verified Mon Apr 27 auth: no javascript maintenance

bup is a build tool that provides automated rollup bundling based on a project's Babel configuration. It reads the `main` field from `package.json` and compiles it into multiple formats (e.g., CJS, ESM, UMD) in a `dist/` directory. Current stable version is 5.0.1, released in 2019 with no active development. Similar to microbundle or rollup-starter-lib but with less configuration.

gotcha bup 5.x requires @rollup/plugin-babel as a peer dependency
fix npm install --save-dev @rollup/plugin-babel
gotcha bup's output is based on filename, using the 'name' field from package.json
fix Ensure package.json has a valid 'name' field
deprecated No updates since 2019, consider using rollup-starter-lib
fix Migrate to a maintained tool
npm install bup
yarn add bup
pnpm add bup

Demonstrates minimal setup for bup: create a simple library and build it.

mkdir my-lib && cd my-lib
npm init -y
npm install --save-dev bup
mkdir src
echo "export default () => 'hello'" > src/index.js
# ensure package.json has "main": "src/index.js"
npx bup
# output: dist/my-lib.cjs.js, dist/my-lib.esm.js