Skip to content

Commit d12a11f

Browse files
authored
Merge branch 'main' into chore-rsc-nightly
2 parents dbe0ce7 + 533e8cd commit d12a11f

File tree

59 files changed

+763
-2331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+763
-2331
lines changed

.github/workflows/ci-rsc.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ jobs:
3232
- run: pnpm -C packages/plugin-rsc test
3333

3434
test-e2e:
35-
name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) ${{ matrix.rolldown == true && '(rolldown)' || '' }}
35+
name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) ${{ matrix.rolldown == true && '(rolldown)' || '' }} ${{ matrix.react_version && format('(react-{0})', matrix.react_version) || '' }}
3636
runs-on: ${{ matrix.os }}
3737
strategy:
3838
matrix:
3939
os: [ubuntu-latest, macos-latest, windows-latest]
4040
browser: [chromium]
4141
rolldown: [false]
42+
react_version: [""]
4243
include:
4344
- os: ubuntu-latest
4445
browser: firefox
@@ -47,6 +48,12 @@ jobs:
4748
- os: ubuntu-latest
4849
browser: chromium
4950
rolldown: true
51+
- os: ubuntu-latest
52+
browser: chromium
53+
react_version: canary
54+
- os: ubuntu-latest
55+
browser: chromium
56+
react_version: experimental
5057
fail-fast: false
5158
steps:
5259
- uses: actions/checkout@v4
@@ -55,6 +62,13 @@ jobs:
5562
node-version: 22
5663
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
5764
- run: pnpm i
65+
- name: install react
66+
if: ${{ matrix.react_version }}
67+
run: |
68+
sed -i "/^overrides:/a\ react: \"${{ matrix.react_version }}\"" pnpm-workspace.yaml
69+
sed -i "/^overrides:/a\ react-dom: \"${{ matrix.react_version }}\"" pnpm-workspace.yaml
70+
sed -i "/^overrides:/a\ react-server-dom-webpack: \"${{ matrix.react_version }}\"" pnpm-workspace.yaml
71+
pnpm i --no-frozen-lockfile
5872
- run: pnpm build
5973
- name: install rolldown
6074
if: ${{ matrix.rolldown }}
@@ -63,11 +77,9 @@ jobs:
6377
pnpm i --no-frozen-lockfile
6478
- run: pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }}
6579
- run: pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }}
66-
env:
67-
TEST_ISOLATED: true
6880
- uses: actions/upload-artifact@v4
6981
if: always()
7082
with:
71-
name: test-results-${{ matrix.os }}-${{ matrix.browser }}${{ matrix.rolldown == true && '-rolldown' || '' }}
83+
name: test-results-${{ matrix.os }}-${{ matrix.browser }}${{ matrix.rolldown == true && '-rolldown' || '' }}${{ matrix.react_version && format('-react-{0}', matrix.react_version) || '' }}
7284
path: |
7385
packages/plugin-rsc/test-results

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ jobs:
9393
- name: Test SWC
9494
run: pnpm --filter ./packages/plugin-react-swc run test
9595

96+
- name: Setup rolldown-vite
97+
run: |
98+
sed -i"" -e "s/overrides:/overrides:\n vite: catalog:rolldown-vite/" pnpm-workspace.yaml
99+
pnpm i --no-frozen-lockfile
100+
101+
- name: Test serve (rolldown-vite)
102+
run: pnpm run test-serve
103+
104+
- name: Test build (rolldown-vite)
105+
run: pnpm run test-build
106+
96107
lint:
97108
if: github.repository == 'vitejs/vite-plugin-react'
98109
timeout-minutes: 10

