Detalhes do pacote

@platform/electron

philcockfield131MITdepreciado0.7.97

pre-release module deprecation

Common utilities for working with electron.

readme (leia-me)

Module License: MIT NPM

electron

Common utilities for working with electron.

Manual Test

To run an electron test shell, see the electron-test module:

cd electron-test
yarn ui start

 

Polyfill

The babel-polyfill is included to ensure Parcel bundles correctly without causing certain errors when building a production distribution, for example this issue:

regeneratorRuntime is not defined 😩

 

Building for Electron

If you encounter dist build issues you may need to re-compile native modules.
See Using Native Node Modules for background.

Run the rebuild script against your module. For example, in your package.json:

{
  "scripts": {
    "rebuild": "platform.electron rebuild"
  }
}

This will need to be done every time after npm install or yarn install has been run.