-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use with babel-plugin-styled-components when ssr is enabled #17
Labels
Comments
nathanspecht
changed the title
Use with babel-plugin-styled-components with ssr enabled
Use with babel-plugin-styled-components when ssr is enabled
Oct 25, 2017
Thanks for pointing this out! I'm surprised the plugin doesn't pick up components without the tagged template literal syntax. The template used for that output is now open source in lab-cli, so I imagine it would be a quick change to use the other syntax |
johno
added a commit
to c8r/lab-cli
that referenced
this issue
Jan 11, 2018
In order to support SSR, styled-components requires string templates to be used since that's what the babel plugin searches for. https://github.com/styled-components/babel-plugin-styled-components/blob/master/src/index.js#L16 --- c8r/lab#17
johno
added a commit
to c8r/lab-cli
that referenced
this issue
Jan 11, 2018
In order to support SSR, styled-components requires string templates to be used since that's what the babel plugin searches for. https://github.com/styled-components/babel-plugin-styled-components/blob/master/src/index.js#L16 --- c8r/lab#17
johno
added a commit
to c8r/lab-cli
that referenced
this issue
Jan 11, 2018
In order to support SSR, styled-components requires string templates to be used since that's what the babel plugin searches for. https://github.com/styled-components/babel-plugin-styled-components/blob/master/src/index.js#L16 --- c8r/lab#17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've noticed that
babel-plugin-styled-components
does not recognize styled components written without template literals, e.g.rather than
In my case, components generated with lab are not given componentIds when the babel plugin's ssr mode is enabled.
For this reason, would it be possible to add an option to choose which syntax is used to export components from lab?
Thank you for your work on this project.
The text was updated successfully, but these errors were encountered: