From 99cd4f53bf910f5f6ce5234905126f261a35fefa Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Sat, 29 Apr 2023 12:00:10 +0100 Subject: [PATCH] strip: disable boolean minifying --- scripts/strip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/strip.js b/scripts/strip.js index 4820768..5c6d716 100644 --- a/scripts/strip.js +++ b/scripts/strip.js @@ -23,8 +23,8 @@ const stripCode = (code) => code .replaceAll('async ', 'async~') .replaceAll('else ', 'else~') .replace('/([0-9]+) files/', '/([0-9]+)~files/') - .replaceAll('false', '!1') - .replaceAll('true', '!0') + // .replaceAll('false', '!1') + // .replaceAll('true', '!0') .replace(/((['"`])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '') .replaceAll('~', ' ') .replaceAll('? ?', '??');