v0.41.3 · A fresh scaffold works
A project made with create-refrakt builds with no errors, and the HTML starter runs the plugins it is configured with. Building plan content no longer slows down with the length of the repository's git history, and a sandbox receives the design tokens the pipeline injects.
Changes
- Building plan content no longer slows down with the length of the repository's git history (BUG-043). History extraction now runs one
git logover the plan directory and onegit cat-file --batchfor file contents, where it used to start onegit log --followper file and onegit showper commit and file. In this repository that is 7 git processes instead of about 5,200, and the plan site builds in about 8 seconds instead of about 170 on a full-history clone. Renames inside the plan directory now carry the whole history to the new path, so a renamed entity's timeline includes the commits before its rename. The pipeline also runs git from the plan directory instead of the process's working directory, and content timestamps now walk only the commits that touched the content directory. - A freshly scaffolded project now builds with no errors. The SvelteKit, Astro, Eleventy, Next and Nuxt starters linked their nav item to
getting-startedinstead ofdocs/getting-started, so every page reported an unresolved nav slug (BUG-035). The HTML starter'sbuild.tsnow passes the configured plugins toloadContent, along withprojectRootand the site config, so plugin pipeline hooks and declarativeregistersrun and the cross-page features that depend on them are no longer empty (BUG-036). Itstsconfig.jsonnow uses"module": "ESNext", sotscaccepts theimport(..., { with: { type: "json" } })inbuild.ts. - Design tokens now reach the sandbox iframe (BUG-034). The design plugin, and the editor preview, put a sandbox's
design-contexttokens in a child<meta data-field="design-tokens">that therf-sandboxbehaviour never read, so the iframe always got no tokens. They now setdata-design-tokenson therf-sandboxelement, which is where the behaviour reads them. This is a visible change: on a site with a defaultdesign-context, every sandbox now renders with that context's fonts, colours and spacing variables, and a Tailwind sandbox gets its theme config.