Roller Bundler

raw JSON →
0.0.2 verified Fri May 01 auth: no javascript

Roller is a minimal library bundler built on top of Rollup, designed for quick setup and zero configuration. It wraps Rollup's capabilities into a simple CLI command, targeting library authors who want to bundle TypeScript/JavaScript without complex configuration. Version 0.0.2 is in early development, with no stable release cadence. Unlike Rollup directly, Roller abstracts away configuration but offers limited customization. Key differentiator: simplicity over flexibility.

error Cannot find module 'roller-bundler'
cause Package not installed or ESM-only and used with require()
fix
Install as dev dependency and use import syntax or set type: module in package.json.
error TypeError: roller is not a function
cause Calling the default import as a constructor or without parentheses
fix
Use roller() with parentheses after import.
error Error: No input files found. Expected src/index.js or src/index.ts
cause Default entry point missing. Roller expects a source file in src/.
fix
Create either src/index.js or src/index.ts as your entry point.
gotcha Roller does not support custom Rollup plugins or configuration. For advanced use cases, use Rollup directly.
fix Use Rollup with rollup.config.js if you need plugins.
breaking Version 0.0.2 changed CLI output directory from build/ to dist/. Existing scripts may break.
fix Update paths or use --output option if available (check docs).
deprecated The roll export is deprecated in favor of the default export. Will be removed in next major.
fix Use import roller from 'roller-bundler' instead.
npm install roller-bundler
yarn add roller-bundler
pnpm add roller-bundler

Install roller-bundler as dev dependency and run with npx to bundle with zero config. Expects source files in src/, outputs to dist/.

npm install roller-bundler -D
npx roller