mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 13:02:44 +00:00
Fix loading of matrix-sdk-crypto-wasm when running in local development mode (#2915)
Fixes problem loading rust crypto when using `yarn dev`
This commit is contained in:
1 parent
ba5da7e9af
commit
6d5dc0dfb7
1 file changed
+7
@@ -109,5 +109,12 @@ export default defineConfig(({ mode }) => {
|
||||
"@radix-ui/react-dismissable-layer",
|
||||
],
|
||||
},
|
||||
// Vite is using esbuild in development mode, which doesn't work with the wasm loader
|
||||
// in matrix-sdk-crypto-wasm, so we need to exclude it here. This doesn't affect the
|
||||
// production build (which uses rollup) which still works as expected.
|
||||
// https://vite.dev/guide/why.html#why-not-bundle-with-esbuild
|
||||
optimizeDeps: {
|
||||
exclude: ["@matrix-org/matrix-sdk-crypto-wasm"],
|
||||
},
|
||||
};
|
||||
});
|
||||
Reference in new issue
Block a user