-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ssr-preload-include support specify rel #4568
Conversation
🦋 Changeset detectedLatest commit: 521a707 The changes in this PR will be included in the next version bump. This PR includes changesets to release 253 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4568 +/- ##
==========================================
- Coverage 57.59% 53.79% -3.81%
==========================================
Files 672 655 -17
Lines 17794 17972 +178
Branches 3876 4145 +269
==========================================
- Hits 10249 9668 -581
- Misses 6934 7647 +713
- Partials 611 657 +46 ☔ View full report in Codecov by Sentry. |
Summary
🤖 Generated by Copilot at 521a707
This pull request adds support for specifying the
rel
attribute for thessr-preload.include
option in the@modern-js/prod-server
and@modern-js/server-core
packages. This allows users to customize the preload links for server-side rendering. The pull request also updates the type definitions, the logic for transforming links to strings, and the test case for the new features. It also adds a changeset file to document the minor version updates.Details
🤖 Generated by Copilot at 521a707
@modern-js/prod-server
and@modern-js/server-core
packages (link)PreloadInclude
type in the@modern-js/server-core
package to allow an optionalrel
property for each include item (link)Link
interface and thetransformLinks2String
function in the@modern-js/prod-server
package to handle therel
andrest
properties of the link objects (link, link)transformLinks2String
function in the@modern-js/prod-server
package to cover the new features (link)Related Issue
Checklist
pnpm run change
.