This commit is contained in:
2026-06-16 06:18:42 +02:00
parent 3f5078841d
commit 66248c4736
39 changed files with 6699 additions and 94 deletions

View File

@@ -9,7 +9,13 @@ export default defineConfig({
},
preload: {
plugins: [externalizeDepsPlugin()],
build: { outDir: 'out/preload' },
build: {
outDir: 'out/preload',
// CommonJS preload (.cjs): loads synchronously before the page, so the
// contextBridge is exposed by the time the renderer mounts. ESM preload
// (.mjs) can expose late and leave window.helder briefly undefined.
rollupOptions: { output: { format: 'cjs', entryFileNames: 'index.cjs' } },
},
},
renderer: {
root: 'src/renderer',