diff --git a/cssbeautify.js b/cssbeautify.js index b4ae096..d123cf0 100644 --- a/cssbeautify.js +++ b/cssbeautify.js @@ -458,7 +458,7 @@ return formatted; } - if (typeof exports !== 'undefined') { + if (typeof exports !== 'undefined' && typeof process !== 'undefined') { // Node.js module. module.exports = exports = cssbeautify; } else if (typeof window === 'object') {