babel-plugin-styled-components icon indicating copy to clipboard operation
babel-plugin-styled-components copied to clipboard

Name space option doesn work

Open FBurner opened this issue 3 years ago • 2 comments

Using: "babel-plugin-styled-components": "^1.13.2",

`{ "presets": [ "@babel/preset-env" ], "plugins": [ [ "babel-plugin-styled-components", { "namespace": "campaign" } ], [ "@babel/plugin-proposal-decorators", { "legacy": true } ], [ "@babel/plugin-transform-runtime", { "regenerator": true } ] ]

Generated class name

image

}`

FBurner avatar Sep 07 '21 21:09 FBurner

+1

wangjing013 avatar Sep 23 '21 10:09 wangjing013

+1 I added this "https://www.npmjs.com/package/babel-plugin-namespace-styled-components" and it helped, but I think this should be a core feature.

FBurner avatar Sep 24 '21 12:09 FBurner