Skip to content

Commit

Permalink
Fix (console.ts): process?.env will not transform to env by transcomp…
Browse files Browse the repository at this point in the history
…iler
  • Loading branch information
s524797336 authored Dec 11, 2024
1 parent 76a72a9 commit e8fc013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utilities/shared-utils/src/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function warn(message: string, component?: string, ...args: any[]) {
if (warningStack[log]) return;
warningStack[log] = true;

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

0 comments on commit e8fc013

Please sign in to comment.