fix(js): update Electron build configuration and dependencies (#411)

This commit is contained in:
Haze
2026-03-11 15:40:08 +08:00
committed by GitHub
Unverified
parent a575977e3c
commit 4c786915c8
8 changed files with 20 additions and 15 deletions

View File

@@ -221,7 +221,7 @@ function bundlePlugin(nodeModulesRoot, npmName, destDir) {
}
let realPluginPath;
try { realPluginPath = realpathSync(normWin(pkgPath)); } catch { realPluginPath = pkgPath; }
try { realPluginPath = realpathSync(pkgPath); } catch { realPluginPath = pkgPath; }
// Copy plugin package itself
if (existsSync(normWin(destDir))) rmSync(normWin(destDir), { recursive: true, force: true });
@@ -258,7 +258,7 @@ function bundlePlugin(nodeModulesRoot, npmName, destDir) {
if (name === skipPkg) continue;
if (SKIP_PACKAGES.has(name) || SKIP_SCOPES.some(s => name.startsWith(s))) continue;
let rp;
try { rp = realpathSync(normWin(fullPath)); } catch { continue; }
try { rp = realpathSync(fullPath); } catch { continue; }
if (collected.has(rp)) continue;
collected.set(rp, name);
const depVirtualNM = getVirtualStoreNodeModules(rp);