also allow just linking matrix-sdk-crypto-wasm (without js-sdk linking)

This commit is contained in:
Timo
2025-04-04 22:59:42 +02:00
parent af4a5e9a7a
commit d71c81e82c

View File

@@ -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 {