Merge pull request #3344 from jtomaszewski/patch-2

docs: Add SWC configuration example for JSX/TSX
This commit is contained in:
Kamil Mysliwiec
2025-11-07 09:42:28 +01:00
committed by GitHub

View File

@@ -49,6 +49,20 @@ To customize builder's behavior, you can pass an object containing two attribute
}
```
For example, to make the swc compile `.jsx` and `.tsx` files, do:
```json
{
"compilerOptions": {
"builder": {
"type": "swc",
"options": { "extensions": [".ts", ".tsx", ".js", ".jsx"] }
},
}
}
```
To run the application in watch mode, use the following command:
```bash