Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Yelp Engineering 6 min read Case study mediumAdept

Optimizing Our Build Times by Migrating from Webpack to Rspack

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%.

Related posts

  • Why We Switched From Webpack To Vite

    Replit easyNovice

    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. Vite pre-bundles rarely changing dependencies with esbuild, which is written in Go and claimed to be 10-100x faster than JavaScript bundlers. It serves source code as native ES Modules so the browser does the bundling, and its hot module replacement invalidates only the affected modules, so update times stay constant as the app grows. Vue and vanilla JS templates are also available.

  • What We Learned Migrating From Webpack to Vite

    Neon mediumAdept

    Neon moved its console, a set of SPAs whose HTML is rendered by a Go backend, from webpack to Vite. Because the backend generates the HTML, they built a ~150-line custom proxy on Vite's JS API and http-proxy that swaps production asset tags (marked with HTML comments) for Vite dev imports to enable HMR, while E2E tests bypass the proxy and use production bundles. Build time did not improve (20s to 22s) and cold dev page loads got slower (~1500 files), but the migration removed 17 direct dependencies, added HMR and unified config with Vitest and Storybook. Gotchas included the SWC React plugin panicking on syntax errors, CSS preload errors in production, entry-point name clashes with API routes, CSP adjustments for Vite's WebSocket and undefined process.env.

  • Best-in-Class Developer Experience with Vite and Hydrogen

    Shopify Engineering easyNovice

    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. Other reasons cited for the choice are ESBuild-based transforms, Rollup plugin compatibility, automatic CJS-to-ESM conversion, and SSR hooks that allow environment-specific transforms needed for React Server Components. Hydrogen wraps this in a single Vite plugin that composes four sub-plugins (hydrogen-config, react-server-dom-vite, hydrogen-middleware, plugin-react), while Webpack remains a fit for some advanced use cases.

  • Bun v0.5

    Bun mediumAdept

    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. Performance changes include 10x faster Buffer instantiation by removing Object.setPrototypeOf from construction and 50x faster crypto.createHash by switching from pure JS to BoringSSL. Module resolution now ignores the package.json browser field and honors the node export condition, and the release adds HTTPS_PROXY support, custom WebSocket handshake headers, more Jest-compatible test APIs, and many bun install fixes.

  • You Don't Need a Build Step

    Deno mediumAdept

    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. A walkthrough of the Next.js blog starter shows each stage, including compiled JSX output and a huge dependency graph, and identifies dependency-graph traversal during bundling as where most build time goes. Deno and Fresh are pitched as an alternative: browser-compatible JavaScript with native ESM and web APIs, rendered just-in-time on the server, so no build step is needed.

The quest for software engineering knowledge.

Look:
Layout: