Skip to content

Commit

Permalink
fix(build): externalize specific electron endpoints
Browse files Browse the repository at this point in the history
to allow importing electron/package.json
  • Loading branch information
AviVahl committed Dec 30, 2024
1 parent 1695834 commit 2101ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} */
Expand Down

0 comments on commit 2101ce4

Please sign in to comment.