From d71c81e82c65391b46a1eb9326e01562ba67a0c1 Mon Sep 17 00:00:00 2001 From: Timo Date: Fri, 4 Apr 2025 22:59:42 +0200 Subject: [PATCH] also allow just linking matrix-sdk-crypto-wasm (without js-sdk linking) --- vite.config.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vite.config.js b/vite.config.js index 9c00ba21..9be3cfcb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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 {