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

Download history 1310/week @ 2022-01-25 1149/week @ 2022-02-01 1044/week @ 2022-02-08 1249/week @ 2022-02-15 1105/week @ 2022-02-22 1239/week @ 2022-03-01 1102/week @ 2022-03-08 1673/week @ 2022-03-15 1673/week @ 2022-03-22 1375/week @ 2022-03-29 1430/week @ 2022-04-05 1347/week @ 2022-04-12 1637/week @ 2022-04-19 4219/week @ 2022-04-26 3748/week @ 2022-05-03 1503/week @ 2022-05-10

11,332 downloads per month
Used in 17 crates (4 directly)

Apache-2.0

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