You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8e8c749
Browse filesBrowse the repository at this point in the historyBrowse files
perf: let jsx-ast and html start on their dependency's first chunk
With more than one thread, jsx-ast builds pages as their entries arrive
and html compiles, bundles and renders them as it receives them, so
page building and rendering overlap with the generators before them.
The generated files are unchanged.
jsx-ast yields its pages in the order their entries arrived, and once
every page has, a { manifest } item with all their heads in that order.
html compiles each page as it comes, bundles the component library and
the client assets as soon as the manifest does, and has the workers
render the pages as they are compiled. To list the pages as the site
does, headingSortFn is now exported. Bundler adapters' compile can now
run before and alongside buildServer and buildClient.
createChannel is the queue html hands its compiled pages to the workers
on, and merge yields from several async iterables as items arrive: jsx-ast
announces the manifest next to its pages with it.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Sonnet 5.5 <noreply@anthropic.com>
`jsx-ast` and `html` stream their input: with more than one thread, page building and rendering overlap with the generators before them. `html` bundles as soon as every page's metadata is known, and renders pages as they are built. Streaming leaves the generated files unchanged, but `jsx-ast` now yields pages in the order their entries arrive, not the order the site lists them, and, once every page has arrived, a `{ manifest }` item listing their heads in that order. To list the pages as the site does, skip the `{ manifest }` item and sort them with `headingSortFn`, now exported from `@doc-kit/generator-react/jsx-ast/utils/getSortedHeadNodes`, as `pages.toSorted((a, b) => headingSortFn(a.data, b.data))`, keeping the synthetic pages (`data.synthetic`) last. Bundler adapters' `compile` can now be called before and while `buildServer` and `buildClient` run. `createChannel` and `merge`, from `@doc-kit/core/utils`, are the queue and the merge of async iterables they are built on.
0 commit comments