Evgenus / spa

Single Page Applications builder
Other
7 stars 2 forks source link

cjs evaluator missing process from node environment #59

Closed wizzard0 closed 10 years ago

wizzard0 commented 10 years ago

if ("production" !== process.env.NODE_ENV) {

wizzard0 commented 10 years ago
    this.process={env:{}};
}
return __extends(CJSEvaluator, _super), CJSEvaluator.prototype.render = function() {
    return "return (function(module, exports, require, window, process) { \n    " + this.source + "; \n}).call(this.this, this.module, this.exports, this.require, this.window, this.process);"