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"inzfb.configcan 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 definesprocess.env.NODE_ENVand (React-only) passes--conditions=workerand--main-fields=main,modulesoreact-dom/serverand main-only CJS deps (e.g.tabbablevia@headlessui/react) resolve under--platform=neutral. The@takazudo/zfbSDK and@takazudo/zfb-runtimenow mint all SSR-reachable elements (theIslandwrapper, theClientRouterhead tags, and the MDX component overrides) through the per-project JSX runtime, so esbuild’s--jsx-import-sourceproduces 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.