Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T12:55:31.000Z (over 1 year ago)
- Last Synced: 2024-08-09T20:44:43.052Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 900 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/rollup-plugin-exclude-dependencies-from-bundle.svg)](https://www.npmjs.com/package/rollup-plugin-exclude-dependencies-from-bundle) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](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.