From bd110c614611355afc70f426d2cd485d2adf3272 Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Thu, 9 May 2024 10:09:24 -0600 Subject: [PATCH] Fix `/dynamic` in `test/.stats-app` (#65543) Noticed while doing some testing that this route was broken in this application. We use some parts of this app to generate statistics - I'm planning to use more of the routes for benchmarking so I wanted to ensure it was working. Closes NEXT-3371 --- test/.stats-app/pages/dynamic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/.stats-app/pages/dynamic.js b/test/.stats-app/pages/dynamic.js index d1f0d575091e6..30fce5f3c2d99 100644 --- a/test/.stats-app/pages/dynamic.js +++ b/test/.stats-app/pages/dynamic.js @@ -1,6 +1,8 @@ import dynamic from 'next/dynamic' -const DynamicHello = dynamic(() => import('../components/hello')) +const DynamicHello = dynamic(() => + import('../components/hello').then((mod) => mod.Hello) +) const Page = () => ( <>