{"id":13774215,"url":"https://github.com/mjeanroy/rollup-plugin-bower-resolve","last_synced_at":"2025-06-28T19:36:10.473Z","repository":{"id":9030945,"uuid":"60558475","full_name":"mjeanroy/rollup-plugin-bower-resolve","owner":"mjeanroy","description":"Use the bower resolution algorithm with Rollup","archived":false,"fork":false,"pushed_at":"2025-06-20T12:41:28.000Z","size":1433,"stargazers_count":8,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T13:45:54.553Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjeanroy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-06T20:26:16.000Z","updated_at":"2025-06-20T12:41:25.000Z","dependencies_parsed_at":"2023-09-28T17:38:13.312Z","dependency_job_id":"1883aed9-ab47-4644-b3a9-5700d09490c6","html_url":"https://github.com/mjeanroy/rollup-plugin-bower-resolve","commit_stats":{"total_commits":987,"total_committers":7,"mean_commits":141.0,"dds":0.7284701114488348,"last_synced_commit":"d454553f8eef7bf7d3db8609676f2f4497615321"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/mjeanroy/rollup-plugin-bower-resolve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjeanroy%2Frollup-plugin-bower-resolve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjeanroy%2Frollup-plugin-bower-resolve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjeanroy%2Frollup-plugin-bower-resolve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjeanroy%2Frollup-plugin-bower-resolve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjeanroy","download_url":"https://codeload.github.com/mjeanroy/rollup-plugin-bower-resolve/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjeanroy%2Frollup-plugin-bower-resolve/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260957987,"owners_count":23088784,"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:24.725Z","updated_at":"2025-06-28T19:36:10.423Z","avatar_url":"https://github.com/mjeanroy.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Modules"],"readme":"# rollup-plugin-bower-resolve\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/mjeanroy/rollup-plugin-bower-resolve.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/mjeanroy/rollup-plugin-bower-resolve.svg?branch=master)](https://travis-ci.org/mjeanroy/rollup-plugin-bower-resolve)\n![CI](https://github.com/mjeanroy/rollup-plugin-bower-resolve/workflows/CI/badge.svg)\n[![Npm version](https://badge.fury.io/js/rollup-plugin-bower-resolve.svg)](https://badge.fury.io/js/rollup-plugin-bower-resolve)\n\nLocate modules using the bower resolution algorithm for using third party modules in your bower component directory.\n\n## Installation\n\n```bash\nnpm install --save-dev rollup-plugin-bower-resolve\n```\n\n## Usage\n\n```js\nimport { rollup } from 'rollup';\nimport bowerResolve from 'rollup-plugin-bower-resolve';\n\nrollup({\n  entry: 'main.js',\n  plugins: [\n    bowerResolve({\n      // The working directory to use with bower (i.e the directory where\n      // the `bower.json` is stored).\n      // Default is `process.cwd()`.\n      cwd: '/tmp',\n\n      // Use `bower` offline.\n      // Default is `true`.\n      offline: false,\n\n      // Use \"module\" field for ES6 module if possible, default is `true`.\n      // See: https://github.com/rollup/rollup/wiki/pkg.module\n      module: true,\n\n      // Use \"jsnext:main\" field for ES6 module if possible, default is `true`.\n      // This field should not be used, use `module` entry instead, but it is `true`\n      // by default because of legacy packages.\n      // See: https://github.com/rollup/rollup/wiki/jsnext:main\n      jsnext: true,\n\n      // if there's something your bundle requires that you DON'T\n      // want to include, add it to 'skip'\n      skip: [ 'some-big-dependency' ],  // Default: []\n\n      // Override path to main file (relative to the module directory).\n      override: {\n        lodash: 'dist/lodash.js'\n      }\n    })\n  ]\n}).then( bundle =\u003e bundle.write({ dest: 'bundle.js', format: 'iife' }) );\n```\n\nThis plugin may be used with `rollup-plugin-commonjs` to support non ES6 module:\n\n```js\nimport { rollup } from 'rollup';\nimport bowerResolve from 'rollup-plugin-bower-resolve';\nimport commonjs from 'rollup-plugin-commonjs';\n\nrollup({\n  entry: 'main.js',\n  plugins: [\n    bowerResolve(),\n    commonjs()\n  ]\n}).then(bundle =\u003e bundle.write({\n  dest: 'bundle.js',\n  moduleName: 'MyModule',\n  format: 'iife'\n})).catch(err =\u003e console.log(err.stack));\n```\n\n## Changelog\n\n- 3.1.0\n  - Add support for rollup ^4.0.0\n- 3.0.0\n  - Add support for rollup ^3.0.0\n  - Remove support for node \u003c 14\n- 2.0.1\n  - Add `engines` field in `package.json` file.\n- 2.0.0\n  - Add support for rollup 2.x.x\n  - Remove support for node \u003c 10.0.0\n- 1.0.1\n  - Add `engines` field in `package.json` file.\n- 1.0.0\n  - Remove support for rollup \u003c 1.0.0.\n  - Remove support for node \u003c 6.0.0\n- 0.6.0\n  - Dependency updates.\n- 0.5.0\n  - Fix importing main entry point when it is located in a sub directory.\n  - Dependency updates.\n- 0.4.0\n  - Fix `offline` mode (and add options to disable offline).\n  - Add `cwd` option.\n  - Fix transitive dependency resolution.\n- 0.3.0\n  - Add `module` option\n  - Add `jsnext` option\n- 0.2.0\n  - List dependencies once\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjeanroy%2Frollup-plugin-bower-resolve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjeanroy%2Frollup-plugin-bower-resolve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjeanroy%2Frollup-plugin-bower-resolve/lists"}