webpack-disable-packages
v1.7.0
Published
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.
Downloads
6
Maintainers
Readme
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 emptywebpack.config.js
const disablePackages = require('webpack-disable-package');
{
...
plugins: [
disablePackages('fsevents', 'my-broken-dependency', ...),
...
],
}