Skip to content

Commit 8ffe5da

Browse files
authored
docs: add introduction and features doc (#320)
1 parent 6d74e88 commit 8ffe5da

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
<a href="https://github.com/web-infra-dev/rslib/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=F8F5FF" alt="license" /></a>
1313
</p>
1414

15-
Rslib is a library build tool powered by [Rsbuild](https://rsbuild.dev). It allows library developers to leverage the knowledge and ecosystem of webpack and Rspack. Rslib is built on top of Rsbuild's excellent configurations and plugins, providing optimal ESM and CJS output.
15+
Rslib is a library build tool that leverages the well-designed configurations and plugins of [Rsbuild](https://rsbuild.dev), empowering library developers to take advantage of the extensive knowledge and ecosystem of webpack and Rspack.
1616

17-
Rslib provides out-of-the-box configurations for library development, including compilation of TypeScript, JSX, Sass, Less, CSS Modules, and Wasm. It supports bundleless output, DTS generation (including isolated declarations), Module Federation, assets compression, type checking, PostCSS, and Lightning CSS.
17+
Rslib provides a comprehensive set of build features for library development, including:
18+
19+
- **Compilation of diverse languages**: TypeScript, JSX, Sass, Less, CSS Modules, Wasm, and more.
20+
- **Flexible build modes**: Bundle and bundleless options to meet varying needs.
21+
- **Multiple output formats**: ESM, CJS, and UMD for maximum compatibility.
22+
- **Declaration file generation**: Including isolated declarations.
23+
- **Advanced features**: Module Federation, asset compression, PostCSS, Lightning CSS, and more.
1824

1925
## ✨ Why Rslib?
2026

website/docs/en/guide/start/index.mdx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
# Introduction
22

3+
Rslib is a library build tool that leverages the well-designed configurations and plugins of [Rsbuild](https://rsbuild.dev), empowering library developers to take advantage of the extensive knowledge and ecosystem of webpack and Rspack.
4+
5+
Rslib provides a comprehensive set of build features for library development, including:
6+
7+
- **Compilation of diverse languages**: TypeScript, JSX, Sass, Less, CSS Modules, Wasm, and more.
8+
- **Flexible build modes**: Bundle and bundleless options to meet varying needs.
9+
- **Multiple output formats**: ESM, CJS, and UMD for maximum compatibility.
10+
- **Declaration file generation**: Including isolated declarations.
11+
- **Advanced features**: Module Federation, asset compression, PostCSS, Lightning CSS, and more.
12+
313
## 🔥 Features
414

15+
Rslib has the following features:
16+
17+
- **Easy to Configure**: Rslib aims to simplify library development by offering ready-to-use build capabilities, enabling developers to kickstart their library projects with minimal configuration.
18+
19+
- **Performance Oriented**: Rslib integrates high-performance Rust-based tools from the community, including Rspack, SWC and Lightning CSS, to deliver first-class build speed and development experience.
20+
21+
- **Plugin Ecosystem**: Powered by Rsbuild, Rslib benefits from a lightweight plugin system and a collection of high-quality official plugins. Furthermore, Rsbuild's compatibility with most webpack plugins and all Rspack plugins allows library developers to seamlessly integrate existing community or in-house plugins into their library projects.
22+
523
## 🎯 Ecosystem
624

725
Rslib is implemented based on Rsbuild and fully reuses the capabilities and ecology of Rsbuild.
826

9-
The following diagram illustrates the relationship between Rsbuild and other tools in the ecosystem:
27+
The following diagram illustrates the relationship between Rslib and other tools in the ecosystem:
1028

1129
![Rspack stack layers](https://assets.rspack.dev/rsbuild/assets/rspack-stack-layers.png)
1230

0 commit comments

Comments
 (0)