Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
awesome-wasm-langs
😎 A curated list of languages that compile directly to or have their VMs in WebAssembly
You can take a look at the Function example written in AssemblyScript in Gadget’s examples Github repo. If you want to try it out yourself, copy the folder over to your local environment and use it as a new Shopify CLI app extension. Instructions for building and running are in the README.
Another advantage, you can use your favorite JS test runner along with Shopify’s function-runner to test your compiled .wasm file. I used Jest in order to add some simple unit tests for my Function.
There are also curated lists of languages that compile down to Wasm available on Github, so there is a ton of opportunity to choose your own adventure.