* 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
36 lines
717 B
TypeScript
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",
|
|
],
|
|
},
|
|
});
|