Features
- The config knows the mode.
bongo devsetsNODE_ENVtodevelopment, andbongo buildsets it toproduction, before the config loads. A value that you set stays. See Dev or build. (#81) - Scripts know the mode. Scripts get
process.env.NODE_ENV,import.meta.env.DEV, andimport.meta.env.PROD. Inbongo dev, packages resolve with thedevelopmentcondition. See Script values. (#82) $build.definereplaces your own names in scripts. See Your own values. (#82)bongo/envtypesimport.meta.env. Add it to thetypesof yourtsconfig.json. (#82)- tsconfig
pathsaliases work in the config, data modules, and partials. (#84)
Fixes
- bongo no longer reads a
tsconfig.jsonabove the project folder, which can belong to another project. See Which tsconfig.json. (#83) - A build through a symlinked project path writes the same scripts as a build through the real path. (#85)
bongo/clientships its types. Before, its functions had no types outside this repository. (#86)- A new site from
create-bongopassestsc. The template installs@types/node, sets"types": ["bongo/env", "node"], and targets ES2024. (#82, #86)
Performance
$assets.renderis about 9× faster on a cold cache. resvg no longer loads every system font for each image, and it draws off the main thread. (#79)
Docs
- How to type custom
$sitefields. See Define custom$sitefields. (#80)