mirror of
https://github.com/swc-project/swc.git
synced 2024-10-05 12:49:21 +03:00
715 B
715 B
spdy web compiler
Make the web (development) faster.
Installation
Requires nightly version of rust.
cargo install --git https://github.com/swc-project/swc.git
Usage
test.js
:
8 + 8;
use(8 + 8, 8 ** 8);
Example
swc jsc test.js
Output
8 + 8;
use(8 + 8, Math.pow(8, 8));
Example
swc jsc --optimize test.js
Output
use(8 + 8, Math.pow(8, 8));