https://github.com/basselalaraaj/rollup-plugin-exclude-dependencies-from-bundle
Automatically externalize dependencies and peerDependencies in a bundle.
https://github.com/basselalaraaj/rollup-plugin-exclude-dependencies-from-bundle
Last synced: 20 days ago
JSON representation
Automatically externalize dependencies and peerDependencies in a bundle.
- Host: GitHub
- URL: https://github.com/basselalaraaj/rollup-plugin-exclude-dependencies-from-bundle
- Owner: basselalaraaj
- License: mit
- Created: 2019-05-23T16:27:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-31T23:37:49.000Z (9 months ago)
- Last Synced: 2025-06-30T06:42:17.463Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 900 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/rollup-plugin-exclude-dependencies-from-bundle) [](https://github.com/semantic-release/semantic-release)
# Rollup Plugin Exclude Dependencies From Bundle
Automatically externalize `dependencies` and `peerDependencies` in a bundle.
## Installation
```bash
npm install --save-dev rollup-plugin-exclude-dependencies-from-bundle
```
## Usage
```javascript
// Add to plugins in rollup.config.js
import excludeDependenciesFromBundle from "rollup-plugin-exclude-dependencies-from-bundle";
export default {
plugins: [excludeDependenciesFromBundle(/*{ plugin options }*/)]
};
```
### Plugin options
- `peerDependencies`: true
Set to true for excluding peer dependencies from the bundled files.
- `dependencies`: true
Set to true for excluding dependencies from the bundled files.