-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add sveltekit plugin in .storybook/main.cjs
#5
Comments
This is a good question for @benmccann, but my understanding is that the vite plugin is only for options that would normally have been specified in the |
Thank you so much for testing this! I would expect the I'm also a bit surprised that you need to specify |
Btw, feel free to hop onto Discord if you'd like faster responses. We could coordinate in the Vite server since I know both Ian and myself are on that one. I'll start coordinating with him in the #storybook channel. Hopefully we can figure out the alias issue. I thought I'd answer the open questions from the readme:
Neither Storybook nor SvelteKit support it yet though we're both testing against it. For now, there's no need to support it and I wouldn't worry about it, but SvelteKit will switch to it once the final release is out, which will probably be in the next week or two. On the SvelteKit side I don't think you'll have to do anything except bump the SvelteKit version.
Don't worry about adapters at all. Neither |
Thanks for all of this info @benmccann and @IanVS! After work I'll try #7, write an actual reply, and hop onto the discord. If you find this to be a useful test project I'd be happy to give you merge permissions, etc. so that you don't have to wait on me. Whatever works for you. (I don't have any grand plans for this repo: It is only meant to test this out.) |
Thanks @michaelwooley! I'd be happy to have merge permissions. I'd love to get this repo in a good state and then create a Svelte Adder for Storybook. Once we have that then we probably won't need this repo anymore, but it's a nice place to get something working as the basis of an Adder. If you could either merge #7 or give me permission to, that would be great! |
An important area where the plugin is supposed to help!
Related: sveltejs/kit#5184 (comment)
Ability to get rid of separate
svelteOptions
config?Also see whether adding the plugin removes the need to separately specify items like the preprocessor:
https://github.com/michaelwooley/storybook-experimental-vite/blob/ba4c8a830baa10c0024ecc0c0f9376cc3f2d38a7/.storybook/main.cjs
The text was updated successfully, but these errors were encountered: