-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Retain client scripts in content cache #11170
Conversation
🦋 Changeset detectedLatest commit: e38edeb The changes in this PR will be included in the next version bump. 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 |
!preview ccc-scripts |
Snapshots have been released for the following packages:
Publish Log
Build Log
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not familiar with the code here, but seems plausible and the test LGTM! (Plus the preview release was successfully tested with withastro/docs#8409.)
@@ -255,6 +255,7 @@ function vitePluginContent( | |||
...oldManifest.clientEntries, | |||
...internals.discoveredHydratedComponents.keys(), | |||
...internals.discoveredClientOnlyComponents.keys(), | |||
...internals.discoveredScripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also want to handle rendererClientEntrypoints
like here:
astro/packages/astro/src/core/build/static-build.ts
Lines 92 to 98 in ff8004f
const clientInput = new Set([ | |
...internals.cachedClientEntries, | |
...internals.discoveredHydratedComponents.keys(), | |
...internals.discoveredClientOnlyComponents.keys(), | |
...rendererClientEntrypoints, | |
...internals.discoveredScripts, | |
]); |
Or some way to share the input values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't because those always get built, it's not something that's discovered from the server build the way that hydration scripts are.
Changes
Testing
Docs
N/A, bug fix