Files
Hiroshi Ogawa 30a03a3348 refactor(napi/playground): use napi-rs wasm for playground (#9803)
playground side PR: https://github.com/oxc-project/playground/pull/71

I went ahead testing out this. Let me know if this is not the plan.

I think the benefit is that this allows rust-side playground code to
reuse some code from other napi crates, for example, `oxc_napi` and
`oxc_parser_napi`. For now, I started as mostly copying paste it and
replacing `#[wasm_bindgen]` with `#[napi]`, but I also used `oxc_napi`
for `OxcError` which replaced diagnostic serialization code from
playground.

---------

Co-authored-by: Boshen <boshenc@gmail.com>
2025-03-17 23:45:55 +08:00

2 lines
52 B
JavaScript

export * from '@oxc-playground/binding-wasm32-wasi'