Registry / devops / fly-rollup

fly-rollup

JSON →
library2.1.0jsnpmunverified

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.

npm install fly-rollup
INSTALL
IMPORT
SIG · FLY-ROLLUP
F
fly-rollup
devopsjavascriptv2.1.0
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.

fly-rollup
import 'fly-rollup' // as a plugin, not usually imported
import flyRollup from 'fly-rollup'
fly-rollup is a Fly plugin; you do not import it directly. It is loaded via Fly's plugin system by being a dependency.
fly.plugin
// flyfile.mjs import 'fly-rollup'; // works if using esm in Node
const fly = require('fly-rollup')
Plugin is loaded by Fly when it scans node_modules; no explicit require() needed in older CommonJS flyfiles.
export async function roll (fly) { ... }
export async function roll (fly) { await fly.source('src/entry.js').rollup({...}).target('dist'); }
export function* roll(fly) { ... } // also valid but older generator style
Both async/await and generator styles are supported; async/await preferred for modern Node (>= 7.6).

Shows basic usage of fly-rollup with async/await and generator syntax, including rollup options, bundle format, and sourcemap.

// Install: npm i --save-dev fly fly-rollup // In flyfile.mjs or flyfile.js: // async/await version export async function roll(fly) { await fly .source('src/entry.js') .rollup({ rollup: { plugins: [ require('rollup-plugin-babel')() ] }, bundle: { format: 'es' } }) .target('dist'); } // Generator version exports.roll = function* (fly) { yield fly .source('src/entry.js') .rollup({ rollup: { plugins: [] }, bundle: { format: 'iife', sourceMap: 'inline' } }) .target('dist'); };
Debug
Known issues
gotchaPlugin is not a Node module but a Fly extension; do not require() it.
fix
Install as dependency and let Fly load it automatically.
affects: >=2.0
deprecatedGenerator function flavor is legacy; async/await is preferred.
fix
Use async/await syntax for better error handling and readability.
affects: >=2.0
gotchaRequires Fly task runner installed separately; not standalone.
fix
Install fly globally or as a dev dependency: npm i -D fly
affects: >=2.0
breakingOld versions incompatible with Rollup 1.x+ due to API changes.
fix
Upgrade to fly-rollup 2.x and align with Rollup API.
affects: <2.0
Errors
Common errors & fixes
Error: Cannot find module 'fly-rollup'
Missing fly-rollup in dependencies or Node modules.
fix
Run: npm install --save-dev fly-rollup
TypeError: fly.source(...).rollup is not a function
fly-rollup not loaded as a plugin; Fly cannot find it.
fix
Ensure fly-rollup is installed and Fly is run from the project root.
Error: rollup options must be an object
Wrong call signature: .rollup() called without arguments or with non-object.
fix
Use .rollup({ rollup: {...}, bundle: {...} })
Upgrade
Version history
2.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fly-rollup — npm install fly-rollup · libregistry