swc-project / swc-project/plugins
How to determine whether transpilation is for the client-side or for the server-side?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 389
- Forks
- 106
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Hi, author of Telefunc here; we'd love to write a SWC plugin for it.
The Telefunc transformer's result is different depending on whether the code is being transpiled for the client-side or for the server-side. Is there a way to get that information from within a SWC plugin?
I've been looking at current SWC plugins (swc-project/plugins) but I couldn't find any client/server discrimination so far.
Looking forward to supporting Next.js 13's --turbo development.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the SWC plugin examples in swc-project/plugins and the plugin API, then compare them with Telefunc's stated need to distinguish client-side from server-side transpilation. Done means establishing whether a supported client/server signal exists for plugins and documenting the relevant approach or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, rust
- Domain
- compilers, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100