styled-components / babel-plugin-styled-components

Improve the debugging experience and add server-side rendering support to styled-components
MIT License
1.07k stars 141 forks source link

Doesn't work on the MUI commonjs modules #365

Open Janpot opened 3 years ago

Janpot commented 3 years ago

I'm currently investigating an issue on @mui/material+styled-components+next (https://github.com/mui-org/material-ui/issues/29742). It turns that in the Next.js server bundle, the styled calls are not correctly being identified by babel-plugin-styled-components. The server bundle uses the commonjs version of @mui/material. This PR adds a failing test case for that format.

edit: 🤔 The new test doesn't seem to run in CI for some reason

slavco86 commented 1 year ago

@Janpot , any update on this?

landsman commented 1 year ago

Hello, is there a plan how to fix this?