A JavaScript mangler/compressor for MoonBit, built for the MoonBit JS backend.
This repository is a MoonBit workspace with two modules:
minifier/— themoonbit-community/evol-minifierlibrary: parse modern JavaScript, resolve scopes, rename local identifiers, and print minimal equivalent output.evol/— themoonbit-community/evolcommand-line program: read a file (or stdin) and write the minified result.
The CLI exits with a nonzero status on input or argument errors. --help and --version exit successfully.
--top: preserve top-level binding names while renaming local bindings.--output <path>: write to the specified file; use-for stdout. When omitted or empty,path/to/file.jsproducespath/to/file.min.js. Stdin input requires an explicit output destination.
evol --top input.js
evol input.js --output output.js
evol input.js --output -