-
Notifications
You must be signed in to change notification settings - Fork 524
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
feature(interactive-examples): add support for WAT examples #12654
Conversation
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded
Removed
Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Made a couple small changes and one bigger one to unify the javascript/wat templates into one - let me know if these make sense.
One question about CSP:
Co-authored-by: Leo McArdle <[email protected]>
This pull request has merge conflicts that must be resolved before it can be merged. |
Summary
Support WAT with the component based interactive examples
Problem
Getting the 4th variant of the interactive examples on par with the old version.
Solution
Add the needed logic to compile WAT->WASM client-side and pass it via a data-url into the javascript boilerplate code.
How did you test this change?
Compared the console output of the old and the new version of WAT interactive examples. No differences were found over 61 examples.