Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name space option doesn work #353

Open
FBurner opened this issue Sep 7, 2021 · 2 comments
Open

Name space option doesn work #353

FBurner opened this issue Sep 7, 2021 · 2 comments

Comments

@FBurner
Copy link

FBurner commented Sep 7, 2021

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
Copy link

+1

@FBurner
Copy link
Author

FBurner commented Sep 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants