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

Finish auto accessor and stage 3 decorator #7193

Closed
kdy1 opened this issue Apr 3, 2023 · 4 comments · Fixed by #7370
Closed

Finish auto accessor and stage 3 decorator #7193

kdy1 opened this issue Apr 3, 2023 · 4 comments · Fixed by #7370
Assignees
Milestone

Comments

@kdy1
Copy link
Member

kdy1 commented Apr 3, 2023

Describe the feature

I implemented the stage 3 decorator partially with #6950, but I need to handle

  • logic for duplicate keys
  • auto accessors

I decided to split the PR as auto accessor is another task, and support for duplicate keys has significantly lower priority

@kdy1 kdy1 added this to the Planned milestone Apr 3, 2023
@kdy1 kdy1 self-assigned this Apr 3, 2023
@miso-belica
Copy link

Sorry for being nosy but the #5053 (reply in thread) is really confusing for me. Does this task mean finishing the whole spec of decorators as implemented in TSv5? I just want something to subscribe and know when it is done I can try swc again with my app. If this task is not the case, can you point me somewhere else, please? It seems you are the most competent person when it comes to decorators implementation in swc. Thank you for pushing this forward and your help 🙂

@yf-yang
Copy link

yf-yang commented Apr 12, 2023

@miso-belica I found this https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion, not sure when the doc was updated, in my scenario it works.

@yay
Copy link

yay commented Apr 12, 2023

@yf-yang Thanks for the link. Any idea how to use this with React SWC plugin?
vitejs/vite-plugin-react-swc#85

@swc-bot
Copy link
Collaborator

swc-bot commented Jun 14, 2023

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

5 participants