Goal
The core goal of Rsdoctor 2.0 is to consolidate the technology stack, focus on Rspack analysis, reduce dependency costs, optimize the package structure, and enhance analysis and execution capabilities in AI scenarios.
1. Remove Webpack Support
#1685
Goal: Focus on the Rspack ecosystem and reduce compatibility costs.
Main Work:
- Remove Webpack-related plugin logic, types, tests, and documentation.
- Reduce the maintenance cost caused by supporting two bundlers.
- Make Rsdoctor 2.0 focus on Rspack scenarios by default.
2. Dependency Optimization
Goal: Reduce installation size and dependency complexity, and minimize extra dependencies introduced when users install Rsdoctor.
Key Optimization Targets:
es-toolkit
arcon
@babel/code-frame
@rsbuild/plugin-check-syntax
- Other non-core dependencies
Main Work:
- Analyze whether these dependencies must be installed directly.
- Prefer on-demand dependencies, internal replacements, or lighter alternatives.
- Avoid polluting the main installation path with non-core features.
- Reduce lockfile complexity and installation time.
3. Package Restructuring
Goal: Merge Rsdoctor packages into a cleaner structure and reduce package count and internal dependency complexity.
Main Work:
- Consolidate foundational capability packages.
- Merge tightly coupled packages.
- Preserve core entry packages that users install directly.
- Clarify boundaries between core runtime, frontend report, CLI, plugins, and AI tools.
- Provide wrapper packages for old entries to ensure smooth migration.
- ESM only
Expected Benefits:
- Clearer package structure.
- Lower release and maintenance cost.
- Easier dependency analysis.
- Controllable migration risk for external users.
4. AI Capabilities
Goal: Evolve Rsdoctor 2.0 from a traditional performance analysis tool into an engineering analysis system that can be consumed and executed by AI.
4.1 Rsdoctor Agent CLI
Status: Completed.
Usage:
- Serve as the base entry for AI Agents to access Rsdoctor data.
- Support local diagnostics, data reading, and analysis task execution.
Main Capabilities:
- Read Rsdoctor analysis data.
- Support Agent-side querying, summarization, and diagnostics.
- Provide a foundation for future MCP, skills, actions, and other AI capabilities.
4.2 Performance Skills Support
Goal: Provide Rsdoctor performance-related skills so AI can perform performance diagnostics based on Rsdoctor data.
Main Work:
- Define performance analysis skills.
- Support diagnostics across bundle, module, chunk, loader, and plugin dimensions.
- Output actionable optimization suggestions.
- Integrate with Rsdoctor agent-cli.
4.3 Integration Between Rsdoctor Actions and AI
Status: Completed.
Goal: Integrate Rsdoctor actions into AI workflows, allowing AI not only to read reports but also to trigger analysis actions.
Main Capabilities:
- Execute specific diagnostic tasks through actions.
- Output diagnostic results in a structured format for AI.
- Support future automated analysis, issue localization, and fix suggestions.
Goal
The core goal of Rsdoctor 2.0 is to consolidate the technology stack, focus on Rspack analysis, reduce dependency costs, optimize the package structure, and enhance analysis and execution capabilities in AI scenarios.
1. Remove Webpack Support
#1685
Goal: Focus on the Rspack ecosystem and reduce compatibility costs.
Main Work:
2. Dependency Optimization
Goal: Reduce installation size and dependency complexity, and minimize extra dependencies introduced when users install Rsdoctor.
Key Optimization Targets:
es-toolkitarcon@babel/code-frame@rsbuild/plugin-check-syntaxMain Work:
3. Package Restructuring
Goal: Merge Rsdoctor packages into a cleaner structure and reduce package count and internal dependency complexity.
Main Work:
Expected Benefits:
4. AI Capabilities
Goal: Evolve Rsdoctor 2.0 from a traditional performance analysis tool into an engineering analysis system that can be consumed and executed by AI.
4.1 Rsdoctor Agent CLI
Status: Completed.
Usage:
Main Capabilities:
4.2 Performance Skills Support
Goal: Provide Rsdoctor performance-related skills so AI can perform performance diagnostics based on Rsdoctor data.
Main Work:
4.3 Integration Between Rsdoctor Actions and AI
Status: Completed.
Goal: Integrate Rsdoctor actions into AI workflows, allowing AI not only to read reports but also to trigger analysis actions.
Main Capabilities: