tajo / ladle

🥄 Develop, test and document your React story components faster.
https://www.ladle.dev
MIT License
2.61k stars 87 forks source link

HMR does not seem to work on .ladle/components.tsx #490

Open Lillebo opened 1 year ago

Lillebo commented 1 year ago

Is your feature request related to a problem? Please describe.

I use .ladle/components.tsx to import some global styles shared by all components. Changes to the stylesheets imported into .ladle/components.tsx does not seem to be detected and/or trigger any browser reload. In fact, it doesn't even work to manually refresh the browser for these changes to take effect. You have to restart the entire ladle runtime for the changes to take effect.

Describe the solution you'd like I'd like HMR to work with changes to .ladle/components.tsx and files/packages/dependencies imported/referenced there.

Describe alternatives you've considered ...

Additional context ...

tajo commented 1 year ago

Might be a bit tricky to make these HMR-able but at least we should try to make it refreshable.