317 releases (113 breaking)
Uses new Rust 2021
new 0.114.5 | May 17, 2022 |
---|---|
0.113.2 | May 14, 2022 |
0.97.4 | Mar 31, 2022 |
0.61.0 | Dec 29, 2021 |
0.16.1 | Jul 31, 2021 |
#459 in Web programming
11,332 downloads per month
Used in 17 crates
(4 directly)
3MB
82K
SLoC
Minifier
EcmaScript minifier for the SWC project. This is basically a port of terser.
Note
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.
Debugging tips
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.
Profiling the minifier
From mac os x, run
./scripts/instrument/all.sh path/to/input/dir
Dependencies
~10–17MB
~347K SLoC