vendor/lib/visitor/evaluator.js in stylus-source-0.26.1 vs vendor/lib/visitor/evaluator.js in stylus-source-0.27.0
- old
+ new
@@ -95,15 +95,20 @@
*
* @api private
*/
Evaluator.prototype.setup = function(){
+ var root = this.root;
+ var imports = [];
+
this.populateGlobalScope();
this.imports.forEach(function(file){
var expr = new nodes.Expression;
expr.push(new nodes.String(file));
- this.visit(new nodes.Import(expr));
+ imports.push(new nodes.Import(expr));
}, this);
+
+ root.nodes = imports.concat(root.nodes);
};
/**
* Populate the global scope with:
*