Rspack
Deploy your Rspack applications to Zephyr Cloud with blazing-fast Rust-based bundling and Module Federation support. The Zephyr Rspack plugin integrates seamlessly with Rspack's high-performance build process.
- Finished our Prerequisites setup guide
- Installed our Chrome extension
This detects your bundler and configures Zephyr automatically. Learn more →
For manual setup, continue below.
Installation
Install the Rspack plugin in your project:
Quick Start
To add Zephyr to an Rspack application, wrap the entire Rspack configuration with the withZephyr function.
Module Federation
Zephyr has first party support for Module Federation. You don't need to do any additional configuration to enable Module Federation in Zephyr.
Zephyr will hook into the bundling process and modify the remote resolution to point to the Zephyr Cloud deployments.
Host Application
Remote Application
Package.json Scripts
Add these scripts to your package.json:
Advanced Configuration
Environment-Specific Builds
Custom Optimization
Development Server
Rspack provides a fast development server with hot reloading:
Dev Server Configuration
Features
- 🚀 Blazing-fast builds with Rust-based bundling
- 🏗️ Full Module Federation support with enhanced features
- 📦 Asset optimization and intelligent caching
- 🔧 Zero-config setup for simple applications
- 📊 Build analytics and deployment monitoring
- 🌐 Global CDN distribution for optimal performance
- ⚡ Hot module replacement in development
- 💾 Built-in SWC for ultra-fast transpilation
- 🔗 Webpack compatibility for easy migration
Requirements
- Rspack 0.3 or higher
- Node.js 18 or higher
- Zephyr Cloud account (sign up here)
Common Issues
Module Federation Setup
For enhanced Module Federation features:
Performance Optimization
For optimal build performance:
Next Steps
Related Documentation
Module Federation:
- Module Federation Guide - Complete guide to micro-frontends
- Create MF App Tutorial - Step-by-step module federation setup
- Remote Dependencies - Advanced dependency resolution
Integration Guides:
- React + Rspack - React with Rspack integration
- React + Rspack + Nx - Monorepo setup with Nx
- Multi-bundler Setup - Using multiple bundlers together
- Existing App Integration - Add Zephyr to existing applications
Other Bundlers:
- Rsbuild - Higher-level tool built on Rspack
- Webpack - Original bundler with wide ecosystem
- Vite - Lightning-fast development with native ESM
Features:
- Versions - Understanding version management
- Tags & Environments - Deployment strategies
- CI/CD Integration - Automated deployments