feat: Add WASM-optimized ShadCN UI package

🚀 New Features:
- Add leptos-shadcn-ui-wasm package with minimal dependencies
- 10 core components optimized for WebAssembly
- Feature flags for granular bundle control
- WASM-specific utilities and helpers

🔧 Technical Improvements:
- Fix WASM compatibility issues in test-utils package
- Add conditional compilation for native vs WASM targets
- Update contract-testing package for WASM compatibility
- Add comprehensive WASM demo application

📦 Bundle Optimization:
- 70% reduction in dependencies (150+ → 25)
- WASM-compatible only dependencies
- Gzipped bundle size: ~813KB for full demo

📚 Documentation:
- Complete README with examples and migration guide
- Bundle size comparisons and performance metrics
- Comprehensive remediation plan and design docs

 Testing:
- All packages compile for wasm32-unknown-unknown
- Feature flags work correctly
- Demo builds and runs successfully
- Backward compatibility maintained
This commit is contained in:
Peter Hanssens
2025-09-21 19:12:37 +10:00
parent 62df49554a
commit 2b99fcc315
16 changed files with 3177 additions and 11 deletions

View File

@@ -26,9 +26,11 @@ members = [
"packages/tailwind-rs-core", # Tailwind CSS core utilities
"packages/tailwind-rs-core-macros", # Tailwind CSS macros
"packages/leptos-shadcn-ui", # Re-added for final publishing
"packages/leptos-shadcn-ui-wasm", # WASM-optimized version with minimal dependencies
"performance-audit", # Performance audit system
"leptos_v0_8_test_app", # Leptos v0.8 compatibility test app
"examples/leptos", # WASM demo application
"wasm-demo", # Dedicated WASM demo for leptos-shadcn-ui-wasm
# Basic components (no internal dependencies)
"packages/leptos/button",