From e9b4473aec21e1944ede077c4b4586ab8ebc47d7 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sun, 20 Apr 2025 09:28:51 +0100 Subject: [PATCH] Build compact code by default #1337 (#1338) --- babel.config.js | 3 ++- rollup.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/babel.config.js b/babel.config.js index 33d848f2..0c1298e8 100644 --- a/babel.config.js +++ b/babel.config.js @@ -20,7 +20,8 @@ const config = { } ] ], - exclude: ['node_modules/**'] + exclude: ['node_modules/**'], + compact: true // Force compacting for large files }; export default config; diff --git a/rollup.config.js b/rollup.config.js index afc51148..ae5241f4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -89,7 +89,7 @@ if (process.env.BUILD === 'production') { // Alter remaining lib references .replace(/([\\/])js[\\/]lib/g, '$1js') // Remove unneeded ASM/WASM binaries - .replace(/["']www[\\/]js[\\/].*dec.*js["'],\s*/g, '') + .replace(/['"]www[\\/]js[\\/].*dec.*js['"],\s*/g, '') ); return result.code; }