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
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, thestyled
calls are not correctly being identified bybabel-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