function
devUrlFor
export function devUrlFor(id) { ... }The URL a NUL-prefixed module is served at in development.
API reference
Vite, driven by uf.config.js: every Flow module through `uf transform`, MDX, the file-system router and static rendering as Vite plugins.
Written from the source by uf doc when this site was built: the signature and the comment above each export, grouped by the specifier a program imports it from.
@uniflowed/vitefunction
devUrlForexport function devUrlFor(id) { ... }The URL a NUL-prefixed module is served at in development.
function
defaultexport default function uniflowed(options = {}) { ... }uf's Vite plugins.
@uniflowed/vite/driver@uniflowed/vite/mergefunction
mergeConfigexport function mergeConfig(base, overrides) { ... }Deep-merge overrides onto base.
Plain objects merge key by key; arrays and everything else replace, which is what a caller setting build.rollupOptions.input means. plugins is the exception and is handled by the caller, because concatenating is right there and replacing is right everywhere else.
function
withProjectConfigexport function withProjectConfig(generated, overrides) { ... }uf's generated config, with the project's Vite config merged over it.