This example demonstrates how to use Zephyr with Rspack to consume federated modules.
- Module Federation with Zephyr integration
- React component consumption from remote provider
- Rspack bundler configuration
# Install dependencies
npm install
# Start the development server
npm run devThe example uses the withZephyr plugin from zephyr-rspack-plugin to enhance the Rspack configuration:
const { withZephyr } = require('zephyr-rspack-plugin');
module.exports = withZephyr()({
// ...rspack config with remotes
});This integration enables improved module federation consumption capabilities with the performance benefits of Rspack and Zephyr platform services.