Registry /
devops / rollup-plugin-dependency-flow
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 deps from 'rollup-plugin-dependency-flow'
✗ const deps = require('rollup-plugin-dependency-flow')
Default export. Use ESM import for modern bundlers.
default as named
✓ import deps from 'rollup-plugin-dependency-flow'
✗ import { deps } from 'rollup-plugin-dependency-flow'
Do not destructure – the default export is the function.
require
✓ const deps = require('rollup-plugin-dependency-flow')
✗ const deps = require('rollup-plugin-dependency-flow').default
CJS require works fine; no .default needed.
Generates a static HTML file visualizing Rollup module dependencies.
// rollup.config.js
import deps from 'rollup-plugin-dependency-flow';
export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'esm'
},
plugins: [
deps({
build: {
dir: './dependency-visualization',
name: 'dep-graph.html'
}
})
]
};
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-dependency-flow'
Package not installed or typo in package name.
fixRun npm install rollup-plugin-dependency-flow
TypeError: deps is not a function
Incorrect import – destructured named export instead of default.
fixUse import deps from 'rollup-plugin-dependency-flow' (without braces).
Audit
Dependencies
No dependency data recorded yet.