feat(electron): define runtimeConfig in esbuild (#6287)

This commit is contained in:
EYHN
2024-03-25 03:55:26 +00:00
parent d59e1389ec
commit b93871f045
6 changed files with 17 additions and 9 deletions
@@ -6,6 +6,7 @@ async function buildLayers() {
const common = config();
const define: Record<string, string> = {
...common.define,
'process.env.NODE_ENV': `"${mode}"`,
'process.env.BUILD_TYPE': `"${process.env.BUILD_TYPE || 'stable'}"`,
};