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

Project enhancement: Exclude sb-vite from optimizeDeps #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mahoneycm
Copy link
Contributor

@mahoneycm mahoneycm commented Aug 12, 2024

Summary

Update main.js to exclude sb-vite from dependency optimization, to prevent a build error.

Work is based on the example configuration in the Storybook Vite documentation

Closes #14

@mahoneycm mahoneycm requested a review from mejiaj August 12, 2024 20:09
@mahoneycm mahoneycm changed the title Exclude sb-vite from optimizeDeps Project enhancement: Exclude sb-vite from optimizeDeps Aug 12, 2024
Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not seeing this issue locally, but open to merging. Not seeing anything wrong with this either, so open to merging — I am seeing this now:

Doesn't seem like a big deal, but didn't find anything meaningful online.

Sourcemap for "/virtual:/@storybook/builder-vite/setup-addons.js" points to missing source files
Sourcemap for "/virtual:/@storybook/builder-vite/vite-app.js" points to missing source files

FWIW, feel free to update & merge if you feel it's necessary.

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.

Vite dep optimizer is causing build errors.
2 participants