diff --git a/scripts/strip.js b/scripts/strip.js index 5ec1bc6..d81f894 100644 --- a/scripts/strip.js +++ b/scripts/strip.js @@ -22,6 +22,8 @@ const stripCode = (code) => code .replaceAll('throw ', 'throw#') .replaceAll('async ', 'async#') .replaceAll('else ', 'else#') + .replaceAll('false', '!!0') + .replaceAll('true', '!0') .replace(/((['"`])[\s\S]*?\2)|[ \n]/g, (_, g1) => g1 || '') .replaceAll('#', ' ') .replaceAll('? ?', '??');