amical/apps/desktop/vite.main.config.mts
Haritabh 5eb5777001
Optimise local transcription calls (#33)
* chore: move audio worklet file to assets

* chore: get rid of rickyvad and use vad model directly

* fix: handling of onnxruntime in packaged app

* chore: run ci on macos

* fix: formatting
2025-07-03 12:18:47 +05:30

36 lines
717 B
TypeScript

import { defineConfig } from "vite";
import { resolve } from "path";
// https://vitejs.dev/config
export default defineConfig({
build: {
rollupOptions: {
external: [
"smart-whisper",
"@libsql/client",
"@libsql/darwin-arm64",
"@libsql/darwin-x64",
"@libsql/linux-x64-gnu",
"@libsql/linux-x64-musl",
"@libsql/win32-x64-msvc",
"libsql",
"onnxruntime-node",
/^node:/,
/^electron$/,
],
},
},
resolve: {
alias: {
"@": resolve(__dirname, "src"),
},
},
optimizeDeps: {
exclude: [
"better-sqlite3",
"smart-whisper",
"drizzle-orm",
"@libsql/client",
],
},
});