content.update()
Upsert a single parsed file into the manifest and cache.
content.update(source, file)
Upserts a single parsed file into the manifest and cache without re-reading the source, then emits the file:upsert hook. Used for surgical updates such as forwarding an HMR change.
Parameters:
source: the source name.file: aContentFileto insert or replace.
Returns: Promise<void>
Usage
usage.ts
await content.update('default', file)