<commit_before>import Publication from 'common/modules/Publication/pages/Publication/Publication'
import Organization from 'common/modules/Publication/pages/Organization/Organization'
import PublishingDatasets from 'common/modules/Publication/pages/PublishingDatasets/PublishingDatasets'
import OrganizationProducers from 'common/modules/Publication/pages/OrganizationProducers/OrganizationProducers'

export default () => ({
  path: 'publication',

  indexRoute: {
    component: Publication
  },

  childRoutes: [
    {
      path: ':organizationId',
      component: Organization
    },
    {
      path: ':organizationId/datasets',
      component: PublishingDatasets
    },
    {
      path: ':organizationId/producers',
      component: OrganizationProducers
    }
  ]
})
<commit_msg>Split publication route out of the main bundle<commit_after>export default () => ({
  path: 'publication',

  indexRoute: {
    async getComponent(nextState, cb) {
      const Publication = await import(
        /* webpackChunkName: 'publication' */
        'common/modules/Publication/pages/Publication/Publication'
      )

      cb(null, Publication.default)
    }
  },

  childRoutes: [
    {
      path: ':organizationId',
      async getComponent(nextState, cb) {
        const Organization = await import(
          /* webpackChunkName: 'publication' */
          'common/modules/Publication/pages/Organization/Organization'
        )

        cb(null, Organization.default)
      }
    },
    {
      path: ':organizationId/datasets',
      async getComponent(nextState, cb) {
        const PublishingDatasets = await import(
          /* webpackChunkName: 'publication' */
          'common/modules/Publication/pages/PublishingDatasets/PublishingDatasets'
        )

        cb(null, PublishingDatasets.default)
      }
    },
    {
      path: ':organizationId/producers',
      async getComponent(nextState, cb) {
        const OrganizationProducers = await import(
          /* webpackChunkName: 'publication' */
          'common/modules/Publication/pages/OrganizationProducers/OrganizationProducers'
        )

        cb(null, OrganizationProducers.default)
      }
    }
  ]
})

{'fraction_non_alphanumeric': 0.10531135531135531, 'fraction_numerical': 0.0, 'mean_word_length': 2.9228007181328546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5877313', 'n_tokens_mistral': 629, 'n_tokens_neox': 598, 'n_words': 103}