oxc/crates/oxc_wasm
Boshen 249cf96ad2
refactor(ast): make serde an optional feature (#236)
This should also reduce compilation time a bit

oxc_parser compilation time 9.5s -> 8.8s

relates to #223
2023-04-01 17:12:23 +08:00
..
.cargo fix(oxc_wasm): remove wee_alloc dependency; fix profile warning 2023-03-06 14:50:02 +08:00
src refactor(oxc_diagnostics): remove over complicated Diagnostics struct 2023-04-01 15:59:42 +08:00
.gitignore chore(oxc_wasm): remove unnecessary lines from .gitignore 2023-03-20 14:38:09 +08:00
Cargo.toml refactor(ast): make serde an optional feature (#236) 2023-04-01 17:12:23 +08:00
README.md fix(oxc_wasm): remove wee_alloc dependency; fix profile warning 2023-03-06 14:50:02 +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

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