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
muslnode 18–223 runs
build_error
glibcnode 18–223 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');
};
Errors
Common errors & fixes
Error: Cannot find module 'fly-rollup'
Missing fly-rollup in dependencies or Node modules.
fixRun: 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.
fixEnsure 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.
fixUse .rollup({ rollup: {...}, bundle: {...} }) Audit
Dependencies
No dependency data recorded yet.