function createConfig(data) {
  /**
   * @param {string} entry entry
   * @returns {{ [string]: string }} object
   */
  function getObject(entry) {
    return { [entry[0]]: entry[1] };
  }

  /**
   * @param {import("webpack").Configuration[]} arr arr
   * @returns {import("webpack").Configuration} result
   */
  function reduceObject(arr) {
    if (arr.length > 1) {
      const temp = [];
      temp.push(arr.pop());
      temp.push(arr.pop());

      return reduceObject([...arr, getObject(temp.reverse())]);
    }

    return arr[0];
  }

  const result = data.map((el) => reduceObject([...el]));

  return merge.all(result);
}
@param {import("webpack").Configuration[]} data data
@returns {import("webpack").Configuration} configuration