-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts.timestamp-1687805708653-62300fd6ccafe.mjs
29 lines (29 loc) · 3.51 KB
/
vite.config.ts.timestamp-1687805708653-62300fd6ccafe.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
// vite.config.ts
import { defineConfig } from "file:///home/mohmin/Desktop/learning/tauri/smearshot/node_modules/vite/dist/node/index.js";
import react from "file:///home/mohmin/Desktop/learning/tauri/smearshot/node_modules/@vitejs/plugin-react/dist/index.mjs";
var vite_config_default = defineConfig(async () => ({
plugins: [react()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
// prevent vite from obscuring rust errors
clearScreen: false,
// tauri expects a fixed port, fail if that port is not available
server: {
port: 1420,
strictPort: true
},
// to make use of `TAURI_DEBUG` and other env variables
// https://tauri.studio/v1/api/config#buildconfig.beforedevcommand
envPrefix: ["VITE_", "TAURI_"],
build: {
// Tauri supports es2021
target: process.env.TAURI_PLATFORM == "windows" ? "chrome105" : "safari13",
// don't minify for debug builds
minify: !process.env.TAURI_DEBUG ? "esbuild" : false,
// produce sourcemaps for debug builds
sourcemap: !!process.env.TAURI_DEBUG
}
}));
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvaG9tZS9tb2htaW4vRGVza3RvcC9sZWFybmluZy90YXVyaS9zbWVhcnNob3RcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIi9ob21lL21vaG1pbi9EZXNrdG9wL2xlYXJuaW5nL3RhdXJpL3NtZWFyc2hvdC92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9p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