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.
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.
🙏 Credits
Parts of Rslib are derived from or inspired by many excellent open source projects. We sincerely appreciate the work of these projects and the ideas they have shared with the community:
Rslib
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:
🔥 Features
Rslib has the following features:
📚 Documentation
🎯 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:
📚 Getting started
To get started with Rslib, see the Quick start.
🦀 Rstack
Rstack is a unified JavaScript toolchain centered on Rspack, with high performance and consistent architecture.
🔗 Links
🤝 Contribution
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.
🙏 Credits
Parts of Rslib are derived from or inspired by many excellent open source projects. We sincerely appreciate the work of these projects and the ideas they have shared with the community:
📖 License
Rslib is licensed under the MIT License.