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

Vite: Don't add babel dependencies during init #19088

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Sep 1, 2022

Issue: Vite projects are getting babel-loader and @babel-core dependencies added during npx sb init, when they don't need them.

In fact, in storybook 7.0, is installing these babel dependencies in a user project ever needed?

What I did

Gated the installation of babel deps in the user's project to non-vite builders.

How to test

CI should tell us if this is a problem, I presume, based on the sandboxes and e2e tests.

@IanVS IanVS changed the title Don't add babel dependencies for vite projects Vite: Don't add babel dependencies during init Sep 1, 2022
@IanVS IanVS force-pushed the vite/no-install-babel branch from 56c23d2 to 9e551e1 Compare September 2, 2022 03:53
@IanVS IanVS force-pushed the vite/no-install-babel branch from 9e551e1 to f968c85 Compare September 2, 2022 03:53
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.

Probably not needed in general. I'll follow up in a separate PR

@shilman shilman merged commit ee43d69 into next Sep 2, 2022
@shilman shilman deleted the vite/no-install-babel branch September 2, 2022 15:29
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