From 3d6bdd33fa00e3c01198326f0408ad143e5e49a7 Mon Sep 17 00:00:00 2001 From: "Yasmin Seidel (JasminDreasond)" Date: Mon, 14 Aug 2023 18:27:44 -0300 Subject: [PATCH] comments remove --- vite.config.js | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/vite.config.js b/vite.config.js index be596264f..4f72812cd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -69,6 +69,11 @@ const copyFiles = { dest: 'js/', }, + { + src: 'node_modules/@matrix-org/olm/olm.wasm', + dest: '', + }, + { src: 'config/config.json', dest: '', @@ -107,29 +112,6 @@ export default defineConfig(({ command, mode }) => { } }; - /* - if (electronMode && mode === 'development') { - - envData.maindir = __dirname; - - copyFiles.targets.push({ - src: 'node_modules/@matrix-org/olm/olm.wasm', - dest: path.join(envData.maindir, './node_modules/electron/dist/resources/electron.asar/renderer/'), - }); - - } else { - copyFiles.targets.push({ - src: 'node_modules/@matrix-org/olm/olm.wasm', - dest: '', - }); - } - */ - - copyFiles.targets.push({ - src: 'node_modules/@matrix-org/olm/olm.wasm', - dest: '', - }); - // Result object const result = {