---
title: "Upgrading Checkout Blocks app to Polaris web components"
description: "Shopify's Checkout Blocks team migrated five high-traffic checkout UI extensions from React and the legacy Remote UI bridge to Preact, remote-dom and Polaris web components, rewriting them in TypeScript, and cut transferred bundle sizes by 40-85% and extension load time by about 8% at P50."
url: "https://swe.quest/articles/upgrading-checkout-blocks-app-to-polaris-web-components-6cf6ef4febe89e45"
canonical: "https://shopify.engineering/upgrading-checkout-blocks-app-to-polaris-web-components"
source: "Shopify Engineering"
published: "2026-07-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["frontend","web-performance","refactoring","react","ecommerce"]
---

# Upgrading Checkout Blocks app to Polaris web components

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2026-07-16, 10 min read, Case study. Original: [https://shopify.engineering/upgrading-checkout-blocks-app-to-polaris-web-components](https://shopify.engineering/upgrading-checkout-blocks-app-to-polaris-web-components)

## Summary

Shopify's Checkout Blocks team migrated five high-traffic checkout UI extensions from React and the legacy Remote UI bridge to Preact, remote-dom and Polaris web components, rewriting them in TypeScript, and cut transferred bundle sizes by 40-85% and extension load time by about 8% at P50. Most of the work went into fitting under the new 64KB gzip bundle limit. Dropping react-reconciler saved about 89KB, a custom AI-assisted Liquid parser validated against a 42,000-line production parity corpus replaced liquidjs, and markdown-to-jsx was kept by aliasing React to Preact. The team migrated one extension per day, smallest first, behind new success/failure metrics. That monitoring caught a useId() ID-collision bug, which was rolled back the same day, and the work also produced upstream Polaris component fixes.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

- React hooks ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- JavaScript bundling ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Web components

## Keywords

Polaris web components, remote-dom, Preact, Shopify Checkout, Liquid, liquidjs, markdown-to-jsx, TypeScript

## Related posts

- [How We Built Hydrogen: A React Framework for Building Custom Storefronts](https://swe.quest/articles/how-we-built-hydrogen-a-react-framework-for-building-custom-storefronts-0de0baea8226959f.md): Shopify Engineering · 2022-06-22 · Medium · 13 min read · React, Frontend, Web performance, GraphQL, E-commerce
  Hydrogen, Shopify's React framework for custom storefronts, was built on React Server Components, React 18 streaming SSR and Vite, chosen over static JAMStack approaches because commerce pages are inherently dynamic.
- [Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready](https://swe.quest/articles/remixing-shopify-s-admin-how-we-made-it-30-faster-and-ai-ready-996b243df73e0345.md): Shopify Engineering · 2025-06-30 · Medium · 7 min read · Web performance, React, Frontend, Refactoring & migrations, AI agents
  Shopify migrated its Admin (67 million daily page views, 101 teams, ~350 PRs merged daily, 3M+ lines of TypeScript) to Remix in SPA mode with Vite.
- [Why We Ripped Twin out of 400+ Components](https://swe.quest/articles/why-we-ripped-twin-out-of-400-components-f0b99539dbfc3cb4.md): Railway · 2023-05-04 · Medium · 7 min read · CSS, Frontend, Refactoring & migrations, Build systems, React
  Railway replaced twin.macro with vanilla Tailwind across 400+ React components, which removed the last dependency on Babel and let the monorepo move fully to SWC.
- [Five years of React Native at Shopify](https://swe.quest/articles/five-years-of-react-native-at-shopify-84f013b1c431ce8f.md): Shopify Engineering · 2025-01-13 · Easy · 9 min read · React, Mobile, Developer productivity, Engineering management
  After five years, Shopify has migrated all its mobile apps to React Native, with each team choosing its own migration timing, and reports sub-500ms P75 screen loads, over 99.9% crash-free sessions, and an end to iOS/Android feature-parity work.
- [Improving site performance by shipping more CSS](https://swe.quest/articles/improving-site-performance-by-shipping-more-css-41480dcc45d65149.md): GitHub Engineering · 2026-09-25 · Medium · 7 min read · CSS, Web performance, Refactoring & migrations, Design systems, React
  GitHub migrated its Primer Design System and the github.com codebase from styled-components CSS-in-JS to CSS Modules, removing runtime styling costs on client and server.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
