---
title: "Optimizing Our Build Times by Migrating from Webpack to Rspack"
url: https://daily.dev/posts/optimizing-our-build-times-by-migrating-from-webpack-to-rspack-j4os8uopj
source_url: https://engineeringblog.yelp.com/2026/05/optimizing-our-build-times-by-migrating-from-webpack-to-rspack.html
type: article
source: "Yelp Engineering"
published: 2026-05-20T18:06:51.780Z
updated: 2026-05-20T18:07:18.048Z
tags: ["general-programming", "webpack"]
reading_time: 7
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimizing Our Build Times by Migrating from Webpack to Rspack

**[Yelp Engineering](https://daily.dev/sources/yelp)** · 7 min read · 0 upvotes · 0 comments

## Summary

Yelp's engineering team migrated their JavaScript monorepo from Webpack to Rspack, achieving approximately 52% reduction in build times. Key reasons for choosing Rspack included its strong Webpack compatibility, which minimized migration friction. The team used an adapter pattern to preserve existing Webpack configs while making targeted replacements, and rolled out the change gradually via opt-in per page. Additional optimizations included converting star re-exports and import-then-export patterns to true re-exports using codemods, and enabling Rspack's portable persistent cache (which yielded up to 80% reduction on warm cache builds). Storybook integration was handled via storybook-react-rsbuild, with Rsbuild defaults ejected to avoid plugin duplication. Future plans include replacing Babel with the Rust-based SWC transpiler for further gains.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://engineeringblog.yelp.com/2026/05/optimizing-our-build-times-by-migrating-from-webpack-to-rspack.html>

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#webpack](https://daily.dev/tags/webpack)

[View this post on daily.dev](https://daily.dev/posts/optimizing-our-build-times-by-migrating-from-webpack-to-rspack-j4os8uopj)
