{"library":"rollup-plugin-exclude-dependencies-from-bundle","title":"rollup-plugin-exclude-dependencies-from-bundle","description":"A Rollup plugin that automatically externalizes a library's dependencies and peerDependencies from the bundle output. Version 1.1.24 is stable, with frequent releases following semantic versioning. It eliminates the need to manually maintain the `external` config for library projects, supporting both ESM and CJS output. Compared to alternatives like `rollup-plugin-auto-external`, this plugin offers simpler configuration with boolean flags for `dependencies` and `peerDependencies`. Ships TypeScript declarations and supports Rollup v4+.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-exclude-dependencies-from-bundle"],"cli":null},"imports":["import excludeDependenciesFromBundle from 'rollup-plugin-exclude-dependencies-from-bundle'","import type { ExcludeDependenciesFromBundleOptions } from 'rollup-plugin-exclude-dependencies-from-bundle'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.mjs\nimport excludeDependenciesFromBundle from 'rollup-plugin-exclude-dependencies-from-bundle';\n\nexport default {\n  input: 'src/index.ts',\n  output: { file: 'dist/index.js', format: 'es' },\n  plugins: [\n    excludeDependenciesFromBundle({\n      peerDependencies: true,\n      dependencies: true\n    })\n  ]\n};\n","lang":"typescript","description":"Automatically externalize 'dependencies' and 'peerDependencies' from the Rollup bundle, avoiding bundling of external packages.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}