Docs: add electron to bundlers section

If you're using asar, you'll also need to configure asarUnpack.
This commit is contained in:
Lovell Fuller 2024-01-03 09:40:18 +00:00
parent 0499f59e71
commit 8cd832656b
2 changed files with 16 additions and 1 deletions

View File

@ -231,6 +231,21 @@ custom:
- npm install --os=linux --cpu=x64 sharp
```
### electron
Ensure sharp is unpacked from the ASAR archive file using the
[asarUnpack](https://www.electron.build/configuration/configuration.html)
option.
```json
{
"build": {
"asar": true,
"asarUnpack": ["**/node_modules/sharp/**/*"]
}
}
```
## TypeScript
TypeScript definitions are published as part of

File diff suppressed because one or more lines are too long