Parent
#132
What to build
Move the FSE snapshot builder out of the build script and into a shared module, so it can later be called from the running app as well as from the command line.
The snapshot builder is the logic that queries WordPress for all FSE templates and template parts, formats their blocks without resolving dynamic data, inlines each template part into its parent template, and attaches Polylang translation variants alongside the default-language part.
This ticket is a prefactor with no behavioural change. The snapshot is still built at build time, still written to the same file, still statically imported by the template lookup. Only its location changes. It exists so the behavioural change that follows is a small, reviewable diff rather than code motion tangled with a caching change.
Acceptance criteria
Blocked by
None — can start immediately.
Parent
#132
What to build
Move the FSE snapshot builder out of the build script and into a shared module, so it can later be called from the running app as well as from the command line.
The snapshot builder is the logic that queries WordPress for all FSE templates and template parts, formats their blocks without resolving dynamic data, inlines each template part into its parent template, and attaches Polylang translation variants alongside the default-language part.
This ticket is a prefactor with no behavioural change. The snapshot is still built at build time, still written to the same file, still statically imported by the template lookup. Only its location changes. It exists so the behavioural change that follows is a small, reviewable diff rather than code motion tangled with a caching change.
Acceptance criteria
Blocked by
None — can start immediately.