HMR doesn't work with imported @emotion styled-components #888
Unanswered
Evan-Peuvergne
asked this question in
Q&A
Replies: 1 comment
-
Alternatively, is there a way to make css-modules work with the crxjs plugin ? I experience similar issues with them until now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the crxjs plugin with vite, react & emotion to build my chrome extension.
I like defining my styles with the styled components methods (@motion/styled) and put them in a different file from the component definition itself (styled.ts for example).
app.tsx
styles.ts
But when I make changes to this file (styled.ts), I can see in the terminal that HMR did notice the update and triggers but there is not reload in the browser as expected.
If necessary, you can reproduce with this repo
Is there something I'm missing in the vite configuration ? Or is it a bug ?
Here is my config :
Any help will he appreciated, thanks 🙂
Beta Was this translation helpful? Give feedback.
All reactions