mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 04:53:17 +00:00
Replace remote wrapper module with Vite alias.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
d42b752ac1
commit
9a200dc40c
@@ -1,3 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
|
||||
import * as path from "node:path";
|
||||
|
||||
import {defineConfig} from "vite";
|
||||
@@ -37,6 +39,11 @@ export default defineConfig({
|
||||
},
|
||||
ssr: true,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"zulip:remote": "electron/main",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -82,6 +89,11 @@ export default defineConfig({
|
||||
external: ["electron", /^electron\//, "@yaireo/tagify"],
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"zulip:remote": "@electron/remote",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user