styled-components / babel-plugin-styled-components

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

Name space option doesn work #353

Open FBurner opened 3 years ago

FBurner commented 3 years ago

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

}`

wangjing013 commented 3 years ago

+1

FBurner commented 3 years ago

+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.