# Rslib

[Rslib](https://lib.rsbuild.dev/) is a high-performance build tool powered by [Rsbuild](https://rsbuild.dev/) and [Rspack](https://rspack.dev/), Rust-based ports of webpack designed for efficiency and speed. Those new Rslib shared configurations are a modern replacement for previous Workleap's shared [tsup configurations](../tsup/getting-started.md).

## Main features

The shared configurations offered by `@workleap/rslib-configs` includes the following features :point_down:

### Language support

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

### TypeScript features

- Emits declaration files

### Framework support

- React

### Asset support

- SVG as React components

### Development features

- Watch mode
- Sourcemaps

### Production features

- Sourcemaps
- Output to `/dist`

### Target environment

- ESM
- ESNext

## Getting started

### Setup a project

To get started, follow the quick start guide to configure Rsbuild for either a [development environment](./configure-dev.md), a [production environment](./configure-build.md) or [storybook](./configure-storybook.md).

### Migrate from tsup

If your project is currently using `@workleap/tsup-configs`, follow the [migration guide](./migrate-from-tsup.md).
