Crates.io | swc_ecma_minifier |
lib.rs | swc_ecma_minifier |
version | 0.197.3 |
source | src |
created_at | 2021-05-20 06:17:02.108466 |
updated_at | 2024-07-13 07:56:05.523334 |
description | EcmaScript code minifier. |
homepage | |
repository | https://github.com/swc-project/swc.git |
max_upload_size | |
id | 399864 |
size | 1,185,881 |
EcmaScript minifier for the SWC project. This is basically a port of terser.
Currently name mangler is very simple. To focus on creating a MVP, I (kdy1) will use simple logic for name mangler and implement the content-aware name mangler after publishing first non-beta version.
If the output contains variables named e
, t
, n
it typically means the original library is published in a minified form and the input contains eval
.
The current swc name mangler does not do anything if eval
is used.
From mac os x, run
./scripts/instrument/all.sh path/to/input/dir