swc-project/swc ? reverse-engineered prompt

Reverse engineered prompt

Build me a super fast TypeScript and JavaScript compiler in Rust, with a JavaScript API too, so I can use the same tool from both Rust and Node. It should be able to parse modern JS and TS, transform code, and expose a clean way to run it from the command line or as a library.

Make it feel like a real production tool, so it should be fast, reliable, and work on current desktop platforms. Please include sensible docs or examples for how to install and use it from both Rust and JavaScript, and make sure the basic build and test flow is set up so I can verify it works.

If you need to check anything about the latest recommended setup or supported versions, look up the current docs online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab