Saturday, October 24, 2026 4,350 lists 78,096 records on file
List your app or device

  1. Home
  2. JavaScript Build Tools
  3. Rslib

Rslib

What it is

Rslib is a build tool for JavaScript packages and UI component libraries, based on Rsbuild and powered by Rspack. It offers bundle and bundleless build modes and supports ESM, CJS, UMD, Module Federation, and IIFE output. Framework integrations and starter projects cover React, Vue, Svelte, and Solid, as well as Node.js packages. Rslib also supports TypeScript declaration generation, including isolated declarations, but declaration generation is not enabled by default. Its tool integrations include Rstest for testing, Storybook for component development, Rspress for component previews and API documentation, and Rsdoctor for build analysis. The quick-start guide lists Node.js, Deno, and Bun as runtime options; Rslib v1 requires Node.js 20.19+ or 22.12+. It supports Rsbuild, Rspack, and webpack plugins, and is free and open source under the MIT license. Listed platforms are API, Linux, macOS, web, and Windows.

For and against

For

  • Builds in bundle and bundleless modes.
  • Supports five output formats.
  • Framework integrations cover React, Vue, Svelte, and Solid.
  • Works with Rsbuild, Rspack, and webpack plugins.
  • Free and open source under the MIT license.

Against

  • TypeScript declaration generation is off by default.
  • Rslib v1 requires Node.js 20.19+ or 22.12+.

The verdict

Rslib brings several JavaScript library build modes, output formats, and framework integrations into one toolchain. Check the Node.js requirement and enable declaration generation separately if your project needs it.

Who it suits

Rslib suits developers building JavaScript packages or component libraries for React, Vue, Svelte, and Solid. It may also fit teams seeking a build tool with integrations for testing, documentation, and component development.

Plans and prices

Free and open source

Free

MIT license; no paid tiers stated

Every plan, in full

On the record

Build analysis
The Rslib guide describes using Rsdoctor to inspect build outputs and the build process.lib.rsbuild.dev · read 7 Oct 2026
Build engine
Rslib is based on Rsbuild and uses Rspack, with SWC and Lightning CSS among the Rust-based tools it integrates.lib.rsbuild.dev · read 7 Oct 2026
Build modes
Rslib supports bundle and bundleless build modes.lib.rsbuild.dev · read 7 Oct 2026
Community support
The project invites users to chat with the Rstack team and community on Discord.lib.rsbuild.dev · read 7 Oct 2026
Component development
Rslib integrates with Storybook through the Rsbuild-powered builder, which can derive its configuration from an Rslib config file.lib.rsbuild.dev · read 7 Oct 2026
Declaration files
Rslib supports generating TypeScript declaration files, and declaration generation is not enabled by default.lib.rsbuild.dev · read 7 Oct 2026
Development integrations
The documentation describes integrations with Storybook for component development, Rspress for documentation, Rstest for testing, and Rsdoctor for build analysis.lib.rsbuild.dev · read 7 Oct 2026
Documentation integration
Rslib can be used with Rspress to preview components and display API documentation from library sources and typings.lib.rsbuild.dev · read 7 Oct 2026
Frameworks
Rslib supports React, Vue, Svelte, and Solid component libraries through plugins.lib.rsbuild.dev · read 7 Oct 2026
Framework support
Rslib supports building component libraries for React, Vue, Svelte, and Solid through its framework integrations.lib.rsbuild.dev · read 7 Oct 2026
License
Rslib is free and open source software released under the MIT license.lib.rsbuild.dev · read 7 Oct 2026
Maker
The official site identifies ByteDance Inc. in its copyright notice.lib.rsbuild.dev · read 7 Oct 2026
Output formats
Rslib supports ESM, CJS, UMD, Module Federation, and IIFE output formats.lib.rsbuild.dev · read 7 Oct 2026
Performance
Rslib is powered by Rspack and integrates Rust-based tools including SWC and Lightning CSS.lib.rsbuild.dev · read 7 Oct 2026
Plugin integrations
Rslib supports Rsbuild plugins, Rspack plugins, and webpack plugins.lib.rsbuild.dev · read 7 Oct 2026
Purpose
Rslib is an Rsbuild-based tool for developing JavaScript libraries and UI component libraries.lib.rsbuild.dev · read 7 Oct 2026
Runtime requirement
Rslib v1 requires Node.js 20.19+ or 22.12+.lib.rsbuild.dev · read 7 Oct 2026
Runtimes
The quick-start guide lists Node.js, Deno, and Bun as supported JavaScript runtimes.lib.rsbuild.dev · read 7 Oct 2026

Alternatives to Rslib

Every alternative, ranked