fix(preload): keep zod out of sandbox bundle
This commit is contained in:
1 parent
fa006524c2
commit
710448a75f
4 files changed
+19
-7
No files matched your search
@@ -22,10 +22,7 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
preload: {
|
||||
// zod is bundled into preload because preload runs as sandboxed CJS
|
||||
// and cannot resolve externalized ESM deps at runtime. Inlining keeps
|
||||
// IPC Zod validation working inside the preload layer.
|
||||
plugins: [externalizeDepsPlugin({ exclude: ["zod"] })],
|
||||
plugins: [externalizeDepsPlugin()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@shared": resolve("src/shared"),
|
||||
|
||||
Reference in new issue
Block a user