Extracts reactive state and functions from <script setup> blocks.
Parses the script with OXC AST and extracts declarations for the
PhoenixVapor.Runtime (persistent QuickBEAM + Vue reactivity):
ref(value)→ initial expression passed toRuntime's reactive contextcomputed(() => expr)→ expression body, auto-wired with.valueaccessdefineProps([...])→ maps directly to LiveView assigns- Functions → bodies extracted for execution in
with(scope)context
Summary
Functions
Evaluate computed expressions against current assigns.
Evaluate initial state from refs using QuickBEAM.
Parse a <script setup> block and extract initial state + event handlers.
Functions
Evaluate computed expressions against current assigns.
Evaluate initial state from refs using QuickBEAM.
Converts ref(0) → %{count: 0}, etc.
Parse a <script setup> block and extract initial state + event handlers.
Returns {initial_assigns, computed_exprs, event_handlers}.