🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

rollup-plugin-exclude-dependencies-from-bundle

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-exclude-dependencies-from-bundle

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

latest
Source
npmnpm
Version
1.1.24
Version published
Weekly downloads
9.1K
34.66%
Maintainers
1
Weekly downloads
 
Created
Source

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.
    

Keywords

rollup

FAQs

Package last updated on 31 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts