Skip to content

Commit d4a1b61

Browse files
ovflowdavivkeller
andcommitted
chore: add a changeset for the build memory work
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Aviv Keller <me@aviv.sh>
1 parent 524c6f8 commit d4a1b61

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.changeset/build-memory.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@doc-kit/core': minor
3+
'@doc-kit/generator-react': minor
4+
'@node-core/doc-kit-legacy': minor
5+
---
6+
7+
Builds take about half the memory and a third of the time (measured on the Node.js API docs): Shiki registers each language once code in it is highlighted, highlighted code reaches pages as static markup rather than a tree per token, `all.html` is rendered by the worker pool, HTML is no longer minified (serve it compressed instead), idle workers end after 250ms, and each worker's heap is limited to 512MB, which Node.js's `--max-old-space-size` raises. `@doc-kit/core/utils/html-minifier.mjs` is removed.

0 commit comments

Comments
 (0)