Skip to content

Commit

Permalink
Merge pull request #6 from vikiboss/fix/fix-break-in-node-and-process…
Browse files Browse the repository at this point in the history
…-not-found

fix: fix breakdown in node & `process` not found error
  • Loading branch information
ityuany authored Sep 11, 2023
2 parents 3495dc3 + b5e45e1 commit 38fe854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/reactive/src/devtool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface ConnectResponse {
error: (...args: any[]) => any;
}

const ext = window.__REDUX_DEVTOOLS_EXTENSION__;
const ext = globalThis.__REDUX_DEVTOOLS_EXTENSION__;

export function enableDevtool(
state: ReturnType<typeof proxy>,
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export type DeepExpandType<T> = {
[K in keyof T]: T[K] extends object ? DeepExpandType<T[K]> : T[K];
};

export const isProduction = process?.env?.NODE_ENV === "production";
export const isProduction = process.env.NODE_ENV === "production";

export const REACTIVE_STORE_CHANGED = "REACTIVE_STORE_CHANGED";

0 comments on commit 38fe854

Please sign in to comment.