fix: configure Vite to handle matrix-js-sdk WASM crypto module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user