Registry / devops / rollup-plugin-folder-input

rollup-plugin-folder-input

JSON →
library1.0.1jsnpmunverified

Allows Rollup to accept glob patterns in the `input` option instead of explicit file lists. Version 1.0.1 is stable with no releases for several years. Maintained minimally. Differentiates from @rollup/plugin-multi-entry by preserving individual output files rather than merging inputs into a single bundle. Requires separate Rollup installation.

npm install rollup-plugin-folder-input
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-FOLD
R
rollup-plugin-folder-input
devopsjavascriptv1.0.1
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.

folderInput
import { folderInput } from 'rollup-plugin-folder-input'
import folderInput from 'rollup-plugin-folder-input'
Only named export available; default export does not exist.

Shows how to configure Rollup with folder-input plugin to bundle all JS files in src directory as separate outputs.

// rollup.config.js import { folderInput } from 'rollup-plugin-folder-input'; export default { input: './src/**/*.js', output: { dir: './dist', format: 'esm', }, plugins: [folderInput()], };
Debug
Known issues
gotchaPlugin must be first in the plugins array; otherwise glob input is not resolved before other plugins run.
fix
Place `folderInput()` as the first element in the plugins array.
affects: >=1.0
gotchaInput glob patterns are relative to the current working directory, not the Rollup config file location.
fix
Use absolute paths or ensure cwd matches expected root.
affects: >=1.0
gotchaDoes not support dynamic imports (`import()`) or code-splitting; each matched file is treated as a separate entry point.
fix
Use `@rollup/plugin-multi-entry` if you need merging inputs into a single bundle.
affects: >=1.0
Errors
Common errors & fixes
Error: Could not resolve entry module
Glob pattern did not match any files or relative path is wrong.
fix
Verify file existence and adjust glob pattern or use absolute path.
Error: The plugin "folderInput" must be placed before other plugins
Plugin order violation: folderInput is not first in plugins array.
fix
Move `folderInput()` to the beginning of the plugins array.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies
rolluprequiredpeer dependency required as Rollup plugin
fast-globrequiredused internally for glob resolution
Agent activity
8 hits · last 30 days
node
6
Resources
rollup-plugin-folder-input — npm install rollup-plugin-folder-input · libregistry