You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rollup-plugin-peer-deps-external

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-peer-deps-external

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

2.2.4
latest
Source
npmnpm
Version published
Maintainers
1
Created

What is rollup-plugin-peer-deps-external?

The rollup-plugin-peer-deps-external package is a Rollup plugin that automatically marks peer dependencies as external. This helps to avoid bundling peer dependencies into your package, ensuring that they are resolved from the consuming project's dependencies.

What are rollup-plugin-peer-deps-external's main functionalities?

Automatically Externalize Peer Dependencies

This feature automatically marks all peer dependencies listed in your package.json as external, preventing them from being bundled into your output file. This is useful for library authors who want to ensure that peer dependencies are resolved from the consuming project's dependencies.

const peerDepsExternal = require('rollup-plugin-peer-deps-external');

module.exports = {
  input: 'src/index.js',
  output: {
    file: 'dist/bundle.js',
    format: 'cjs'
  },
  plugins: [
    peerDepsExternal()
  ]
};

Other packages similar to rollup-plugin-peer-deps-external

Keywords

rollup

FAQs

Package last updated on 20 Oct 2020

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