From 390dc7ca3ac42c6e34948f8cd9db162921e8e666 Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Fri, 15 Sep 2023 09:56:19 +0200 Subject: [PATCH] fix: ReleaseLog loadable --- src/routes.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {