1.1.0 • Published 4 years ago

webpack-ignore-optional-dependencies v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Ignore optional dependencies

Prevent issues with fsevents and other breaking, platform-specific optionalDependencies in package.json by including this plugin first in the plugins stack.

Only points module sources to the empty module if it is found in package.json > optionalDependencies.

webpack.config.js

const ignoreOptional = require('webpack-ignore-optional');
{
  ...
  plugins: [
    ignoreOptional(),
    ...
  ],
}
1.1.0

4 years ago