Nested Styled components breaks react-refresh with '$RefreshReg$ is not defined' #848
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
Environment
Description
When using linaria and @pmmmwh/react-refresh-webpack-plugin, referring to a react styled component triggers the following error:
Note this used to work in beta-4. I haven't traced down which version it first starts having trouble with yet.
Have isolated this to @linaria/shaker. Just setting that package version to beta.4 fixes this
Reproducible Demo
For full runnable configuration:
The text was updated successfully, but these errors were encountered: