Skip to content

Commit db32d06

Browse files
committed
Add changelog
1 parent fe10694 commit db32d06

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

packages/plugin-react-oxc/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## Unreleased
44

5+
### Add support for compound components ([#518](https://github.com/vitejs/vite-plugin-react/pull/518))
6+
7+
HMR now works for compound components like this:
8+
9+
```tsx
10+
const Root = () => <div>Accordion Root</div>
11+
const Item = () => <div>Accordion Item</div>
12+
13+
export const Accordion = { Root, Item }
14+
```
15+
516
### Return `Plugin[]` instead of `PluginOption[]`
617

718
## 0.2.3 (2025-06-16)

packages/plugin-react-swc/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## Unreleased
44

5+
### Add support for compound components ([#518](https://github.com/vitejs/vite-plugin-react/pull/518))
6+
7+
HMR now works for compound components like this:
8+
9+
```tsx
10+
const Root = () => <div>Accordion Root</div>
11+
const Item = () => <div>Accordion Item</div>
12+
13+
export const Accordion = { Root, Item }
14+
```
15+
516
### Return `Plugin[]` instead of `PluginOption[]`
617

718
## 3.10.2 (2025-06-10)

packages/plugin-react/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## Unreleased
44

5+
### Add support for compound components ([#518](https://github.com/vitejs/vite-plugin-react/pull/518))
6+
7+
HMR now works for compound components like this:
8+
9+
```tsx
10+
const Root = () => <div>Accordion Root</div>
11+
const Item = () => <div>Accordion Item</div>
12+
13+
export const Accordion = { Root, Item }
14+
```
15+
516
### Return `Plugin[]` instead of `PluginOption[]`
617

718
The return type has changed from `react(): PluginOption[]` to more specialized type `react(): Plugin[]`. This allows for type-safe manipulation of plugins, for example:

0 commit comments

Comments
 (0)