Skip to content

Conversation

@frandiox
Copy link
Contributor

@frandiox frandiox commented Dec 11, 2025

The server build entry import was modified in the RR7 upgrade PR to be a dynamic import. I'm not sure why since it works as a static import as well. I've excluded this from ESLint to fix the errors.

🔴 Using a dynamic import means Vite needs to process your app code at runtime during the first request from your browser, which delays page rendering by a couple of seconds (you see a blank page for a while):

image

🟢 While a static import can be discovered by Vite earlier and preloaded in parallel to other work before your browser even opens:

image

@frandiox frandiox requested a review from kdaviduik December 11, 2025 04:24
@frandiox frandiox requested a review from a team as a code owner December 11, 2025 04:24
@shopify
Copy link
Contributor

shopify bot commented Dec 11, 2025

Oxygen deployed a preview of your fd-fix-server-build-entry branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment December 11, 2025 9:50 AM
sitemap ✅ Successful (Logs) Preview deployment Inspect deployment December 11, 2025 9:51 AM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment December 11, 2025 9:51 AM
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment December 11, 2025 9:51 AM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment December 11, 2025 9:51 AM

Learn more about Hydrogen's GitHub integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant