Open
Description
I ran into this issue where NODE_ENV
is always !== "production"
, because when running in the browser window
won't be undefined
.
Check the code below:
redux-logic/src/createLogic.js
Line 24 in 1034a3e
So, later on in the same file we reference it to decide whether to log warnings (using warnTimeout
), and even in production builds we are seeing these logs:
redux-logic/src/createLogic.js
Lines 188 to 193 in 1034a3e
I have a couple questions regarding the way we define NODE_ENV
here:
- why do we check for
typeof window === 'undefined'
? Is this just meant for the build/babel step? - I'm using CRA, can't overwrite
NODE_ENV
. Do you have a suggestion how to approach this?
Metadata
Metadata
Assignees
Labels
No labels