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
The text was updated successfully, but these errors were encountered:
iandilling-adaptive
changed the title
Components package does not rebuild when it's dependencies rebuild
Storybook not updating when the Theme package rebuilds
Nov 7, 2022
The theme is imported in preview.tsx. Changes to this file seem to require a browser refresh, so when the theme is updated, this file isn't being automatically hot reloaded despite storybook rebuilding it. Enabling storyStoryV7 supposedly fixes this, but it is enabled already. This is maybe an issue with Storybook and Vite as another Vite user is seeing the same issue.
Despite storybook HMR appearing to be triggered when the Theme package rebuilds, those changes do not show until the window is refreshed.
Possible solution: Right now, the components package does not rebuild when changes are made to the theme package, despite the components package depending on the theme package. A change to the components package vite config may fix this: https://vitejs.dev/guide/dep-pre-bundling.html#monorepos-and-linked-dependencies
The text was updated successfully, but these errors were encountered: