One rule engine, two runtimes: a cart drawer and a Shopify Discount Function that agree
How one dependency-free JavaScript module decides bundle discounts both on our server and inside Shopify's WebAssembly checkout, and how the same fixtures test it in Node and in WASM.
10 min
