oxc/crates/oxc_wasm
Boshen 2f48bdf26f
fix(parser,semantic): make semantic own Trivias (#711)
closes #708

Making the parser return Rc<Trivias> is not a good API, and ideally
`Semantic` should just own `Trivias` so it can process or mutate it.
2023-08-10 15:30:32 +08:00
..
.cargo fix(oxc_wasm): remove wee_alloc dependency; fix profile warning 2023-03-06 14:50:02 +08:00
src fix(parser,semantic): make semantic own Trivias (#711) 2023-08-10 15:30:32 +08:00
.gitignore chore(oxc_wasm): remove unnecessary lines from .gitignore 2023-03-20 14:38:09 +08:00
Cargo.toml chore(rust): update crate info, add minimal rust-version, add categories 2023-07-27 13:33:18 +08:00
README.md Website (#281) 2023-04-19 16:37:44 +08:00

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