Auto-include deps and signals spec modules with HTML adapter
The Python bootstrapper now auto-includes deps (component analysis) and signals (reactive islands) when the HTML adapter is present, matching production requirements where sx_ref.py must export compute_all_deps, transitive_deps, page_render_plan, etc. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1051,10 +1051,13 @@ def compile_ref_to_py(
|
||||
if sm not in SPEC_MODULES:
|
||||
raise ValueError(f"Unknown spec module: {sm!r}. Valid: {', '.join(SPEC_MODULES)}")
|
||||
spec_mod_set.add(sm)
|
||||
# html adapter needs deps (component analysis) and signals (island rendering)
|
||||
if "html" in adapter_set:
|
||||
if "deps" in SPEC_MODULES:
|
||||
spec_mod_set.add("deps")
|
||||
if "signals" in SPEC_MODULES:
|
||||
spec_mod_set.add("signals")
|
||||
has_deps = "deps" in spec_mod_set
|
||||
# html adapter uses signal runtime for server-side island rendering
|
||||
if "html" in adapter_set and "signals" in SPEC_MODULES:
|
||||
spec_mod_set.add("signals")
|
||||
|
||||
# Core files always included, then selected adapters, then spec modules
|
||||
sx_files = [
|
||||
|
||||
Reference in New Issue
Block a user