diff --git a/content/recipes/swc.md b/content/recipes/swc.md index 8fe8c3e9..5a178002 100644 --- a/content/recipes/swc.md +++ b/content/recipes/swc.md @@ -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