{"library":"rollup-plugin-import-folder","title":"rollup-plugin-import-folder","description":"A Rollup plugin that resolves imports using folder names instead of explicit file paths. It transforms import statements like `import './hello-world'` into `import './hello-world/hello-world.js'`, making modular component-based projects easier to manage by eliminating the need for index.js files. Version 1.0.6 is stable and maintained, supporting Rollup versions 1.x through 4.x. It is published on npm and aimed at developers using bundlers for JavaScript or TypeScript projects. The plugin ships with TypeScript definitions and is configured with include/exclude options. It is a lightweight utility solution for teams organizing components in folders.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-import-folder"],"cli":null},"imports":["import folder from 'rollup-plugin-import-folder'","import folder from 'rollup-plugin-import-folder'","import type { Plugin } from 'rollup'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport folder from 'rollup-plugin-import-folder';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm'\n  },\n  plugins: [folder()]\n};\n\n// src/index.js\nimport './hello-world'; // resolves to ./hello-world/hello-world.js\n\n// src/hello-world/hello-world.js\nexport const message = 'Hello World!';","lang":"javascript","description":"Basic usage showing how to import and configure the plugin in a Rollup config, along with an example of how folder imports are resolved.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}