mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(electron): resolve temp workspace source alias
Add an exact Vite alias before the workspace catch-all so Electron main-process imports resolve the exported temp-workspace source instead of a nonexistent package-root path.
This commit is contained in:
1 parent
0227a8cc6b
commit
47ca785779
1 file changed
+1
@@ -19,6 +19,7 @@ const openChatLabAliases = {
|
||||
),
|
||||
'@openchatlab/node-runtime/data-dir-compat': resolve(rootDir, 'packages/node-runtime/src/data-dir-compat.ts'),
|
||||
'@openchatlab/node-runtime/data-dir-switch': resolve(rootDir, 'packages/node-runtime/src/data-dir-switch.ts'),
|
||||
'@openchatlab/node-runtime/temp-workspace': resolve(rootDir, 'packages/node-runtime/src/temp-workspace.ts'),
|
||||
'@openchatlab': resolve(rootDir, 'packages'),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user