lib/helpers/indexes.js
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),
  });
}
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),
  });
}
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 ) , } ) ; }
Indexes the portals.
@return {Promise}
Indexes the portals .