vite-plugin-electron
Advanced tools
Comparing version 0.28.4 to 0.28.5
@@ -22,2 +22,4 @@ /// <reference types="node" /> | ||
* @param argv default value `['.', '--no-sandbox']` | ||
* @param options options for `child_process.spawn` | ||
* @param customElectronPkg custom electron package name (default: 'electron') | ||
*/ | ||
@@ -35,4 +37,6 @@ startup: (argv?: string[], options?: import('node:child_process').SpawnOptions) => Promise<void>; | ||
* @param argv default value `['.', '--no-sandbox']` | ||
* @param options options for `child_process.spawn` | ||
* @param customElectronPkg custom electron package name (default: 'electron') | ||
*/ | ||
export declare function startup(argv?: string[], options?: import('node:child_process').SpawnOptions): Promise<void>; | ||
export declare function startup(argv?: string[], options?: import('node:child_process').SpawnOptions, customElectronPkg?: string): Promise<void>; | ||
export declare namespace startup { | ||
@@ -39,0 +43,0 @@ var hookedProcessExit: boolean; |
@@ -189,3 +189,3 @@ "use strict"; | ||
if (process.electronApp) { | ||
server.ws.send({ type: "full-reload" }); | ||
server.hot.send({ type: "full-reload" }); | ||
} else { | ||
@@ -225,5 +225,5 @@ startup(); | ||
} | ||
async function startup(argv = [".", "--no-sandbox"], options) { | ||
async function startup(argv = [".", "--no-sandbox"], options, customElectronPkg) { | ||
const { spawn } = await import("node:child_process"); | ||
const electron2 = await import("electron"); | ||
const electron2 = await import(customElectronPkg ?? "electron"); | ||
const electronPath = electron2.default ?? electron2; | ||
@@ -230,0 +230,0 @@ await startup.exit(); |
{ | ||
"name": "vite-plugin-electron", | ||
"version": "0.28.4", | ||
"version": "0.28.5", | ||
"description": "Electron 🔗 Vite", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -149,2 +149,4 @@ <p align="center"> | ||
* @param argv default value `['.', '--no-sandbox']` | ||
* @param options options for `child_process.spawn` | ||
* @param customElectronPkg custom electron package name (default: 'electron') | ||
*/ | ||
@@ -151,0 +153,0 @@ startup: (argv?: string[], options?: import('node:child_process').SpawnOptions) => Promise<void> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
52430
908
363
0