code: function indexPortals() {
    const { portals = {} } = getComponentsSettings();
  
    return index({
      file: 'portals.js',
      config: {
        type: TYPE_PORTALS,
        config: portals,
        importsStart: 'import portalCollection from \'@shopgate/pwa-common/helpers/portals/portalCollection\';',
        exportsStart: 'portalCollection.registerPortals({',
        exportsEnd: '});',
      },
      ...getIndexLogTranslations(TYPE_PORTALS),
    });
  }
docs: Indexes the portals.
  @return {Promise}