Skip to content

Commit 5be8cb5

Browse files
committed
resolve #955
1 parent 113e562 commit 5be8cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function isText(txt) {
3131
// Proper configuration is having NODE_ENV = 'development', but this
3232
// method only checks for 'dev' being present, and regardless of the case.
3333
function isDev() {
34-
const env = global.process.env.NODE_ENV || '';
34+
const env = global.process.env['NODE_ENV'] || '';
3535
return env.toLowerCase().indexOf('dev') !== -1;
3636
}
3737

0 commit comments

Comments
 (0)