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

Ask for support of decortors in jsx! #1392

Closed
DawnLck opened this issue Jun 23, 2021 · 2 comments
Closed

Ask for support of decortors in jsx! #1392

DawnLck opened this issue Jun 23, 2021 · 2 comments

Comments

@DawnLck
Copy link

DawnLck commented Jun 23, 2021

Such as @connect in a file like 'index.jsx'

@evanw
Copy link
Owner

evanw commented Jun 23, 2021

You can do this by causing the file to be treated as TSX instead. But you will end up using TypeScript-style decorators, which will not necessarily behave the way JS decorators will behave when/if they are eventually standardized. This can be done with --loader:.jsx=tsx for example.

@DawnLck
Copy link
Author

DawnLck commented Jun 23, 2021

Thx for your quick reply

@DawnLck DawnLck closed this as completed Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants