From 2101ce4777fd301c4133da19c432fe4419231c87 Mon Sep 17 00:00:00 2001 From: Avi Vahl Date: Mon, 30 Dec 2024 02:03:13 +0200 Subject: [PATCH] fix(build): externalize specific electron endpoints to allow importing electron/package.json --- scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index 0c920c6..50c343e 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -34,7 +34,7 @@ const commonBuildOptions = { __REACT_DEVTOOLS_GLOBAL_HOOK__: `{ "isDisabled": true }`, "process.env.NODE_ENV": isWatch ? '"development"' : '"production"', }, - external: ["electron/*"], + external: ["electron/common", "electron/renderer", "electron/main", "electron/utility"], }; /** @type {import('esbuild').BuildOptions} */