@electron-forge/plugin-auto-unpack-natives

v7.5.0
Auto Unpack Natives plugin for Electron Forge, automatically adds native node modules to asar.unpacked

plugin-auto-unpack-natives

This plugin will automatically add all native Node modules in your node_modules folder to the asar.unpack config option in your packagerConfig. If your app uses native Node modules, you should probably use this to reduce loading times and disk consumption on your users' machines.

// forge.config.js

module.exports = {
  plugins: [
    {
      name: '@electron-forge/plugin-auto-unpack-natives',
      config: {}
    }
  ]
};
npm i @electron-forge/plugin-auto-unpack-natives

Metadata

  • MIT
  • >= 16.4.0
  • Samuel Attard
  • released 9/20/2024

Downloads