-
I want to compile React code. How should I configure my |
Beta Was this translation helpful? Give feedback.
Answered by
marcenacp
Jul 2, 2021
Replies: 2 comments 5 replies
-
Example:
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
marcenacp
-
If you're using typescript and {
"$schema": "https://json.schemastore.org/swcrc",
"test": ".(j|t)sx?$",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true
},
"transform": {
"react": {
"runtime": "automatic"
}
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.swrc
accepts a list of configurations, so you can add several parsers.Example: