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 = ; ... plugins: ...