|
1 | 1 | # Introduction |
2 | 2 |
|
| 3 | +Rslib is a library build tool that leverages the excellent configurations and plugins of Rsbuild, 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](/guide/start/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 suit your 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 | + |
3 | 13 | ## 🔥 Features |
4 | 14 |
|
| 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 | + |
5 | 23 | ## 🎯 Ecosystem |
6 | 24 |
|
7 | 25 | Rslib is implemented based on Rsbuild and fully reuses the capabilities and ecology of Rsbuild. |
8 | 26 |
|
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: |
10 | 28 |
|
11 | 29 |  |
12 | 30 |
|
|
0 commit comments