fix: configure Vite to handle matrix-js-sdk WASM crypto module

This commit is contained in:
AlacrisDevs
2026-02-07 01:49:42 +02:00
parent d1ce5d0951
commit a8d79cf138

View File

@@ -10,6 +10,13 @@ export default defineConfig({
sveltekit(),
paraglideVitePlugin({ project: './project.inlang', outdir: './src/lib/paraglide' })
],
optimizeDeps: {
exclude: ['@matrix-org/matrix-sdk-crypto-wasm']
},
ssr: {
noExternal: [],
external: ['@matrix-org/matrix-sdk-crypto-wasm']
},
server: {
watch: {
// Reduce file-watcher overhead on Windows — ignore heavy dirs