Prevent issues with `fsevents` and other breaking, platform-specific `optionalDependencies` in `package.json` by including this plugin first in the plugins stack.
npm install webpack-ignore-optionalfsevents and other breaking, platform-specificoptionalDependencies in package.json by including this plugin first in theOnly points module sources to the empty module if it is found inpackage.json > optionalDependencies.
webpack.config.js
``javascript``
const ignoreOptional = require('webpack-ignore-optional');
{
...
plugins: [
ignoreOptional(),
...
],
}