We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 113e562 commit 5be8cb5Copy full SHA for 5be8cb5
lib/utils/index.js
@@ -31,7 +31,7 @@ function isText(txt) {
31
// Proper configuration is having NODE_ENV = 'development', but this
32
// method only checks for 'dev' being present, and regardless of the case.
33
function isDev() {
34
- const env = global.process.env.NODE_ENV || '';
+ const env = global.process.env['NODE_ENV'] || '';
35
return env.toLowerCase().indexOf('dev') !== -1;
36
}
37
0 commit comments