mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +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 allow = [searchForWorkspaceRoot(process.cwd())];
|
||||||
const matrixSdkCryptoWasmPath =
|
for (path of [
|
||||||
"node_modules/matrix-js-sdk/node_modules/@matrix-org/matrix-sdk-crypto-wasm";
|
"node_modules/matrix-js-sdk/node_modules/@matrix-org/matrix-sdk-crypto-wasm",
|
||||||
try {
|
"node_modules/@matrix-org/matrix-sdk-crypto-wasm",
|
||||||
allow.push(realpathSync(matrixSdkCryptoWasmPath));
|
]) {
|
||||||
} catch {}
|
try {
|
||||||
|
allow.push(realpathSync(path));
|
||||||
|
} catch {}
|
||||||
|
}
|
||||||
console.log("Allowed vite paths:", allow);
|
console.log("Allowed vite paths:", allow);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user