Skip to content

Commit b81ecb4

Browse files
authored
fix: remove pure from globals (#200)
1 parent 4f35ef8 commit b81ecb4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/small-drinks-sip.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"runed": patch
3+
---
4+
5+
fix: remove `PURE` from global exports

packages/runed/src/lib/internal/configurable-globals.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type ConfigurableLocation = {
2828
location?: Location;
2929
};
3030

31-
export const defaultWindow = /* #__PURE__ */ BROWSER ? window : undefined;
32-
export const defaultDocument = /* #__PURE__ */ BROWSER ? window.document : undefined;
33-
export const defaultNavigator = /* #__PURE__ */ BROWSER ? window.navigator : undefined;
34-
export const defaultLocation = /* #__PURE__ */ BROWSER ? window.location : undefined;
31+
export const defaultWindow = BROWSER ? window : undefined;
32+
export const defaultDocument = BROWSER ? window.document : undefined;
33+
export const defaultNavigator = BROWSER ? window.navigator : undefined;
34+
export const defaultLocation = BROWSER ? window.location : undefined;

0 commit comments

Comments
 (0)