Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rollup-plugin-exclude-dependencies-from-bundle

basselalaraaj41.8kMIT1.1.24TypeScript support: included

Rollup plugin to automatically add a library's peerDependencies and Dependencies to its bundle's external config.

rollup, plugin, rollup-plugin, dependencies, exclude, bundle

readme

npm semantic-release

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: true

        Set to true for excluding peer dependencies from the bundled files.
  • dependencies: true

        Set to true for excluding dependencies from the bundled files.