rollup-plugin-exclude-dependencies-from-bundle
v1.1.23 rollup plugin rollup-plugin dependencies exclude bundle
Rollup Plugin Exclude Dependencies From Bundle
Automatically externalize dependencies
and peerDependencies
in a bundle.
Installation
npm install --save-dev rollup-plugin-exclude-dependencies-from-bundle
Usage
// 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
: trueSet to true for excluding peer dependencies from the bundled files.
dependencies
: trueSet to true for excluding dependencies from the bundled files.
npm i rollup-plugin-exclude-dependencies-from-bundle
Metadata
- MIT
- Whatever
- Bassel Al Araaj
- released 11/1/2022