-
-
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
Chore: Remove unused dependencies in /lib #19100
Conversation
Vite is failing in sandbox tests, because it is missing @babel/preset-react. Which is interesting, because it shouldn't need that, and the sandbox works fine for me locally. I think a .babelrc is being injected or something, when it shouldn't be. Still investigating. Edit: I figured out that |
This caused build to fail.
They use a sneaky alias resolution that isn't `cmd+f` findable.
# Conflicts: # code/lib/addons/package.json # code/lib/blocks/package.json # code/lib/client-api/package.json # code/lib/core-client/package.json # code/lib/core-common/package.json # code/lib/preview-web/package.json # code/lib/source-loader/package.json # code/yarn.lock
This should be removed once 7.1 stable is released
Issue: There are dependencies that are being installed along with storybook that aren't being used.
What I did
I used
npx depcheck
to help identify unused (and missing) dependencies, searched the repo for usages of those dependencies to be sure the tool wasn't giving wrong results, and removed deps or added deps when needed.This PR covers packages in
/lib
, and I'll open other PRs to deal with addons and renderers, etc.Note: I also pinned the
@storybook/test-runner
tonext
, in order to pull in a change that is needed now that some babel dependencies are not always being installed. This can be reverted once @storybook/test-runner 0.7.1 is released.How to test
I think CI should be good enough to detect any bugs this might introduce.