fix(js): update Electron build configuration and dependencies (#411)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user