Skip to content

Add visitor support to WASM build via napi-wasm#373

Merged
devongovett merged 14 commits intomasterfrom
napi-wasm
Dec 29, 2022
Merged

Add visitor support to WASM build via napi-wasm#373
devongovett merged 14 commits intomasterfrom
napi-wasm

Conversation

@devongovett
Copy link
Member

This adds support for visitors to the WASM build. Rather than reimplement this all again for wasm-bindgen and maintain two versions, I decided to shim the napi API for WASM so we can use the same implementation everywhere. That resulted in the napi-wasm project. This updates lightningcss to use it.

It also updates the playground to support custom visitors, and uses code mirror for a nicer editing experience.

Example

@devongovett devongovett merged commit 516bed2 into master Dec 29, 2022
@devongovett devongovett deleted the napi-wasm branch December 29, 2022 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant