mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 21:44:23 +00:00
also allow just linking matrix-sdk-crypto-wasm (without js-sdk linking)
This commit is contained in:
1 parent
af4a5e9a7a
commit
d71c81e82c
1 file changed
+8
-5
+8
-5
@@ -65,11 +65,14 @@ export default defineConfig(({ mode, packageType }) => {
|
||||
);
|
||||
}
|
||||
const allow = [searchForWorkspaceRoot(process.cwd())];
|
||||
const matrixSdkCryptoWasmPath =
|
||||
"node_modules/matrix-js-sdk/node_modules/@matrix-org/matrix-sdk-crypto-wasm";
|
||||
try {
|
||||
allow.push(realpathSync(matrixSdkCryptoWasmPath));
|
||||
} catch {}
|
||||
for (path of [
|
||||
"node_modules/matrix-js-sdk/node_modules/@matrix-org/matrix-sdk-crypto-wasm",
|
||||
"node_modules/@matrix-org/matrix-sdk-crypto-wasm",
|
||||
]) {
|
||||
try {
|
||||
allow.push(realpathSync(path));
|
||||
} catch {}
|
||||
}
|
||||
console.log("Allowed vite paths:", allow);
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user