{"library":"rollup-plugin-includepaths","title":"rollup-plugin-includepaths","description":"A Rollup plugin that allows importing modules using relative paths from configured base directories. Version 0.2.4 is the latest stable release (August 2020), with no further updates expected. It helps avoid deep relative imports by defining alias paths, similar to Webpack's resolve.alias. Unlike @rollup/plugin-alias, this plugin supports multiple path prefixes and automatic file extension resolution. Lightweight with no runtime dependencies, but unmaintained since 2020.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-includepaths"],"cli":null},"imports":["import includePaths from 'rollup-plugin-includepaths';","import includePaths from 'rollup-plugin-includepaths';\nconst options = { paths: ['src/lib'] };"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport includePaths from 'rollup-plugin-includepaths';\n\nexport default {\n  input: 'src/main.js',\n  output: { file: 'dist/bundle.js', format: 'cjs' },\n  plugins: [\n    includePaths({\n      paths: ['src/lib', 'src/other'],\n      external: [],\n      extensions: ['.js', '.json', '.html']\n    })\n  ]\n};\n\n// Now in any file inside src/lib or src/other, use:\n// import { Foo } from 'one/foo';  // resolves to src/lib/one/foo.js or src/other/one/foo.js","lang":"javascript","description":"Configures Rollup to resolve imports relative to 'src/lib' and 'src/other', allowing short paths like 'one/foo'.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}