From 63101c965fe6547a3701b1ac7c56fec605fb9f49 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 10 Sep 2025 11:36:46 +0200 Subject: [PATCH] build: disable treeshaking --- scripts/client.rollup.config.js | 2 ++ scripts/launcher.rollup.config.js | 1 + scripts/server.rollup.config.js | 1 + 3 files changed, 4 insertions(+) diff --git a/scripts/client.rollup.config.js b/scripts/client.rollup.config.js index 6f7d5eaa..ab5813f0 100644 --- a/scripts/client.rollup.config.js +++ b/scripts/client.rollup.config.js @@ -18,9 +18,11 @@ module.exports = { format: 'iife', sourcemap: true, strict: false, + indent: false, name: '_' }, ], + treeshake: false, watch: { clearScreen: false }, diff --git a/scripts/launcher.rollup.config.js b/scripts/launcher.rollup.config.js index 44511ca4..48d9275e 100644 --- a/scripts/launcher.rollup.config.js +++ b/scripts/launcher.rollup.config.js @@ -19,6 +19,7 @@ module.exports = { name: '_', }, ], + treeshake: false, external: ['electron'], watch: { clearScreen: false diff --git a/scripts/server.rollup.config.js b/scripts/server.rollup.config.js index a5301670..62994c2a 100644 --- a/scripts/server.rollup.config.js +++ b/scripts/server.rollup.config.js @@ -19,6 +19,7 @@ module.exports = { name: '_', }, ], + treeshake: false, external: ['electron', '@serialport'], watch: { clearScreen: false