NoBump

raw JSON →
0.7.1 verified Sat Apr 25 auth: no javascript

NoBump is a zero-configuration bundler built on top of Rollup, version 0.7.1. It aims to simplify the bundling process by providing sensible defaults while allowing customization through a config file (bump.config.js/.ts) or Node API. Unlike other zero-config bundlers, NoBump is minimalist and stays close to Rollup's internals. It ships TypeScript types and supports both ESM and CJS. Release cadence is irregular; project appears in active development.

error Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
cause Using CommonJS require() with an ESM-only package.
fix
Switch to import syntax or set "type": "module" in package.json.
error TypeError: define is not a function
cause Importing define as a default import instead of named import (e.g., import define from 'no-bump').
fix
Use named import: import { define } from 'no-bump'.
breaking ESM-only package; require() will fail
fix Use import syntax or run in an ESM context (e.g., "type": "module" in package.json).
gotcha Node API does not read config file
fix When using build() or watch() programmatically, pass options directly; they ignore bump.config.*.
gotcha Vite plugins may not be compatible
fix Only use Rollup-compatible plugins; Vite-specific plugins (e.g., vite-plugin-*) may fail.
deprecated CLI command is 'bump', not 'no-bump'
fix Use 'bump' script in package.json; running 'npx no-bump' will not work (use 'npx bump' instead).
npm install no-bump
yarn add no-bump
pnpm add no-bump

Basic setup: install, create a config file with define(), and build via CLI.

// Install: npm install no-bump -D

// bump.config.ts
import { define } from 'no-bump';

export default define({
  input: 'src/index.ts',
  output: {
    dir: 'dist',
    format: 'esm'
  }
});

// In package.json
{
  "scripts": {
    "build": "bump"
  }
}

// Then run: npm run build