Skip to content

Commit eeac59a

Browse files
authored
fix: import crash under node.js (#261)
1 parent f8c5da4 commit eeac59a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 9.3.1 (2024-4-21)
4+
5+
* **fix**: Fix import crash under node.js
6+
37
## 9.3.0 (2024-2-24)
48

59
* **fix**: Added extra check for undefined values. #260

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "perfume.js",
3-
"version": "9.3.0",
3+
"version": "9.3.1",
44
"description": "Web performance library for measuring all User-centric performance metrics, including the latest Web Vitals.",
55
"keywords": [
66
"performance",

Diff for: src/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Have private variable outside the class,
22
// helps drastically reduce the library size
3-
export const W = window;
3+
export const W = globalThis;
44
export const C = W.console;
55
export const WN = W.navigator;
66
export const WP = W.performance;

0 commit comments

Comments
 (0)