How can I exclude specific module getting part of build for MacOS only using electron-builder?

Viewed 19

I have electron application which is targated for Windows OS and MacOS.

I am using electron-builder for generating build.

There is one specific module which is getting used only in Windows OS. That module is listed in dependencies section of package.json.

How can I exclude that specific module in case of MacOS while generating build. Because in MacOS that module is not getting used anything. If I can exclude that module than I can save space in MacOS buils size.

electron-builder have file-patterns but that we can not set per target.

0 Answers
Related