mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-22 06:30:25 +00:00
also allow just linking matrix-sdk-crypto-wasm (without js-sdk linking)
This commit is contained in:
@@ -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