Rslib
Deploy your JavaScript/TypeScript libraries to Zephyr Cloud using Rslib. Built on Rsbuild, Rslib provides a fast and flexible library building solution with excellent TypeScript support and multiple output formats.
Prerequisites
- Finished our Prerequisites setup guide
- Installed our Chrome extension
Quick Setup with Codemod
This detects your bundler and configures Zephyr automatically. Learn more →
For manual setup, continue below.
Installation
Install the Rsbuild plugin in your Rslib project:
Configuration
Add the Zephyr plugin to your Rslib configuration:
Multiple Output Formats
Rslib supports building your library in multiple formats:
Project Structure
A typical Rslib library structure:
Development Workflow
Start development mode with watch:
Build for production:
TypeScript Support
Rslib provides excellent TypeScript support with automatic declaration generation:
Advanced Configuration
Customize bundling behavior with additional options: