Skip to content

Commit

Permalink
doc: add jsxImportSource option
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Feb 2, 2023
1 parent 9af763d commit 38d71f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/plugin-react/README.md
Expand Up @@ -33,6 +33,16 @@ react({
})
```

### Configure the JSX import source

Control where the JSX factory is imported from. This option is ignored for classic `jsxRuntime`.

```js
react({
jsxImportSource: '@emotion/react',
})
```

## Opting out of the automatic JSX runtime

By default, the plugin uses the [automatic JSX runtime](https://github.com/alloc/vite-react-jsx#faq). However, if you encounter any issues, you may opt out using the `jsxRuntime` option.
Expand Down

0 comments on commit 38d71f6

Please sign in to comment.