Persistent on-disk cache of the most recent successful esbuild metafile,
used by --changed / --since to compute the reverse-dependency graph
without re-running esbuild. Lives under node_modules/.cache/ (npm convention,
gitignored, survives rm -rf tmp/).
The wrapper format records the absolute cwd at write time so the reader can resolve metafile-relative paths the same way esbuild would, regardless of where qunitx is invoked from on the next run.
import * as MetafileCache from './metafile-cache.ts'; const payload: MetafileCache.MetafileCachePayload = { esbuildCwd: '/proj', metafile: { inputs: { 'test/a-test.ts': { imports: [{ path: 'lib/util.ts' }] } } }, };
esbuildCwd: string
process.cwd() at the moment the metafile was produced; metafile paths are relative to it.
The raw esbuild metafile this cache represents.