Replace remote wrapper module with Vite alias.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-01-19 02:16:12 -05:00
committed by Anders Kaseorg
parent d42b752ac1
commit 9a200dc40c
8 changed files with 203 additions and 73 deletions

View File

@@ -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",
},
},
},
},
]),