'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _;

function _load_() {
  return _ = require('..');
}

var _bitId;

function _load_bitId() {
  return _bitId = require('../../bit-id');
}

exports.default = function attachEnvs(consumer, ids, _ref) {
  var compiler = _ref.compiler,
      tester = _ref.tester;

  var results = ids.map(function (id) {
    var attachRes = consumer.bitMap.attachEnv(id, { compiler, tester });
    return { id, attached: attachRes };
  });
  return results;
};