-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvite.electron.config.ts.timestamp-1717149927628-56ec48b795d08.mjs
88 lines (86 loc) · 9.47 KB
/
vite.electron.config.ts.timestamp-1717149927628-56ec48b795d08.mjs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// vite.electron.config.ts
import { defineConfig as defineConfig2 } from "file:///Users/macos-13/Desktop/IM/coss-client-new/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/index.js";
import electron from "file:///Users/macos-13/Desktop/IM/coss-client-new/node_modules/.pnpm/[email protected][email protected]/node_modules/vite-plugin-electron/dist/simple.mjs";
import path2 from "node:path";
// vite.config.ts
import { defineConfig } from "file:///Users/macos-13/Desktop/IM/coss-client-new/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/index.js";
import react from "file:///Users/macos-13/Desktop/IM/coss-client-new/node_modules/.pnpm/@[email protected][email protected]_@[email protected][email protected][email protected]_/node_modules/@vitejs/plugin-react/dist/index.mjs";
import path from "node:path";
import pages from "file:///Users/macos-13/Desktop/IM/coss-client-new/node_modules/.pnpm/[email protected][email protected][email protected][email protected]_@[email protected][email protected][email protected]_/node_modules/vite-plugin-pages/dist/index.js";
import { Capacitor } from "file:///Users/macos-13/Desktop/IM/coss-client-new/node_modules/.pnpm/@[email protected]/node_modules/@capacitor/core/dist/index.cjs.js";
var __vite_injected_original_dirname = "/Users/macos-13/Desktop/IM/coss-client-new";
var __IS_WEB__ = Capacitor.getPlatform() === "web";
var __IS_ANDROID__ = Capacitor.getPlatform() === "android";
var __IS_IOS__ = Capacitor.getPlatform() === "ios";
var __IS_NATIVE__ = JSON.stringify(Capacitor.isNativePlatform());
var vite_config_default = defineConfig({
plugins: [
react(),
pages()
// visualizer({ open: false })
],
resolve: {
alias: {
"@": path.resolve(__vite_injected_original_dirname, "./src"),
"~": path.resolve(__vite_injected_original_dirname, "./electron")
}
},
define: {
__IS_ELECTRON__: false,
__IS_WEB__,
__IS_ANDROID__,
__IS_IOS__,
__IS_NATIVE__
},
build: {
minify: "terser",
cssCodeSplit: true,
terserOptions: {
compress: {
drop_console: false,
drop_debugger: true
}
},
chunkSizeWarningLimit: 1e3,
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes("node_modules")) {
return id.toString().split("node_modules/")[1].split("/")[0].toString();
}
},
chunkFileNames: "js/[name]-[hash].js",
entryFileNames: "js/[name]-[hash].js",
assetFileNames: "[ext]/[name]-[hash].[ext]"
}
}
}
});
// vite.electron.config.ts
var __vite_injected_original_dirname2 = "/Users/macos-13/Desktop/IM/coss-client-new";
var ELECTRON_ENTRY = path2.resolve(__vite_injected_original_dirname2, "electron/main/main.ts");
var PRELOAD_INPUT = path2.resolve(__vite_injected_original_dirname2, "electron/preload/preload.ts");
var vite_electron_config_default = defineConfig2({
...vite_config_default,
plugins: [
...vite_config_default?.plugins || [],
electron({
main: {
entry: ELECTRON_ENTRY
},
preload: {
input: PRELOAD_INPUT
},
renderer: process.env.NODE_ENV === "test" ? void 0 : {}
})
],
define: {
...vite_config_default.define,
__IS_ELECTRON__: true,
__IS_WEB__: false
}
});
export {
vite_electron_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5lbGVjdHJvbi5jb25maWcudHMiLCAidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvbWFjb3MtMTMvRGVza3RvcC9JTS9jb3NzLWNsaWVudC1uZXdcIjtjb25zdCBfX3ZpdGVfaW5q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