Architecture: How should Vitto Studio render AI-generated Angular platform...

Documentation for Sessions

🏗️ Architecture: How should Vitto Studio render AI-generated Angular platform...

Date: 2026-03-15
Time: 00:26:07 UTC
Session: gspace1-224.3
Agent: angular
Confidence: 90%
Status: ✅ Documented


📋 Decision Context

Question:

How should Vitto Studio render AI-generated Angular platforms in the Live Preview?

Task: Fix vitto-studio platform rendering and initialization


🎯 Decision Made

Chosen:

ESM SDK + rspack WASM + browser import maps. Pre-build 39 shared NX libraries to ESM bundles using esbuild (0.7s build), resolve via browser-native import maps in preview iframe. rspack compiles ONLY module code in-browser. Synthesized app shell wraps modules.

Options Considered:

  1. WebContainers (StackBlitz)
  2. Cloud MicroVMs (Lovable-style)
  3. Module Federation (webpack)
  4. ESM SDK + import maps (selected)
  5. Source compilation in rspack (all libs in memfs)

💭 Reasoning

WebContainers eliminated (memory ceiling for 238+ lib monorepo, commercial license). Cloud MicroVMs rejected as primary (network latency per change). Module Federation rejected (webpack dependency, overkill). ESM + import maps is browser-native, zero per-session cost, CDN-cacheable, and faster than Lovable (no VM boot). The key insight: generated platforms are for deployment, preview is synthesized.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation