webpack-disable-packages

1.7.0 • Public • Published

Disable packages

Disable a package throughout your build process by pointing it to an empty module. This was designed for use with the fsevents package, which breaks builds for Webpack and Rollup alike.

Prerequisites

Mandatory empty peer-dep is required:

yarn add -D empty

webpack.config.js

const disablePackages = require('webpack-disable-package');
{
  ...
  plugins: [
    disablePackages('fsevents', 'my-broken-dependency', ...),
    ...
  ],
}

Package Sidebar

Install

npm i webpack-disable-packages

Weekly Downloads

26

Version

1.7.0

License

MIT

Unpacked Size

2.11 kB

Total Files

4

Last publish

Collaborators

  • ctjlewis