-
-
Notifications
You must be signed in to change notification settings - Fork 116
feat: resolve svelte to svelte/ssr when building for ssr (fixes #74) #75
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
Conversation
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.
I don't know when that ssr
parameter in the enhanced function is true
(I guess when Vite builds the stuff for the Server output). Assuming it does what I think it does this looks good to me.
turns out you have to add Adding it to the playground config results in the expected warning for a missing svelte/ssr export.
Question is, is that actually what kit wants to do? Or are there other ways to achieve this by using |
… and add tests. reduce logging
Cleaned it up a bit:
To start the tests without all the others use |
… and add tests. reduce logging
…til svelte with svelte/ssr is released
implementation is here:
https://github.com/sveltejs/vite-plugin-svelte/compare/feat/svelte-ssr?expand=1#diff-71fd6d8bccf1f224607bb27c94b502d32abf70103f0a2a59ad3acb5d229c443bR113
the kit demo app has been added to the playground to try it.
@dummdidumm @tanhauhau please have a look