Skip to content

Commit

Permalink
Update jsx-pragma.mdx
Browse files Browse the repository at this point in the history
AFAIK Vite bundles with Rollup for prod and doesn't bundle at all in development.

https://vitejs.dev/guide/why.html#why-not-bundle-with-esbuild

cc @lachlanjc
  • Loading branch information
hasparus committed Feb 9, 2022
1 parent 3003ff4 commit f31e484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/pages/guides/jsx-pragma.mdx
Expand Up @@ -189,7 +189,7 @@ In `jsconfig.json` or `tsconfig.json` (since Next.js 12.0.4):

### Using Vite

Vite use [`esbuild`](https://esbuild.github.io) to bundle source files.
Vite transpiles JSX using [`esbuild`](https://esbuild.github.io).
[Per Vite documentation](https://vitejs.dev/guide/features.html#jsx), configure the pragma project-wide like this:

```js filename=vite.config.js
Expand Down

0 comments on commit f31e484

Please sign in to comment.