Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 86cf54a

Browse files
committed
fixed typo
1 parent 9de3ba1 commit 86cf54a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/logCodeManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const niceLogCodeMessages = {
166166
// Note: Not outsource the 'production' env check,
167167
// because then webpack can't treeshake based on the current env
168168
const logCodeMessages: typeof niceLogCodeMessages =
169-
typeof process === 'object' && process.env.NODE_ENV === 'development'
169+
typeof process === 'object' && process.env.NODE_ENV !== 'production'
170170
? niceLogCodeMessages
171171
: ({} as any);
172172

@@ -269,7 +269,7 @@ let tempLogCodeManager: {
269269
getLogger: () => any;
270270
logIfTags: typeof logIfTags;
271271
};
272-
if (typeof process === 'object' && process.env.NODE_ENV === 'development') {
272+
if (typeof process === 'object' && process.env.NODE_ENV !== 'production') {
273273
tempLogCodeManager = {
274274
getLog,
275275
log,

0 commit comments

Comments
 (0)