{"id":21021,"library":"bubbleup-plugin-build-rollup","title":"bubbleup-plugin-build-rollup","description":"Rollup build plugin for bubbleup, providing zero-configuration build command for bundling JavaScript with Rollup. Version 0.0.6. Offers a simple CLI command `bubbleup build` with minimal setup, and exposes a plugin API for customizing Rollup options and write options. Designed as a lightweight integration between bubbleup and Rollup, focusing on convention over configuration.","status":"active","version":"0.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/TylorS/bubbleup-plugin-build-rollup","tags":["javascript","bubbleup-plugin","bubbleup","rollup","build"],"install":[{"cmd":"npm install bubbleup-plugin-build-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add bubbleup-plugin-build-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add bubbleup-plugin-build-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core build orchestrator that this plugin extends","package":"bubbleup","optional":false},{"reason":"JavaScript bundler used to bundle modules","package":"rollup","optional":false}],"imports":[{"note":"This is the plugin API, not an import. It uses CommonJS syntax for plugin definition.","wrong":"export default { exec: ... }","symbol":"plugin (default)","correct":"module.exports = { exec: function(rollupOptions, writeOptions) { ... } }"},{"note":"This is a build plugin for bubbleup, not a direct import library. Use via CLI or bubbleup config.","wrong":"import bubbleupBuild from 'bubbleup-plugin-build-rollup'","symbol":"bubbleup-plugin-build-rollup","correct":"Install with npm, then run `bubbleup build`"},{"note":"Custom plugins are defined as CommonJS modules and passed to bubbleup config.","wrong":"","symbol":"custom plugin","correct":"require('./my-rollup-plugin.js') or define inline"}],"quickstart":{"code":"// Install dependencies\nnpm install bubbleup bubbleup-plugin-build-rollup\n\n// Build with default options\nbubbleup build src/index.js\n\n// Build with custom destination\nbubbleup build src/index.js -d dist/bundle.js\n\n// Custom plugin example (save as my-plugin.js)\nmodule.exports = {\n  exec: function (rollupOptions, writeOptions) {\n    // Add external dependencies\n    rollupOptions.external = ['lodash'];\n    // Change output format to iife\n    writeOptions.format = 'iife';\n  }\n}\n\n// Use custom plugin via bubbleup config\n// In bubbleup.config.js:\nmodule.exports = {\n  plugins: [require('./my-plugin.js')]\n}","lang":"javascript","description":"Shows installation, basic build command, and usage of custom plugins to modify rollup options."},"warnings":[{"fix":"Use this plugin only within a bubbleup project. Run `bubbleup build` instead of calling Rollup directly.","message":"This plugin is designed for bubbleup, not standalone Rollup usage. Attempting to import or use it directly as a Rollup plugin will fail.","severity":"gotcha","affected_versions":"*"},{"fix":"Create a bubbleup plugin that modifies rollupOptions or writeOptions accordingly.","message":"Zero-configuration means bubbleup sets sensible defaults. If you need advanced Rollup features (like code splitting, dynamic imports), you must provide custom plugins.","severity":"gotcha","affected_versions":"*"},{"fix":"Use `module.exports = { exec: function(rollupOptions, writeOptions) { ... } }` for custom plugins.","message":"The plugin API uses CommonJS (module.exports), not ES modules. Attempting to use `export default` will not work.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Ensure bubbleup is installed: `npm install -g bubbleup` or use npx: `npx bubbleup build src/index.js`","cause":"bubbleup is not installed globally or not in PATH","error":"bubbleup: command not found"},{"fix":"Run `npm install bubbleup-plugin-build-rollup --save-dev`","cause":"The plugin is not installed in the project","error":"Error: Cannot find module 'bubbleup-plugin-build-rollup'"},{"fix":"Ensure plugin exports an object with `exec` property: `module.exports = { exec: function(rollupOptions, writeOptions) { ... } }`","cause":"Custom plugin defined incorrectly (not an object with exec method)","error":"Error: plugin is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}