dillon1000/react

Commit

[Flight] Fix preload `as` attribute for stylesheets (#34760)

Follow-up to #34604. For a stylesheet, we need to render `<link
rel="preload" as="style" ...>`, and not `<link rel="preload"
as="stylesheet" ...>`.
([ref](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/preload#what_types_of_content_can_be_preloaded))

fixes vercel/next.js#84569
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOM-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…