mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
closes #273 closes #814 HIR is removed from this PR, with the minifier being commented out. HIR is a wonderful idea for compiling to lower languages, but after sitting on it for a few months I found that it only adds confusion and uncertainties to both myself and future contributors. It also adds too much burden to maintainers if we plan to support more downstream tools. 1 AST is the only way. |
||
|---|---|---|
| .. | ||
| .cargo | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| README.md | ||
About
Wasm package for oxc compiler.
🚴 Usage
import oxc from 'oxc-wasm'
const ast = oxc.main(code, options)
🛠️ Build with wasm-pack build
cargo binstall wasm-pack
wasm-pack build
🔬 Test in Headless Browsers with wasm-pack test
wasm-pack test --headless --firefox
🎁 Publish to NPM with wasm-pack publish
wasm-pack publish
🔋 Batteries Included
wasm-bindgenfor communicating between WebAssembly and JavaScript.console_error_panic_hookfor logging panic messages to the developer console.