-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Svelte: Make svelte-loader
optional dependency
#18645
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 807c5be. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Hello @benmccann Thank you for this contribution, unfortunately We're working on a massive refactor that splits apps into frameworks, presets and renderers. Frameworks will introduce a builder. I don't think I can merge this PR, because it adds dependencies to the svelte app in such a way users would always / often get both builders. The refactor I described above, is all about preventing that. I'm appreciative of your time, energy and work you put into this PR. I'm sorry for closing it. The |
I don't think that's true because |
Peer deps are weird, some package managers install them automatically, some don't. I'd suggest removing the vite builder from this PR, and just keeping the optional dep on the webpack loader. I think that still makes sense to be optional, since this addon can be used with the vite builder without it. |
Absolutely! |
Thanks guys! I've made that change |
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.
LGTM, thanks.
Except, it looks like you'll need to run yarn install
, and check in the lockfile, to get the Danger JS ci job passing.
oops. updated! thanks for taking a look 😄 |
Hmmmm, I'm not sure why it's failing now. It seems it can't get some user information, but I'm not familiar with this CI check or how it works. |
Does anyone know what might be happening with the CI on this PR? |
@IanVS I've just added @benmccann to the Storybook github org. Once he accepts his invite the CI should run. It's a security thing. |
@IanVS @benmccann does this need to be patched back to 6.5? |
It would be nice if it were, yeah. |
svelte-loader
optionalsvelte-loader
optional dep
I accepted the invite. I'm not quite sure how to kick off the CI again. I tried rerunning the jobs, but nothing appears to be happening Let me know if there's anything I need to do for the 6.5 backport. Otherwise I'll assume you guys are handling that |
@benmccann try merging in next to create a new commit. i'll handle the patch at some point soon, don't worry about it 👍 |
I merged in |
svelte-loader
optional depsvelte-loader
optional dependency
Svelte: Make `svelte-loader` optional dependency
What I did
Make
svelte-loader
optional so that we don't add webpack support when using@storybook/builder-vite
. You just need one or the otherHow to test
If your answer is yes to any of these, please make sure to include it in your PR.