Plugins
This section covers the internal design and applied recipes for the four Eleventy plugins the preset bundles. It stays on the "why we built it this way" and "how it actually runs" side; day-to-day writing conventions live in Preset Conventions.
The four plugins
@tuqulore-inc/eleventy-plugin-preact: registers.jsxand.mdxas Eleventy template formats and renders them with Preact on the server.@tuqulore-inc/eleventy-plugin-preact-island: drives Partial Hydration, bundling.client.*with esbuild and hydrating with<is-land>.@tuqulore-inc/eleventy-plugin-postcss: registers CSS as an Eleventy template format so PostCSS plugins (Tailwind CSS and friends) run inside the same pipeline.@tuqulore-inc/eleventy-collections: derives build-time validation and the types ofeleventy.collectionsfrom schemas placed in collection directories.
Each of these is installable on its own; the preset just composes them.
API reference and extending
- Options and exported functions per plugin are in the corresponding package README.
- To add another Eleventy plugin (RSS, syntax highlight, …) on top of the preset, pass an
extendfunction topreset()and calleleventyConfig.addPlugin. See the@tuqulore-inc/eleventy-presetREADME for details.