Skip to content

Commit 77206bc

Browse files
fix(shared-utils): process?.env will not transform to env by transcompiler (#4327)
* Fix (console.ts): process?.env will not transform to env by transcompiler * chore(changeset): add changeset --------- Co-authored-by: WK Wong <[email protected]>
1 parent 2fb6efa commit 77206bc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/clever-teachers-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nextui-org/shared-utils": patch
3+
---
4+
5+
fix process is not defined

packages/utilities/shared-utils/src/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function warn(message: string, component?: string, ...args: any[]) {
88
if (warningStack[log]) return;
99
warningStack[log] = true;
1010

11-
if (process?.env?.NODE_ENV !== "production") {
11+
if (process.env.NODE_ENV !== "production") {
1212
// eslint-disable-next-line no-console
1313
return console.warn(log, args);
1414
}

0 commit comments

Comments
 (0)