Skip to content

Commit

Permalink
fix: add missing modulepreload for the manifest (#7684)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey authored Nov 7, 2023
1 parent b6b2857 commit 1ee9093
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/manifest-modulepreload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/react": patch
---

add missing modulepreload for the manifest
5 changes: 5 additions & 0 deletions packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,11 @@ import(${JSON.stringify(manifest.entry.module)});`;

return isHydrated ? null : (
<>
<link
rel="modulepreload"
href={manifest.url}
crossOrigin={props.crossOrigin}
/>
<link
rel="modulepreload"
href={manifest.entry.module}
Expand Down

0 comments on commit 1ee9093

Please sign in to comment.