var Scanner = require('./url-scanner'),
    url = require('./url');

function mergeUrls() {
  new Scanner(this.root, this.imagesSeen).combine();
  return new nodes.Expression(false);
}

module.exports = function(options) {
  return function(stylus) {
    stylus.define('url', url(options));
    stylus.define('merge-urls', mergeUrls);
  };
};

@@ -59,16 +59,76 @@
 './url')
+,%0A    stylus = require('stylus'),%0A      nodes = stylus.nodes
 ;%0A%0Afunct

Fix missing var reference.