Skip to content

web-infra-dev/rslib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Rslib Banner

Rslib

Discord channel npm version downloads node version license

English | ็ฎ€ไฝ“ไธญๆ–‡

Rslib is a library development tool that leverages the well-designed configurations and plugins of Rsbuild, empowering library developers to take advantage of the extensive knowledge and ecosystem of webpack and Rspack.

Rslib aims to provide library developers with:

  • Easy Library Creation: Easily create high-quality JavaScript and TypeScript libraries in a simple and intuitive way.
  • Simple Build Configuration: Provides out-of-the-box build capabilities to meet the diverse needs of library development scenarios with simple configurations.
  • Comprehensive Development Workflow: Contains best practices for building, debugging, documentation, and testing during library development to help improve development efficiency and experience.

๐Ÿ”ฅ Features

Rslib has the following features:

  • Compilation of diverse languages: TypeScript, JSX, Sass, Less, CSS Modules, Wasm, and more.
  • Flexible build modes: Bundle and bundleless options to meet varying needs.
  • Multiple output formats: ESM, CJS, and UMD for maximum compatibility.
  • Declaration file generation: Including isolated declarations.
  • Advanced features: Module Federation, asset compression, PostCSS, Lightning CSS, and more.

๐ŸŽฏ Ecosystem

Rslib is implemented based on Rsbuild and fully reuses the capabilities and ecosystem of Rsbuild.

The following diagram illustrates the relationship between Rslib and other tools in the ecosystem:

Rspack stack layers

๐Ÿ“š Getting started

To get started with Rslib, see the Quick Start.

๐Ÿฆ€ Links

๐Ÿค Contribution

Note

We highly value any contributions to Rslib!

Please read the Contributing Guide.

Contributors

Code of conduct

This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of Conduct for more details.

๐Ÿง‘โ€๐Ÿ’ป Community

Come and chat with us on Discord! The Rstack team and users are active there, and we're always looking for contributions.

๐ŸŒŸ Quality

Rslib uses Web Infra QoS to observe the trend of key metrics, such as bundle size, compile speed and install size.

๐Ÿ™ Credits

Some of the implementations of Rslib have drawn inspiration from outstanding projects in the community. We would like to express our gratitude to them:

This Rslib website is powered by Netlify.

๐Ÿ“– License

Rslib is licensed under the MIT License.