This project implements a development server for Cypress using Rspack as the bundler. Here's a comprehensive breakdown of its architecture and components:
- Development server specifically designed for Cypress component testing
- Uses Rspack (Rust-based bundler) as a faster alternative to Webpack
-
devServer.ts
- Main entry point
- Handles server creation and configuration
- Supports multiple frameworks
- Provides flexible configuration system
-
makeRspackConfig.ts
- Manages Rspack configuration generation
- Handles custom plugin management
- Merges configurations with user settings
- Addresses Cypress-specific requirements
-
CypressCTRspackPlugin.ts
- Custom Rspack plugin for Cypress Component Testing
-
createRspackDevServer.ts
- Manages dev server instance creation and setup
- Framework-agnostic design
- Smart configuration merging
- Built-in optimization
- Debug support through 'debug' library