---
title: "Optimizing Our Build Times by Migrating from Webpack to Rspack"
description: "Yelp moved its JavaScript monorepo builds from Webpack to Rspack and cut integration build time by about 52% on average."
url: "https://swe.quest/articles/optimizing-our-build-times-by-migrating-from-webpack-to-rspack-0081a00fe51c01d6"
canonical: "https://engineeringblog.yelp.com/2026/05/optimizing-our-build-times-by-migrating-from-webpack-to-rspack.html"
source: "Yelp Engineering"
published: "2026-05-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["build-systems","javascript","frontend","performance","refactoring"]
---

# Optimizing Our Build Times by Migrating from Webpack to Rspack

A post on [Yelp Engineering](https://swe.quest/sources/yelp.md), published 2026-05-20, 6 min read, Case study. Original: [https://engineeringblog.yelp.com/2026/05/optimizing-our-build-times-by-migrating-from-webpack-to-rspack.html](https://engineeringblog.yelp.com/2026/05/optimizing-our-build-times-by-migrating-from-webpack-to-rspack.html)

## Summary

Yelp moved its JavaScript monorepo builds from Webpack to Rspack and cut integration build time by about 52% on average. Rspack was chosen over Vite because it is compatible with Webpack config. The team built an adapter that copies the existing Webpack config and swaps in Rspack-compatible plugins and values, then rolled it out in stages with per-page opt-in on CI and deployment previews. The switch alone gave about a 25% speedup on SSR builds. Codemods replacing star re-exports and import-then-export patterns with named true re-exports added more gains, and Rspack's portable persistent cache cut warm CI builds by up to 80%.

Written by swe.quest, not by the author.

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

## Topics

- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)

## Prerequisites

- Webpack configuration ([easy posts on Configuration management](https://swe.quest/tags/configuration.md?difficulty=easy))
- JavaScript module bundling ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- ES module re-exports

## Keywords

Rspack, Webpack, Rsbuild, Storybook, SWC, Babel, Vite

## Related posts

- [Why We Switched From Webpack To Vite](https://swe.quest/articles/why-we-switched-from-webpack-to-vite-bb748200f241985c.md): Replit · 2021-04-28 · Easy · 2 min read · Build systems, Frontend, JavaScript, React, Developer productivity
  Replit rebuilt its React template on Vite instead of Create React App and Webpack, and it starts far faster: Vite was running before the old container had even booted the CRA files.
- [What We Learned Migrating From Webpack to Vite](https://swe.quest/articles/what-we-learned-migrating-from-webpack-to-vite-14623bb3ac0e8ed2.md): Neon · 2024-11-20 · Medium · 5 min read · Frontend, Build systems, Developer productivity, JavaScript
  Neon moved its console, a set of SPAs whose HTML is rendered by a Go backend, from webpack to Vite.
- [Best-in-Class Developer Experience with Vite and Hydrogen](https://swe.quest/articles/best-in-class-developer-experience-with-vite-and-hydrogen-71158a029a23fe79.md): Shopify Engineering · 2022-03-31 · Easy · 8 min read · Build systems, Frontend, React, JavaScript, Developer productivity
  Shopify's Hydrogen storefront framework is built on Vite. Vite serves user code as native ES Modules and pre-bundles and caches only third-party dependencies, which speeds up dev-server startup and hot module replacement compared with bundle-based tools like Webpack.
- [Bun v0.5](https://swe.quest/articles/bun-v0-5-b38dde54130b760c.md): Bun · 2023-01-18 · Medium · 7 min read · JavaScript, Runtimes & VMs, Build systems
  Bun v0.5 adds npm workspaces support (installing the Remix monorepo in about 500ms, claimed 28x faster than npm), a Bun.dns lookup API backed by c-ares, node:readline, and socket support via node:net and node:tls that lets database drivers like Postgres.js, mysql2 and node-redis run for the first time.
- [You Don't Need a Build Step](https://swe.quest/articles/you-don-t-need-a-build-step-dd1afe17f034274b.md): Deno · 2023-03-01 · Medium · 13 min read · Build systems, JavaScript, Frontend, Web performance
  Modern JavaScript build steps exist largely because Node's server-side JavaScript diverged from browser JavaScript, forcing compilation, minification, bundling and code-splitting before code can run in the browser.

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)
