styled-components / babel-plugin-styled-components

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

namespace option doesn't work with babel-plugin-macros #316

Open emdotem opened 3 years ago

emdotem commented 3 years ago

I'm trying to setup a namespace for my styled-components application (create-react-app) with Babel Macro.

I created a file:

// babel-plugin-macros.config.js

module.exports = {
  styledComponents: {
    fileName: true,
    displayName: true,
    namespace: "my-namespace"
  }
}

Everything but "namespace" works.

What could be the reason?

FBurner commented 3 years ago

Same for me, anthing on that?