Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit eacb4ae

Browse files
committed
chore: update changelog
1 parent 47dd73b commit eacb4ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
## Unreleased
44

55
- Support Emotion via the new `jsxImportSource` option (fixes [#25](https://github.com/vitejs/vite-plugin-react-swc/issues/25))
6+
7+
To use it with Emotion, update your config to:
8+
9+
```ts
10+
export default defineConfig({
11+
plugins: [react({ jsxImportSource: "@emotion/react" })],
12+
});
13+
```
14+
615
- Fix HMR when using Vite `base` option (fixes [#18](https://github.com/vitejs/vite-plugin-react-swc/issues/18))
716
- Fix usage with workers (fixes [#23](https://github.com/vitejs/vite-plugin-react-swc/issues/23))
817
- Fix usage with `Vite Ruby` and `Laravel Vite` ([#20](https://github.com/vitejs/vite-plugin-react-swc/pull/20))

0 commit comments

Comments
 (0)