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

No Documentation for displayName With SWC #907

Closed
machineghost opened this issue Apr 15, 2023 · 3 comments
Closed

No Documentation for displayName With SWC #907

machineghost opened this issue Apr 15, 2023 · 3 comments

Comments

@machineghost
Copy link

machineghost commented Apr 15, 2023

Environment

npx envinfo --system --binaries --npmPackages styled-components,babel-plugin-styled-components --markdown

This is irrelevant to the bug, but:

## System:
 - OS: Linux 5.15 Linux Mint 21.1 (Vera)
 - CPU: (8) x64 Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz
 - Memory: 4.55 GB / 23.39 GB
 - Container: Yes
 - Shell: 5.1.16 - /bin/bash
## Binaries:
 - Node: 19.7.0 - /usr/bin/node
 - npm: 9.5.0 - /usr/bin/npm
## npmPackages:
 - styled-components: ^5.3.9 => 5.3.9 

Reproduction

There's no documentation on using SWC with Styled Components Tooling.

Steps to reproduce

Expected Behavior

Documentation exists.

Actual Behavior

Documentation doesn't exist.

To be clear, it's not like the whole page needs to be duplicated for SWC ... but just providing some explanation of how to enter configuration options with SWC would be helpful.

@quantizor quantizor transferred this issue from styled-components/styled-components Apr 16, 2023
@quantizor
Copy link
Contributor

Looks like there's a nice plugin for that: https://www.npmjs.com/package/@swc/plugin-styled-components

If someone would like to put together a quick page, I'd appreciate it!

quantizor pushed a commit that referenced this issue Apr 4, 2024
* ID: 907; MSG : added SWC plugin docs

* ID: 907; MSG : updated snapshots

---------

Co-authored-by: Rishabh Kanojiya <[email protected]>
@bunmi-oye
Copy link

Hi @quantizor, looks like this issue has been fixed in #967. This issue should be closed!

@quantizor
Copy link
Contributor

Thanks :)

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

No branches or pull requests

3 participants