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

Do not depend on framework plugins (mostly) #42

Merged
merged 1 commit into from
Jun 27, 2021
Merged

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Jun 23, 2021

Closes #41

This removes the direct dependency on a few plugins, most notably @storybook/addon-svelte-csf, which causes @storybook/svelte to also be installed, which can cause storybook to run in svelte mode when it shouldn't.

This takes the approach of moving vue and svelte addons/plugins to devDependencies and throwing a friendly error message if they are attempted to be required but are not found.

I did not give react the same treatment, because I am planning to publish a forked version of plugin-react-refresh which should allow us to restart the builder when stories change, so that changes at least appear, even if they're not HMR'ed.

@IanVS IanVS requested a review from eirslett June 23, 2021 04:22
@IanVS IanVS force-pushed the 41-remove-some-deps branch from 2904bb2 to cb3d82a Compare June 23, 2021 04:25
@eirslett eirslett merged commit 8b7c7aa into main Jun 27, 2021
@eirslett eirslett deleted the 41-remove-some-deps branch June 27, 2021 14:12
@eirslett eirslett mentioned this pull request Jun 27, 2021
@eirslett
Copy link
Collaborator

eirslett commented Jun 28, 2021

@IanVS Did this PR break the example packages? Do we need to update their package.json to include the correct dependencies? yarn workspaces foreach -p run build-storybook breaks for me (and in CI)...

@IanVS
Copy link
Member Author

IanVS commented Jun 28, 2021

I'll fix them up. I wonder why CI passed on this PR originally...

(Edit: The CI problem was a different issue, which I've fixed in #51.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove some dependencies
2 participants