createAssetManifest
import { createAssetManifest } from "@pitlane/assets/build";function createAssetManifest(build): BuildAssetsManifest;Converts a bundler's normalized output into the manifest
createAssetResolver reads.
It walks each environment's static chunk graph to record every source
module's stylesheets (a dependency's before its importer's) and, in the
client environment, its modulepreload URLs (its chunk first, then
dependencies shallowest first). A server environment's modules get empty
preloads, because browsers never load a server's chunks.
Dynamic imports are validated and never followed. It reads no files,
invents no edges, and generates no import map; serverEnvironment is left
for the integration to set per server.
Parameters
build
Returns
Throws
When there is not exactly one client environment, an edge or entry names a missing chunk, a chunk lacks one of its lists, a server environment lists entries, a source key is an absolute file URL, or one source key maps to two URLs.