{"library":"rollup-plugin-bower-resolve","title":"rollup-plugin-bower-resolve","description":"A Rollup plugin that resolves module imports using the Bower resolution algorithm, allowing Rollup to bundle Bower components. Version 3.1.0 is the latest stable release, supporting Rollup v1 through v4 and Node >=14. Unlike npm-centric plugins, this plugin is specifically designed for projects that still rely on Bower for dependency management. It offers options for offline mode, custom working directories, and overrides for main entry points. The plugin is in maintenance mode as the Bower ecosystem has largely been superseded by npm/Yarn.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-bower-resolve"],"cli":null},"imports":["import bowerResolve from 'rollup-plugin-bower-resolve'","const bowerResolve = require('rollup-plugin-bower-resolve').default","import type { Plugin } from 'rollup';\nimport bowerResolve from 'rollup-plugin-bower-resolve';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport bowerResolve from 'rollup-plugin-bower-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\nconst bundle = await rollup({\n  input: 'src/index.js',\n  plugins: [\n    bowerResolve({\n      cwd: process.cwd(),\n      offline: true,\n      module: true,\n      jsnext: true,\n      skip: ['some-big-dependency']\n    }),\n    commonjs()\n  ]\n});\n\nawait bundle.write({\n  file: 'dist/bundle.js',\n  format: 'iife',\n  name: 'MyBundle'\n});\n\nconsole.log('Bundle created successfully.');","lang":"javascript","description":"Shows a complete Rollup build using the plugin with Bower resolution and CommonJS support.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}