Exit Full View

Games Cupboard / build / js / node_modules / webpack-dev-server / lib / utils / getCompilerConfigArray.js

'use strict';

function getCompilerConfigArray(compiler) {
  const compilers = compiler.compilers ? compiler.compilers : [compiler];
  return compilers.map((comp) => comp.options);
}

module.exports = getCompilerConfigArray;