Skip to content

Commit

Permalink
fix: stop resolving fsevents in unsupported operating systems.
Browse files Browse the repository at this point in the history
Fixes issue #48.
  • Loading branch information
vinceau committed Jun 4, 2021
1 parent 87c2a44 commit 5bda5f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions webpack.renderer.additions.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ module.exports = function (context) {
})
);

// Fix issues with importing unsupported fsevents module in Windows and Linux
// For more info, see: https://github.com/vinceau/project-clippi/issues/48
if (process.platform !== "darwin") {
context.plugins.push(
new webpack.IgnorePlugin({
resourceRegExp: /^fsevents$/,
})
);
}

// Fix dependencies
context.externals = [...Object.keys(pkg.dependencies || {})];
return context;
Expand Down

0 comments on commit 5bda5f0

Please sign in to comment.