-
-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathvite.tabs-web-preload.config.mts
More file actions
33 lines (31 loc) 路 822 Bytes
/
Copy pathvite.tabs-web-preload.config.mts
File metadata and controls
33 lines (31 loc) 路 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite";
import { productSourceAliases } from "./config/product-source-aliases.mts";
const projectRoot = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
resolve: {
alias: productSourceAliases(projectRoot),
tsconfigPaths: true,
},
build: {
emptyOutDir: false,
outDir: resolve(projectRoot, ".vite", "build"),
rollupOptions: {
external: ["electron"],
input: {
"tabs-web-preload": resolve(
projectRoot,
"desktop",
"preload",
"tabs-web-preload.ts",
),
},
output: {
codeSplitting: false,
entryFileNames: "[name].js",
format: "cjs",
},
},
},
});