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

support loading css first #1032

Open
dominikg opened this issue Nov 25, 2024 · 1 comment
Open

support loading css first #1032

dominikg opened this issue Nov 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dominikg
Copy link
Member

Describe the problem

Currently css is cached and returned as a virtual module when .svelte files are imported as js module.
But with vite ?direct or ?inline query urls, it is possible that the first request is not for the js module but the css.

Describe the proposed solution

In case the cache is empty when css is requested, compile.

Alternatives considered

keep current behavior, styles might not be needed before the js module

Importance

nice to have

@dominikg dominikg added enhancement New feature or request triage Awaiting triage by a project member labels Nov 25, 2024
@dominikg
Copy link
Member Author

see #341 #1024

@dominikg dominikg removed the triage Awaiting triage by a project member label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant