function registerCustomLoaders(loader, componentLoaders, callback) {
  componentLoaders.reduce((chain, componentLoader) => chain
    .then(() => new Promise((resolve, reject) => {
      const customLoader = require(componentLoader);
      loader.registerLoader(customLoader, (err) => {
        if (err) {
          reject(err);
          return;
        }
        resolve();
      });
    })), Promise.resolve())
    .then(() => {
      callback(null);
    }, callback);
}
@param {import("../ComponentLoader").ComponentLoader} loader
@param {Array<string>} componentLoaders
@param {ErrorableCallback} callback