fix: satisfy note-open perf build checks

This commit is contained in:
lucaronin
2026-04-19 19:34:05 +02:00
parent 977f5593fa
commit 0d552e1370

View File

@@ -15,7 +15,7 @@ interface NoteOpenTrace {
const inFlightNoteOpens = new Map<string, NoteOpenTrace>()
function isVitestRuntime(): boolean {
return typeof process !== 'undefined' && process.env.VITEST === 'true'
return '__vitest_worker__' in globalThis
}
function canMeasurePerformance(): boolean {