Drop-in polyfill that makes Shopify's official Standard Storefront Events fire on themes that don't yet dispatch them natively. Intercepts /cart/(add|change|update|clear).js and dispatches shopify:cart:lines-update / note-update / discount-update / error using the platform-hosted event classes.
What is the webkraftz/storefront-events-polyfill GitHub project? Description: "Drop-in polyfill that makes Shopify's official Standard Storefront Events fire on themes that don't yet dispatch them natively. Intercepts /cart/(add|change|update|clear).js and dispatches shopify:cart:lines-update / note-update / discount-update / error using the platform-hosted event classes.". Written in TypeScript. Explain what it does, its main use cases, key features, and who would benefit from using it.
Question is copied to clipboard — paste it after the AI opens.
Clone via HTTPS
Clone via SSH
Download ZIP
Download main.zipReport bugs or request features on the storefront-events-polyfill issue tracker:
Open GitHub Issues