{"id":22031,"library":"rollup-plugin-folder-input","title":"rollup-plugin-folder-input","description":"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.","status":"maintenance","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/dgkimpton/rollup-plugin-folder-input","tags":["javascript","rollup","input","glob","folder","plugin","rollup-plugin"],"install":[{"cmd":"npm install rollup-plugin-folder-input","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-folder-input","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-folder-input","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required as Rollup plugin","package":"rollup","optional":false},{"reason":"used internally for glob resolution","package":"fast-glob","optional":false}],"imports":[{"note":"Only named export available; default export does not exist.","wrong":"import folderInput from 'rollup-plugin-folder-input'","symbol":"folderInput","correct":"import { folderInput } from 'rollup-plugin-folder-input'"}],"quickstart":{"code":"// rollup.config.js\nimport { folderInput } from 'rollup-plugin-folder-input';\n\nexport default {\n  input: './src/**/*.js',\n  output: {\n    dir: './dist',\n    format: 'esm',\n  },\n  plugins: [folderInput()],\n};","lang":"javascript","description":"Shows how to configure Rollup with folder-input plugin to bundle all JS files in src directory as separate outputs."},"warnings":[{"fix":"Place `folderInput()` as the first element in the plugins array.","message":"Plugin must be first in the plugins array; otherwise glob input is not resolved before other plugins run.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Use absolute paths or ensure cwd matches expected root.","message":"Input glob patterns are relative to the current working directory, not the Rollup config file location.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Use `@rollup/plugin-multi-entry` if you need merging inputs into a single bundle.","message":"Does not support dynamic imports (`import()`) or code-splitting; each matched file is treated as a separate entry point.","severity":"gotcha","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Verify file existence and adjust glob pattern or use absolute path.","cause":"Glob pattern did not match any files or relative path is wrong.","error":"Error: Could not resolve entry module"},{"fix":"Move `folderInput()` to the beginning of the plugins array.","cause":"Plugin order violation: folderInput is not first in plugins array.","error":"Error: The plugin \"folderInput\" must be placed before other plugins"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}