From 24ec85a81e39c2f3ca4d1f1941fe63feeb9b42e8 Mon Sep 17 00:00:00 2001 From: Max <49813241+Max10240@users.noreply.github.com> Date: Thu, 15 Jun 2023 21:49:36 +0800 Subject: [PATCH] fix: import `performance` from `perf_hooks` (fix #3578) (#3579) Co-authored-by: wangbaolong.wbl --- packages/vitest/src/runtime/child.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vitest/src/runtime/child.ts b/packages/vitest/src/runtime/child.ts index 7e606f7f4a45..6d3705b56cbc 100644 --- a/packages/vitest/src/runtime/child.ts +++ b/packages/vitest/src/runtime/child.ts @@ -1,3 +1,4 @@ +import { performance } from 'node:perf_hooks' import v8 from 'node:v8' import { createBirpc } from 'birpc' import { parseRegexp } from '@vitest/utils'