What types of files can be bundled in a Checkout UI extension?
I am considering adding one or more Checkout UI extensions to an app that uses Shopify Functions. Because the bulk of the business logic is written in Rust, I’ve been able to compile it to a WebAssembly binary to ensure consistent behavior on the storefront.
Can .wasm
files be included in a Checkout UI extension? If not, is there any documentation on which file types are supported?
Thanks in advance,
Tobe
Hey Tobe,
It doesn’t look like .wasm
files are allowed but we don’t list the accepted file types. From looking at some of the sample apps like this one, and this one, it looks like the accepted file types are .js
, .ts
, .tsx
for the main functionality of the app, and .json
for things like locales.
Thank you for your response. Is there a place I can submit a feature request for this? I imagine that, as more apps transition to Rust for Shopify Functions, they will look for solutions to be able to prevent duplicating complex logic in 2 languages.