diff --git a/packages/loader/lib/main.js b/packages/loader/lib/main.js index e28da9d1ac6..b63969b7241 100644 --- a/packages/loader/lib/main.js +++ b/packages/loader/lib/main.js @@ -2,7 +2,8 @@ var define, requireModule, require, requirejs, Ember; var mainContext = this; (function() { - var isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; + var isNode = typeof window === 'undefined' && + typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; if (!isNode) { Ember = this.Ember = this.Ember || {};