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.
npm install rollup-plugin-includepathsVerified import paths — ran on the pinned version, not inferred.
Configures Rollup to resolve imports relative to 'src/lib' and 'src/other', allowing short paths like 'one/foo'.
Migrate to '@rollup/plugin-alias' with similar configuration.
Always specify an explicit paths array in options.
Use @rollup/plugin-node-resolve alongside this plugin for node_modules resolution.
Upgrade Node.js to >=6 or stick with 0.1.x.
Add the module path to the 'paths' array or use 'include' option with explicit file path.
Use default import: 'import includePaths from 'rollup-plugin-includepaths''
Run 'npm install rollup-plugin-includepaths --save-dev'
No dependency data recorded yet.