babel-plugin-styled-components
babel-plugin-styled-components copied to clipboard
Improve the debugging experience and add server-side rendering support to styled-components
I'd like to remove/replace the `sc-` prefix thats added before each class name. I am using the Babel module. And I've tried `namespace`, but it does not remove `sc-`. And...
This adds support for identifying styled components imports using `_interopRequiredDefault` and calls to styled components that use sequence expressions (ex. `(0, _styled)('div')()`). This should improve support for MUI + Next...
Imports which use `_interopRequireDefault` are not identified. ```js // not identified const styled = _interopRequireDefault(require("styled-components")); ``` Calls using `SequenceExpression`s are also not identified. ```js const Test = (0, styled)('div')(); ```
Ran into this while debugging another problem. `babel-plugin-styled-components` doesn't recognise these imports: ```tsx import { styled as matStyled } from '@mui/material/styles' ```
## Environment ### System: - OS: Linux 4.15 Debian GNU/Linux 9 (stretch) 9 (stretch) - CPU: (4) x64 Intel(R) Xeon(R) CPU @ 2.30GHz - Memory: 4.06 GB / 25.51 GB...
[Codesandbox to replicate the issue ](https://codesandbox.io/s/infallible-smoke-mr4qz) Given a file exporting two components ```js export default {CompA, CompB} ``` If referencing the component directly it'll all work as expected ```js import...
Hello. Starting with version 1.10.3, the plugin stops adding displayName to generated classes. This option worked in 1.10.2 and does not work in all subsequent versions. Here is a repository...
Hi there! `styled-components/macro` allows the developer to enjoy the benefits of the `displayName` property without needing to tinker with a babel config / eject a create-react-app application. Here's a CodeSandbox...
I'm trying to convert my tests to use `ts-jest`, since `babel-jest` doesn't do any typechecking. `ts-jest` has a mode that will use babel configuration, which will typecheck the code, compile...
Hi! 👋 This PR updates the version of lodash to fix https://github.com/advisories/GHSA-p6mc-m468-83gw. The tests seem to pass, let me know if you need anything else!