How dwlad90/stylex-swc-plugin works
Main Components
a. Core Components:
• StyleX RS Compiler (NAPI-RS based)
• Shared Rust Codebase
• Path Resolver
b. Integration Layer:
• Next.js Plugin
• Webpack Plugin
• Rollup Plugin
• Unplugin (multi-build tool support)
• PostCSS Plugin
c. Build Tool Support:
• Farm
• Rollup
• Rsbuild
• Rspack
• Solid
• Vite
• Vue
• Webpack
[Core Layer (Rust)]
• ↑
[Shared Components]
• ↑
[Integration Layer]
• ↑
[Build Tools Layer]
Component Relationships
• Data flow from Core Layer through Integration Layer to Build Tools
• Dependencies between components
• Plugin interactions with build systems
Specific Implementation Details
a. Core Layer:
[StyleX RS Compiler (NAPI-RS)] ←→ [Shared Rust Codebase]
• ↑
[Path Resolver Utilities]
b. Integration Layer:
[Next.js Plugin] [Webpack Plugin] [Rollup Plugin] [Unplugin] [PostCSS Plugin]
• ↑
• [Core Components]
c. Build Tools Layer:
[Farm] [Rollup] [Rsbuild] [Rspack] [Solid] [Vite] [Vue] [Webpack]
• ↑
• [Integration Plugins]
Additional Elements
Include:
• Version information
• Configuration flow paths
Notes for Implementation
• Version badges where relevant
• Deprecated components clearly
┌─ Build Tools ─────────────────────┐
• [Various Build Tool Integrations] │
• Integration Layer ───────────────┤
• [Plugin Implementations] │
• Shared Components ──────────────┤
• [Common Utilities and Code] │
• Core Layer ────────────────────┤
• [Rust Implementation] │
• ┘
Remember to include a note about the deprecated packages and their replacements, as mentioned in the README, using a distinct visual style to indicate their deprecated status.