Skip to content

Commit f25c73c

Browse files
authored
Rename precedence (vercel#45542)
This field behaves the same as a CSS layers. Where they get added in the order they're discovered. This means that the first discovered one is always the lowest precedence. The stylesheet imported as modules in Webpack are always added first. Which means that they have the lowest precedence. The string `"high"` doesn't make any sense to add first. We might add ways to add other ones but the string can just be anything. So we'll make it "next.js" to indicate that this is the grouping where all the Next.js styles are added.
1 parent a6fbe20 commit f25c73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/server/app-render.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ export async function renderToHTMLOrFlight(
15671567
// resource loading and deduplication, etc:
15681568
// https://github.com/facebook/react/pull/25060
15691569
// @ts-ignore
1570-
precedence="high"
1570+
precedence="next.js"
15711571
key={index}
15721572
/>
15731573
))

0 commit comments

Comments
 (0)