.github/workflows/issue-close-require.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write # for actions-cool/issues-helper to update PRs
1414
steps:
1515
- name: need reproduction
16-
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3
16+
uses: actions-cool/issues-helper@50068f49b7b2b3857270ead65e2d02e4459b022c # v3
1717
with:
1818
actions: "close-issues"
1919
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/issue-labeled.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: contribution welcome
1616
if: github.event.label.name == 'contribution welcome' || github.event.label.name == 'help wanted'
17-
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3
17+
uses: actions-cool/issues-helper@50068f49b7b2b3857270ead65e2d02e4459b022c # v3
1818
with:
1919
actions: "create-comment, remove-labels"
2020
token: ${{ secrets.GITHUB_TOKEN }}
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: remove pending
2727
if: (github.event.label.name == 'enhancement' || contains(github.event.label.description, '(priority)')) && contains(github.event.issue.labels.*.name, 'pending triage')
28-
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3
28+
uses: actions-cool/issues-helper@50068f49b7b2b3857270ead65e2d02e4459b022c # v3
2929
with:
3030
actions: "remove-labels"
3131
token: ${{ secrets.GITHUB_TOKEN }}
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: need reproduction
3636
if: github.event.label.name == 'need reproduction'
37-
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3
37+
uses: actions-cool/issues-helper@50068f49b7b2b3857270ead65e2d02e4459b022c # v3
3838
with:
3939
actions: "create-comment, remove-labels"
4040
token: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
"ci-publish": "tsx scripts/publishCI.ts"
3434
},
3535
"devDependencies": {
36-
"@eslint/js": "^9.31.0",
36+
"@eslint/js": "^9.32.0",
3737
"@types/fs-extra": "^11.0.4",
3838
"@types/node": "^22.16.5",
3939
"@vitejs/release-scripts": "^1.6.0",
40-
"eslint": "^9.31.0",
40+
"eslint": "^9.32.0",
4141
"eslint-plugin-import-x": "^4.16.1",
42-
"eslint-plugin-n": "^17.21.0",
42+
"eslint-plugin-n": "^17.21.2",
4343
"eslint-plugin-regexp": "^2.9.0",
4444
"fs-extra": "^11.3.0",
4545
"globals": "^16.3.0",
@@ -51,7 +51,7 @@
5151
"tsx": "^4.20.3",
5252
"typescript": "^5.8.3",
5353
"typescript-eslint": "^8.38.0",
54-
"vite": "^7.0.5",
54+
"vite": "^7.0.6",
5555
"vitest": "^3.2.4"
5656
},
5757
"simple-git-hooks": {

packages/plugin-react-oxc/CHANGELOG.md

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

33
## Unreleased
44

5+
## 0.4.0-beta.0 (2025-07-28)
6+
7+
### Deprecate this plugin
8+
9+
The changes of this plugin is now included in `@vitejs/plugin-react`. Please use `@vitejs/plugin-react` instead.
10+
511
### Allow processing files in `node_modules`
612

713
The default value of `exclude` options is now `[/\/node_modules\//]` to allow processing files in `node_modules` directory. It was previously `[]` and files in `node_modules` was always excluded regardless of the value of `exclude` option.

packages/plugin-react-oxc/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vitejs/plugin-react-oxc",
3-
"version": "0.3.0",
3+
"version": "0.4.0-beta.0",
44
"license": "MIT",
55
"author": "Evan You",
66
"contributors": [
@@ -44,7 +44,6 @@
4444
"devDependencies": {
4545
"@vitejs/react-common": "workspace:*",
4646
"tsdown": "^0.13.0",
47-
"unbuild": "^3.5.0",
4847
"vite": "catalog:rolldown-vite"
4948
},
5049
"dependencies": {

packages/plugin-react-oxc/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ export default function viteReact(opts: Options = {}): Plugin[] {
6262
},
6363
}
6464
},
65+
configResolved(config) {
66+
config.logger.warn(
67+
'@vitejs/plugin-react-oxc is deprecated. ' +
68+
'Please use @vitejs/plugin-react instead. ' +
69+
'The changes of this plugin is now included in @vitejs/plugin-react.',
70+
)
71+
},
6572
options() {
6673
if (!this.meta.rolldownVersion) {
6774
throw new Error(

packages/plugin-react-swc/CHANGELOG.md

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

33
## Unreleased
44

5+
## 4.0.0-beta.0 (2025-07-28)
6+
57
### Require Node 20.19+, 22.12+
68

79
This plugin now requires Node 20.19+ or 22.12+.

packages/plugin-react-swc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vitejs/plugin-react-swc",
3-
"version": "3.11.0",
3+
"version": "4.0.0-beta.0",
44
"license": "MIT",
55
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",
66
"description": "Speed up your Vite dev server with SWC",
@@ -33,7 +33,7 @@
3333
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc#readme",
3434
"dependencies": {
3535
"@rolldown/pluginutils": "1.0.0-beta.29",
36-
"@swc/core": "^1.12.11"
36+
"@swc/core": "^1.13.2"
3737
},
3838
"peerDependencies": {
3939
"vite": "^4 || ^5 || ^6 || ^7"

0 commit comments

Comments
 (0)