You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using storybook v8.5.1. When using Vite as a framework and this addon - @storybook/addon-storysource I am not able to see the the full source code.
This is similar to #29478, and the issue was fixed in #29669, but this only seems to have fixed it for webpack as framework and not Vite.
** Disclaimer** This information might be inaccurate, due to it being generated automatically
This appears to be a Vite-specific issue with the storysource addon. The fix needs to be implemented in the Vite builder's source loading logic, similar to how it was fixed for webpack in PR #29669. The key difference is that Vite's source loading mechanism needs to be modified to include the full source content.
Specific steps:
Modify code/lib/builder-vite/src/codegen-loader.ts to ensure full source content is preserved
Update source loading logic in code/addons/storysource/src/manager.ts to handle Vite's source format
This will require similar changes to those made in the webpack fix, but adapted for Vite's architecture.
About Greptile
This response provides a starting point for your research, not a precise solution.
Help us improve! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
Describe the bug
I am using storybook v8.5.1. When using Vite as a framework and this addon - @storybook/addon-storysource I am not able to see the the full source code.
This is similar to #29478, and the issue was fixed in #29669, but this only seems to have fixed it for webpack as framework and not Vite.
Using Vite:
Using Webpack:
Storybook Version : ^8.5.1
Reproduction link
https://stackblitz.com/edit/github-h25xa6-fqssm5jb?file=package.json
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: