Skip to content

Commit

Permalink
add vite swc example
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtGokhan committed Jun 11, 2023
1 parent a87b7d6 commit 849bc0e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ export default defineConfig({

</TabItem>

<TabItem value="vite-swc" label="Vite SWC">

```js title="vite.config.js"
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';

export default defineConfig({
plugins: [
react({
jsxImportSource: 'jsx-middlewares/react',
}),
],
});
```

</TabItem>

<TabItem value="webpack" label="Webpack">

```js title="webpack.config.js"
Expand Down

0 comments on commit 849bc0e

Please sign in to comment.