zfb

Type to search...

to open search from anywhere

v0.1.0-next.15

v0.1.0-next.15

Released: 2026-05-29

Features

  • feat(islands): add React framework support to the islands pipeline (f663b19)

    Projects with framework: "react" in zfb.config can now hydrate React islands. The configured framework is threaded through the islands pipeline: the shared client bundle emits React mount glue (createElement + hydrateRoot/createRoot) instead of the hardcoded Preact glue, the SSR/main bundle defines process.env.NODE_ENV and (React-only) passes --conditions=worker and --main-fields=main,module so react-dom/server and main-only CJS deps (e.g. tabbable via @headlessui/react) resolve under --platform=neutral. The @takazudo/zfb SDK and @takazudo/zfb-runtime now mint all SSR-reachable elements (the Island wrapper, the ClientRouter head tags, and the MDX component overrides) through the per-project JSX runtime, so esbuild’s --jsx-import-source produces the right element shape for either framework instead of a Preact-only VNode literal (which React’s renderer rejected); the published type surface stays framework-agnostic. Preact remains the unchanged default.

Revision History