Skip to content
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

fix: add tests for SSR render #2083

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

fix: add tests for SSR render #2083

wants to merge 3 commits into from

Conversation

niksy
Copy link

@niksy niksy commented Aug 7, 2024

This PR continues on the work of #2079 by adding missing tests removed in 20352da and based on implementation at v15 version of loader.

SSR context styles are not present since I couldn’t get final result inside context. As I see it, that currently isn’t possible since all the CSS is automatically extracted, but maybe it could be achivede with additional loader after all the CSS has been preprocessed?

v15 version relies on vue-style-loader so I think that’s why it was possible to get all the necessary information.

Also, hashing function from original PR has been moved from hash-sum to internal one to align with Vite and other hashing behavior. It’s possible that this could clash with Nuxt Vue client manifest package implementation.

@sodatea Is it possible we can get this implemented? This would greatly help with collecting all the necessary components needed for initial render in SSR contexts. After that, maybe we could work on critical CSS implementation.

@niksy niksy changed the title fix: add test for SSR render fix: add tests for SSR render Aug 7, 2024
@OskarLebuda
Copy link

Good job 👍🏻 I've done it myself but this requires fork of this repo.
The official way should be provided. @yyx990803 @haoqunjiang approve this PR and make some release with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants