From 38d71f6e864c5ee347d0e3c0ef3adcc94c265e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Thu, 2 Feb 2023 12:29:30 +0100 Subject: [PATCH] doc: add jsxImportSource option --- packages/plugin-react/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/plugin-react/README.md b/packages/plugin-react/README.md index ea2923d..1a46c9a 100644 --- a/packages/plugin-react/README.md +++ b/packages/plugin-react/README.md @@ -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.