@brogine/rollup-plugin-exclude-dependencies-from-bundle
TypeScript icon, indicating that this package has built-in type declarations

1.1.24 • Public • Published

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.
    
  • keep: string[]

    	Set this array with values you want to exclude from rollup external.
    

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i @brogine/rollup-plugin-exclude-dependencies-from-bundle

    Weekly Downloads

    3

    Version

    1.1.24

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • brogine