dependencies

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K 2025-10-12 19:22:58 +02:00
parent 958ae8945d
commit 98c90b23af
3 changed files with 19 additions and 3 deletions

View file

@ -38,6 +38,10 @@ const copyFiles = {
src: 'public/locales',
dest: 'public/',
},
{
src: 'node_modules/@element-hq/element-call-embedded/dist/*',
dest: './widgets/element-call/',
},
],
};
@ -47,7 +51,10 @@ function serverMatrixSdkCryptoWasm(wasmFilePath) {
configureServer(server) {
server.middlewares.use((req, res, next) => {
if (req.url === wasmFilePath) {
const resolvedPath = path.join(path.resolve(), "/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm");
const resolvedPath = path.join(
path.resolve(),
'/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm'
);
if (fs.existsSync(resolvedPath)) {
res.setHeader('Content-Type', 'application/wasm');
@ -102,8 +109,8 @@ export default defineConfig({
},
devOptions: {
enabled: true,
type: 'module'
}
type: 'module',
},
}),
],
optimizeDeps: {