Skip to content

Commit

Permalink
fix: remove pure from globals (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Jan 3, 2025
1 parent 4f35ef8 commit b81ecb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-drinks-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"runed": patch
---

fix: remove `PURE` from global exports
8 changes: 4 additions & 4 deletions packages/runed/src/lib/internal/configurable-globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type ConfigurableLocation = {
location?: Location;
};

export const defaultWindow = /* #__PURE__ */ BROWSER ? window : undefined;
export const defaultDocument = /* #__PURE__ */ BROWSER ? window.document : undefined;
export const defaultNavigator = /* #__PURE__ */ BROWSER ? window.navigator : undefined;
export const defaultLocation = /* #__PURE__ */ BROWSER ? window.location : undefined;
export const defaultWindow = BROWSER ? window : undefined;
export const defaultDocument = BROWSER ? window.document : undefined;
export const defaultNavigator = BROWSER ? window.navigator : undefined;
export const defaultLocation = BROWSER ? window.location : undefined;

0 comments on commit b81ecb4

Please sign in to comment.