Registry / devops / rollup-plugin-buba

rollup-plugin-buba

JSON →
library1.0.1jsnpmunverified

A Rollup plugin for buba, a fast ES6-to-ES5 transpiler similar to Bublé. Version 1.0.1 is the latest release. It wraps buba to transform ES6+ modules during Rollup bundling. Simpler than Babel-based plugins but limited to experimental support. Not actively maintained.

npm install rollup-plugin-buba
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-BUBA
R
rollup-plugin-buba
devopsjavascriptv1.0.1
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 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

default
import buba from 'rollup-plugin-buba'
const buba = require('rollup-plugin-buba')
Package exports default only; CJS users should use dynamic import or use ESM.
buba
import buba from 'rollup-plugin-buba'
import { buba } from 'rollup-plugin-buba'
Named import is not supported; use default import.
rollupConfigExport
export default { plugins: [buba()] }
module.exports = { plugins: [buba()] }
Rollup config uses ESM export; CJS module.exports not directly supported.

Shows basic Rollup config using rollup-plugin-buba to transpile ES6 input, excluding node_modules.

// rollup.config.js import buba from 'rollup-plugin-buba'; export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'iife' }, plugins: [ buba({ exclude: 'node_modules/**' }) ] };
Debug
Known issues
deprecatedbuba is in maintenance mode and may not support latest JavaScript features
fix
Consider using @rollup/plugin-babel or @rollup/plugin-sucrase for active support.
affects: >=1.0.0
gotchaPlugin does not accept many options; only 'include', 'exclude', and buba options
fix
Check buba documentation for supported options; pass them directly to buba() config object.
affects: >=1.0.0
gotchaRollup version compatibility: may not work with Rollup 2+ due to plugin API changes
fix
If using Rollup 2+, upgrade to a maintained alternative like @rollup/plugin-babel.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-buba'
Package not installed or not in node_modules
fix
Run 'npm install rollup-plugin-buba --save-dev'
TypeError: buba is not a function
Incorrect import pattern: using named import instead of default
fix
Use 'import buba from "rollup-plugin-buba"' instead of '{ buba }'
Error: Invalid plugin object returned from function
Plugin returns undefined due to buba not installed
fix
Ensure buba is installed alongside rollup-plugin-buba: 'npm install buba'
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies
bubarequiredcore transpiler
rolluprequiredpeer dependency for Rollup integration
Agent activity
5 hits · last 30 days
node
4
Resources
rollup-plugin-buba — npm install rollup-plugin-buba · libregistry