function createLoadFiles(files) {
    if (files.length === 1) {
        return createLoadFile(files[0]);
    }
    return `[
    ${files.map(r => `function() { return ${createLoadFile(r)} }`)}
  ].reduce(function (a, c) {
    return a.then(c);
  }, Promise.resolve())`;
}
/**
 * Creates a statement which loads the given resources in the browser sequentially.
 */
Creates a statement which loads the given resources in the browser sequentially.
Creates a statement which loads the given resources in the browser sequentially .
function createLoadFiles(files) {
    if (files.length === 1) {
        return createLoadFile(files[0]);
    }
    return `[
    ${files.map(r => `function() { return ${createLoadFile(r)} }`)}
  ].reduce(function (a, c) {
    return a.then(c);
  }, Promise.resolve())`;
}
function createLoadFiles ( files ) { if ( files . length === 1 ) { return createLoadFile ( files [ 0 ] ) ; } return ` ${ files . map ( r => ` ${ createLoadFile ( r ) } ` ) } ` ; }
Creates a statement which loads the given resources in the browser sequentially.
Creates a statement which loads the given resources in the browser sequentially .