add comment (review)

This commit is contained in:
Timo
2025-04-04 23:06:14 +02:00
parent d71c81e82c
commit 0073a3e079

View File

@@ -64,6 +64,11 @@ export default defineConfig(({ mode, packageType }) => {
}),
);
}
// The crypto WASM module is imported dynamically. Since it's common
// for developers to use a linked copy of matrix-js-sdk or Rust
// crypto (which could reside anywhere on their file system), Vite
// needs to be told to recognize it as a legitimate file access.
const allow = [searchForWorkspaceRoot(process.cwd())];
for (path of [
"node_modules/matrix-js-sdk/node_modules/@matrix-org/matrix-sdk-crypto-wasm",