Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 14 commits into from
Dec 29, 2022
Merged

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

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.

None yet

1 participant