Registry / devops / mono-bundler

mono-bundler

JSON →
library1.43.92jsnpmunverified

Monorepo bundler based on rollup.js and vercel/ncc. Current stable version 1.43.92 supports configurable workspace packages, loader file generation, hash file names, and legacy browser support via Babel polyfills. It wraps rollup and ncc to provide a unified configuration for monorepos with glob-based package discovery. Maintained by hoevelmanns. Release cadence is irregular; latest version from 2024. Differentiator: bundler integration for monorepos that avoids manual per-package rollup configs, but remains experimental and may lack community adoption compared to tools like Nx or Turborepo.

npm install mono-bundler
INSTALL
IMPORT
SIG · MONO-BUNDLER
M
mono-bundler
devopsjavascriptv1.43.92
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import monoBundler from 'mono-bundler'
const monoBundler = require('mono-bundler')
ESM-only; will error with require() due to missing default export in Node <14 or CJS context
defineConfig
import { defineConfig } from 'mono-bundler'
Helper to define configuration with TypeScript type inference
BundleConfig
import type { BundleConfig } from 'mono-bundler'
import { BundleConfig } from 'mono-bundler'
Type-only import; using value import will fail at runtime because BundleConfig is not a value

Shows minimal mono.config.js with package globs, loaders, and rollup output options; run with `mono -c`

// mono.config.js export default { packages: ['packages/*'], createLoaders: true, hashFileNames: true, legacyBrowserSupport: false, plugins: [], // rollup input input: 'src/index.js', output: { dir: 'dist', format: 'esm' } }; // Run: mono -c
mono-bundler --version
Debug
Known issues
breakingThe package is experimental; breaking changes may occur without major version bump.
fix
Lock to patch version and review changelog before upgrading.
affects: >=1.0.0
deprecatedlegacyBrowserSupport option will be removed in v2.0.0; use babel config directly.
fix
Remove legacyBrowserSupport and add @rollup/plugin-babel manually.
affects: >=1.0.0 <2.0.0
gotchaRequires Node >=10, but some features need Node >=14 due to ESM usage.
fix
Use Node >=14 when using ESM imports or modern rollup plugins.
affects: >=1.0.0
gotchahashFileNames generates long hashes; clear cache after each build to avoid stale files.
fix
Run `rm -rf dist` before each build or use rollup's 'clean' output option.
affects: >=1.0.0
gotchaWhen using pnpm workspaces, glob patterns may not find packages correctly.
fix
Use absolute paths or relative from root; consider using 'packages: ['.']' as fallback.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'mono-bundler'
Package not installed or ESM resolution issue.
fix
Run `npm install mono-bundler` and ensure package.json has 'type': 'module'.
TypeError: monoBundler is not a function
Imported via require() but package is ESM-only.
fix
Change to `import monoBundler from 'mono-bundler'` and use ESM context.
Error: The 'legacyBrowserSupport' option is deprecated. Please configure Babel manually.
Using deprecated legacyBrowserSupport option.
fix
Remove legacyBrowserSupport from config and add @rollup/plugin-babel.
Upgrade
Version history
1.43.92latest on npm
Audit
Dependencies
rolluprequiredCore bundler engine; mono-bundler wraps rollup options
@vercel/nccrequiredProvides Node.js single-file compilation for packages
Agent activity
2 hits · last 30 days
node
2
Resources
mono-bundler — npm install mono-bundler · libregistry