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.
default
✓ import rollupMiddleware from 'f2e-middle-rollup'
✗ const rollupMiddleware = require('f2e-middle-rollup')
ESM import is preferred if environment supports it; CJS require may work but not guaranteed.
rollupMiddleware
✓ import rollupMiddleware from 'f2e-middle-rollup'
✗ import { rollupMiddleware } from 'f2e-middle-rollup'
This is a default export, not a named export.
Demonstrates basic usage of f2e-middle-rollup middleware in f2e-server configuration.
// f2e-server config example
const rollupMiddleware = require('f2e-middle-rollup');
module.exports = {
middlewares: [
rollupMiddleware({
entry: './src/index.js',
dest: './dist/bundle.js',
// rollup options
plugins: []
})
]
};
Errors
Common errors & fixes
Error: Cannot find module 'f2e-middle-rollup'
Package not installed or missing dependency.
fixnpm install f2e-middle-rollup --save
Audit
Dependencies
f2e-serverrequiredRequired as the host server for this middleware