diff --git a/src/routes.js b/src/routes.js index 805d403b2..1e51d30c4 100644 --- a/src/routes.js +++ b/src/routes.js @@ -5,9 +5,13 @@ import { App, Search } from '@plone/volto/components'; import { defaultRoutes, multilingualRoutes } from '@plone/volto/routes'; -import ReleaseLog from 'design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'; +import loadable from '@loadable/component'; import config from '@plone/volto/registry'; +const ReleaseLog = loadable(() => + import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'), +); + export const italiaRoutes = [ // Add design-comuni-plone-theme routes here {