@platform/electron
Version:
Common utilities for working with electron.
37 lines (27 loc) • 1.06 kB
Markdown
[](https://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/@platform/electron)
# @platform/electron
Common utilities for working with [electron](https://electronjs.org).
## Manual Test
To run an electron test shell, see the [electron-test](../electron-test/README.md) module:
```bash
cd electron-test
yarn ui start
```
## package.json
Optionally add a [browserslist](https://github.com/browserslist/browserslist) reference:
```json
{
"browserslist": [
"electron >= 4"
]
}
```
- https://www.npmjs.com/package/electron-to-chromium
## Polyfill
The `babel-polyfill` is included to ensure [Parcel](https://parceljs.org) bundles correctly without causing certain errors when building a production distribution, for example this [issue](https://github.com/parcel-bundler/parcel/issues/871#issuecomment-367899522):
```
regeneratorRuntime is not defined 😩
```
<p> <p>
<p> <p>