{"id":21933,"library":"rollup-plugin-buba","title":"rollup-plugin-buba","description":"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.","status":"maintenance","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/davidchase/rollup-plugin-buba","tags":["javascript","babel","buba","buble","es6"],"install":[{"cmd":"npm install rollup-plugin-buba","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-buba","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-buba","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"core transpiler","package":"buba","optional":false},{"reason":"peer dependency for Rollup integration","package":"rollup","optional":false}],"imports":[{"note":"Package exports default only; CJS users should use dynamic import or use ESM.","wrong":"const buba = require('rollup-plugin-buba')","symbol":"default","correct":"import buba from 'rollup-plugin-buba'"},{"note":"Named import is not supported; use default import.","wrong":"import { buba } from 'rollup-plugin-buba'","symbol":"buba","correct":"import buba from 'rollup-plugin-buba'"},{"note":"Rollup config uses ESM export; CJS module.exports not directly supported.","wrong":"module.exports = { plugins: [buba()] }","symbol":"rollupConfigExport","correct":"export default { plugins: [buba()] }"}],"quickstart":{"code":"// rollup.config.js\nimport buba from 'rollup-plugin-buba';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    buba({\n      exclude: 'node_modules/**'\n    })\n  ]\n};","lang":"javascript","description":"Shows basic Rollup config using rollup-plugin-buba to transpile ES6 input, excluding node_modules."},"warnings":[{"fix":"Consider using @rollup/plugin-babel or @rollup/plugin-sucrase for active support.","message":"buba is in maintenance mode and may not support latest JavaScript features","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Check buba documentation for supported options; pass them directly to buba() config object.","message":"Plugin does not accept many options; only 'include', 'exclude', and buba options","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"If using Rollup 2+, upgrade to a maintained alternative like @rollup/plugin-babel.","message":"Rollup version compatibility: may not work with Rollup 2+ due to plugin API changes","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install rollup-plugin-buba --save-dev'","cause":"Package not installed or not in node_modules","error":"Error: Cannot find module 'rollup-plugin-buba'"},{"fix":"Use 'import buba from \"rollup-plugin-buba\"' instead of '{ buba }'","cause":"Incorrect import pattern: using named import instead of default","error":"TypeError: buba is not a function"},{"fix":"Ensure buba is installed alongside rollup-plugin-buba: 'npm install buba'","cause":"Plugin returns undefined due to buba not installed","error":"Error: Invalid plugin object returned from function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}