fix: support for NodeJS 15, fixes #732

This commit is contained in:
Yang Jun
2024-08-16 23:40:48 +08:00
committed by Jun Yang
parent 22ba21d63f
commit 4548c11406
7 changed files with 48 additions and 16 deletions
-5
View File
@@ -1,5 +0,0 @@
const polyfill = {
now: () => Date.now()
}
export const performance = typeof window === 'object' && window.performance || polyfill