code: function transposeVarDependencies() {
      var map = {};
      sourcePackages.forEach(function(p) {
        if (p.vars) {
          p.vars.forEach(function(v) {
            map[v] = p.name;
          });
        }
      });
      sourcePackages.forEach(function(p) {
        var deps = [];
        var varDeps = [];
        p.dependencies.forEach(function(d) {
          var normalized = map[d] || d;
          if (deps.indexOf(normalized) === -1) {
            deps.push(normalized);
          }
          if (d in map) {
            varDeps.push(d);
          }
        });
        p.dependencies = deps;
        if (varDeps.length) {
          p.varDependencies = varDeps;
        }
      });
    }
docs: Find packages depending on specific vars and transpose the dependency to the bundled var package instead. However keep the references as "varDependencies" for later consumption.