{"id":21357,"library":"fly-rollup","title":"fly-rollup","description":"Rollup plugin for the Fly build system (fly-rollup v2.1.0). Allows using Rollup as a transformation step within Fly pipelines with async/await or generator syntax. Supports passing Rollup and bundle options, sourcemap configuration. Requires Node >= 4.6 and the Fly task runner. Last updated ca. 2017, no recent maintenance. Alternatives: use Rollup directly or other build tools.","status":"maintenance","version":"2.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/frantic1048/fly-rollup","tags":["javascript","fly","fly-plugin","rollup"],"install":[{"cmd":"npm install fly-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add fly-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add fly-rollup","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"fly-rollup is a Fly plugin; you do not import it directly. It is loaded via Fly's plugin system by being a dependency.","wrong":"import flyRollup from 'fly-rollup'","symbol":"fly-rollup","correct":"import 'fly-rollup' // as a plugin, not usually imported"},{"note":"Plugin is loaded by Fly when it scans node_modules; no explicit require() needed in older CommonJS flyfiles.","wrong":"const fly = require('fly-rollup')","symbol":"fly.plugin","correct":"// flyfile.mjs\nimport 'fly-rollup'; // works if using esm in Node"},{"note":"Both async/await and generator styles are supported; async/await preferred for modern Node (>= 7.6).","wrong":"export function* roll(fly) { ... } // also valid but older generator style","symbol":"export async function roll (fly) { ... }","correct":"export async function roll (fly) {\n  await fly.source('src/entry.js').rollup({...}).target('dist');\n}"}],"quickstart":{"code":"// Install: npm i --save-dev fly fly-rollup\n// In flyfile.mjs or flyfile.js:\n\n// async/await version\nexport async function roll(fly) {\n  await fly\n    .source('src/entry.js')\n    .rollup({\n      rollup: {\n        plugins: [\n          require('rollup-plugin-babel')()\n        ]\n      },\n      bundle: {\n        format: 'es'\n      }\n    })\n    .target('dist');\n}\n\n// Generator version\nexports.roll = function* (fly) {\n  yield fly\n    .source('src/entry.js')\n    .rollup({\n      rollup: {\n        plugins: []\n      },\n      bundle: {\n        format: 'iife',\n        sourceMap: 'inline'\n      }\n    })\n    .target('dist');\n};","lang":"javascript","description":"Shows basic usage of fly-rollup with async/await and generator syntax, including rollup options, bundle format, and sourcemap."},"warnings":[{"fix":"Install as dependency and let Fly load it automatically.","message":"Plugin is not a Node module but a Fly extension; do not require() it.","severity":"gotcha","affected_versions":">=2.0"},{"fix":"Use async/await syntax for better error handling and readability.","message":"Generator function flavor is legacy; async/await is preferred.","severity":"deprecated","affected_versions":">=2.0"},{"fix":"Install fly globally or as a dev dependency: npm i -D fly","message":"Requires Fly task runner installed separately; not standalone.","severity":"gotcha","affected_versions":">=2.0"},{"fix":"Upgrade to fly-rollup 2.x and align with Rollup API.","message":"Old versions incompatible with Rollup 1.x+ due to API changes.","severity":"breaking","affected_versions":"<2.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 --save-dev fly-rollup","cause":"Missing fly-rollup in dependencies or Node modules.","error":"Error: Cannot find module 'fly-rollup'"},{"fix":"Ensure fly-rollup is installed and Fly is run from the project root.","cause":"fly-rollup not loaded as a plugin; Fly cannot find it.","error":"TypeError: fly.source(...).rollup is not a function"},{"fix":"Use .rollup({ rollup: {...}, bundle: {...} })","cause":"Wrong call signature: .rollup() called without arguments or with non-object.","error":"Error: rollup options must be an object"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}