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

SvelteKit: Support v1.0.0-next.574 and above #20181

Merged
merged 7 commits into from
Dec 10, 2022
Merged

Conversation

JReinhold
Copy link
Contributor

@JReinhold JReinhold commented Dec 9, 2022

SvelteKit v1.0.0-next.574 introduced a split to their Vite plugins, in an attempt to make it easier for integrators (like us) to disable SvelteKit's server handling but keeping its module building. Unfortunately it is insufficient in it's current form, as keeping the vite-plugin-sveltekit-build will break Storybook's build output.

So this PR disables both of the new SvelteKit plugins until that issue has been resolved.

See this Discord Thread for details.

This PR also changes the deprecation warning in @storybook/svelte-vite about switching to @storybook/sveltekit to a hard error instead, to force any users over. (upgrading users will get automigrated as of #20094)

See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#sveltekit-needs-the-storybooksveltekit-framework
`
);
throw new Error();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ends up as an unhandled promise rejection, but I'm unsure how to do that better while still stopping the process. I think this is okay for now.

image

@JReinhold JReinhold self-assigned this Dec 9, 2022
@JReinhold JReinhold added this to the 7.0 frameworks milestone Dec 9, 2022
@JReinhold JReinhold requested review from benmccann and IanVS December 9, 2022 12:02
@JReinhold JReinhold marked this pull request as ready for review December 10, 2022 19:52
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!! 🎉

If sveltekit is broken we probably should merge and release

@shilman shilman merged commit 8f99238 into next Dec 10, 2022
@shilman shilman deleted the jeppe/support-new-sveltekit branch December 10, 2022 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants