Rsbuild

Rsbuild is a high-performance build tool powered by Rspack, a Rust-based port of webpack designed for efficiency and speed. Those new Rsbuild shared configurations are a modern replacement for previous Workleap's shared webpack configurations.

Main features

The shared configurations offered by @workleap/rsbuild-configs includes the following features 👇

Language support

  • JavaScript
  • TypeScript
  • CSS (with CSS modules and LightningCSS)

Framework support

  • React

Asset support

  • SVG as React components
  • PNG
  • JPEG
  • GIF

Development features

  • Development server
  • Fast Refresh or Hot Module Reload
  • Sourcemap

Production features

  • Minification
  • Output to /dist

Target environment

As per the Browserlist configuration.

Getting started

Setup a project

To get started, follow the quick start guide to configure Rsbuild for either a development environment, a production environment or storybook. Before deploying to Netlify read the deploy to Netlify guide.

Migrate from Webpack

If your project is currently using @workleap/webpack-configs, follow the migration guide.