diff --git a/lib/dust.js b/lib/dust.js index b13f2e78..c6e2448a 100644 --- a/lib/dust.js +++ b/lib/dust.js @@ -501,7 +501,7 @@ dust.escapeJs = function(s) { if (typeof exports !== "undefined") { dust.helpers = require("./dust-helpers").helpers; - if (typeof process !== "undefined") { + if (typeof process !== "undefined" && typeof window === "undefined") { require('./server')(dust); } module.exports = dust;