diff --git a/Gruntfile.js b/Gruntfile.js index 7af87827b..1e188dfc0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -27,7 +27,7 @@ module.exports = function (grunt) { options: { banner: '<%= meta.banner %>\n\n'+ '/* commonjs package manager support (eg componentjs) */\n'+ - 'if (module && exports && module.exports === exports){\n'+ + 'if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){\n'+ ' module.exports = \'ui.router\';\n'+ '}\n\n'+ '(function (window, angular, undefined) {\n',