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

Build avenger-vega-renderer with wasmbuild and inline wasm as base64 #70

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

jonmmease
Copy link
Owner

Replaces wasm-pack with wasmbuild for building avenger-vega-renderer. wasmbuild has the option of inlining wasm as base64 directly in a .js file, which makes it possible to hide the complexity of loading wasm from consumers. Now, as far as consumers are concerned, avenger-vega-renderer is a standard JavaScript package. This will make integration into Vega-Altair and vl-convert much simpler.

Use the --sync flag so that wasm is inlined as base64 and load it automatically
so end user doesn't need to know wasm is involved and there's not async initialization.
@jonmmease jonmmease merged commit 95bdc62 into main Apr 29, 2024
6 checks passed
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