diff --git a/packages/docusaurus/src/client/exports/ComponentCreator.tsx b/packages/docusaurus/src/client/exports/ComponentCreator.tsx index 2b7dfbcbaca2..88cebc261b3c 100644 --- a/packages/docusaurus/src/client/exports/ComponentCreator.tsx +++ b/packages/docusaurus/src/client/exports/ComponentCreator.tsx @@ -45,22 +45,22 @@ export default function ComponentCreator( } if (path.endsWith('/*')) { return Loadable({ - loading: Loading, - loader: () => import('@theme/NotFound/Content'), - modules: ['@theme/NotFound/Content'], - webpack: () => [require.resolveWeak('@theme/NotFound/Content')], - render(loaded, props) { - const NotFoundContent = loaded.default; - return ( - - - - ); - }, + loading: Loading, + loader: () => import('@theme/NotFound/Content'), + modules: ['@theme/NotFound/Content'], + webpack: () => [require.resolveWeak('@theme/NotFound/Content')], + render(loaded, props) { + const NotFoundContent = loaded.default; + return ( + + + + ); + }, }); -} + } const chunkNames = routesChunkNames[`${path}-${hash}`]!; // eslint-disable-next-line @typescript-eslint/no-explicit-any