#rules_prerender
#rules_prerender tries to go a step further with partial prerendering at build time (reducing rendering work on the server) and driving *bundling* by what gets rendered, not just how resources are loaded on the client. We can eagerly load all required JS and CSS up front.

github.com/dgp1130/rule...
GitHub - dgp1130/rules_prerender: A Bazel rule set for prerending HTML pages.
A Bazel rule set for prerending HTML pages. Contribute to dgp1130/rules_prerender development by creating an account on GitHub.
github.com
April 11, 2026 at 5:49 PM
A lot of the core ideas here are stuff I've been trying to formalize in #HydroActive and #rules_prerender. Islands of reactivity on a mostly static page and driving resource loading by what gets rendered are both key features most FE systems lack.
April 11, 2026 at 5:49 PM
This change also has a side benefit of giving you full control over the `ts_project` which compiles your prerendering logic. No more awkward wrapping in rules_prerender, much cleaner!
July 23, 2023 at 6:19 PM
Just landed a major update to rules_prerender yesterday. I redesigned the core component API to better express dependencies between different "slices" of a component.

https://github.com/dgp1130/rules_prerender/issues/40
Client script and style-only dependencies drop related resources · Issue #40 · dgp1130/rules_prere...
On mobile, so I'll need to elaborate more later. But I'm pretty sure that when a prerender_component() depends on another prerender_component() but only uses client side scripts or styles (no prere...
github.com
July 23, 2023 at 6:16 PM