mirror of
https://github.com/nestjs/docs.nestjs.com.git
synced 2026-02-22 04:41:31 +00:00
Merge pull request #3344 from jtomaszewski/patch-2
docs: Add SWC configuration example for JSX/TSX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user