{"id":13774398,"url":"https://github.com/dot-build/rollup-plugin-includepaths","last_synced_at":"2025-04-07T06:09:46.051Z","repository":{"id":3885127,"uuid":"51219446","full_name":"dot-build/rollup-plugin-includepaths","owner":"dot-build","description":"Rollup plugin to allow relative include paths in project files","archived":false,"fork":false,"pushed_at":"2023-01-16T20:01:24.000Z","size":122,"stargazers_count":97,"open_issues_count":19,"forks_count":11,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-02T19:48:05.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dot-build.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-06T20:07:49.000Z","updated_at":"2024-11-16T14:58:45.000Z","dependencies_parsed_at":"2023-02-10T05:50:12.042Z","dependency_job_id":null,"html_url":"https://github.com/dot-build/rollup-plugin-includepaths","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-build%2Frollup-plugin-includepaths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-build%2Frollup-plugin-includepaths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-build%2Frollup-plugin-includepaths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-build%2Frollup-plugin-includepaths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dot-build","download_url":"https://codeload.github.com/dot-build/rollup-plugin-includepaths/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601448,"owners_count":20964864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:26.324Z","updated_at":"2025-04-07T06:09:46.025Z","avatar_url":"https://github.com/dot-build.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Modules"],"readme":"# rollup-plugin-includepaths\n\nLet you use relative paths in your import directives, like this:\n\n```js\n// from src/lib/one/foo.js\nimport { Foo } from 'one/foo';\n\n// from src/other/two/bar.js\nimport { Bar } from 'two/bar';\n\n```\n\n## Setup\n\nIn your rollup configuration file:\n\n```js\n\nimport includePaths from 'rollup-plugin-includepaths';\n\nlet includePathOptions = {\n    include: {},\n    paths: ['src/lib', 'src/other'],\n    external: [],\n    extensions: ['.js', '.json', '.html']\n};\n\nexport default {\n    entry: './app.js',\n    format: 'cjs',\n    dest: 'public/app.min.js',\n    plugins: [ includePaths(includePathOptions) ],\n};\n\n```\n\n## Options:\n\n### paths = `['']`\n\nAn array of source paths in your project where the plugin should look for files\n\nExample: `['src/lib', 'src/foo']`\n\nBy default, resolve files from working dir\n\n### include\n\nA map of module=\u003epath/to/file.js with custom module paths. Used to override the search with a static path (like Browserify does with the \"browser\" config).\n\nUse this option if you want to skip the file resolution and directly resolve a module name to a given path.\n\nExample:\n\n```js\ninclude: {\n    // Import example: import angular from 'angular';\n    'angular': 'bower_components/angular/angular.js'\n}\n```\n\n### external\n\nAn array of module names that should be excluded from the bundle (external modules).\n\nBy default, all the node built-in modules will be marked as external.\n\nTo include the built-ins, you can use the [builtins](https://github.com/calvinmetcalf/rollup-plugin-node-builtins) plugin and set this config to an empty array.\n\nExample:\n\n```js\n// will not include the module 'angular' in the final bundle\nexternal: ['angular']\n```\n\n\n### extensions\n\nAn array of file extensions to look for in the project.\n\nDefault: `['.js', '.json']`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdot-build%2Frollup-plugin-includepaths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdot-build%2Frollup-plugin-includepaths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdot-build%2Frollup-plugin-includepaths/lists"}