Milestone: Can AI-generated Angular platforms render in-browser in Vitt...
Documentation for Sessions
π Milestone: Can AI-generated Angular platforms render in-browser in Vitt...
Date: 2026-03-16
Time: 03:38:21 UTC
Session: gspace1-224.9
Agent: angular
Confidence: 95%
Status: β
Documented
π Decision Context
Question:
Can AI-generated Angular platforms render in-browser in Vitto Studio's Live Preview?
Task: Render AI-generated Angular platform in Vitto Studio Live Preview
π― Decision Made
Chosen:
YES β Full pipeline operational. 61 source files from vitto-uni-test-1 GitLab repo (2 modules: match-center + club-members) compile in 1.9s via rspack WASM in Web Worker, produce 10 code-split assets, served by Preview Service Worker, Angular JIT bootstraps with navigation shell showing both module routes.
Options Considered:
- Server-side compilation (rejected β adds latency, infrastructure cost)
- esbuild-wasm (rejected β no decorator support)
- Skip Angular, render raw HTML (rejected β not framework-native)
π Reasoning
This session (S224.6-S224.21, 16 commits) solved every blocker in the pipeline: (1) rspack WASM moved to Web Worker for Atomics.wait support, (2) windowβglobalThis patch for worker compat, (3) DomSanitizer for iframe URL trust, (4) @angular/compiler pre-loaded in HTML before main.js for JIT static initializer ordering, (5) GitProviderController created on backend-api for VFS module loading, (6) auth guards stripped from routes for preview mode, (7) broken lib/ import paths fixed, (8) SCSS flattened, templateUrl/styleUrl inlined, app shell synthesized with correct category-aware import paths. The compiled preview shows a dark-themed navigation bar with Club Members and Match Center links β the actual AI-generated platform modules rendering via Angular JIT in an iframe.
π Files Involved
apps/gograb-space/src/rspack-compiler.worker.jsapps/gograb-space/src/preview-sw.jslibs/libs-structural/platform-preview/src/lib/services/bundler.service.tslibs/libs-structural/platform-preview/src/lib/services/bundler-filesystem.service.tslibs/libs-structural/vitto-studio/src/lib/services/preview.service.tstools/scripts/build/bundle-rspack-browser.ts
π Related
- Decision ID:
dev_1773632301404_bc13te9 - Session: 224
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation