[Scripts > Strip] Minify static bools
This commit is contained in:
		
							parent
							
								
									47fa7e40f3
								
							
						
					
					
						commit
						fd5b7ba4ca
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -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('? ?', '??'); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue