Skip to content

Commit f288b34

Browse files
authored
Merge branch 'main' into test-stable-react-chunks
2 parents 875ae87 + b1d63a8 commit f288b34

Some content is hidden

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

82 files changed

+1471
-1182
lines changed

.github/renovate.json5

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@
3636
// manually bumping
3737
"node",
3838

39-
"generouted", // testing lib shipping JSX (new version ship transpiled JS)
40-
4139
// breaking changes
4240
"source-map", // `source-map:v0.7.0+` needs more investigation
4341
"kill-port", // `kill-port:^2.0.0 has perf issues (#8392)
4442

4543
"prettier", // waiting for stable choice on ternaries
44+
45+
// plugin-rsc
46+
"react-router",
47+
"@react-router/dev",
4648
],
4749
}

.github/workflows/ci-rsc.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,21 @@ jobs:
3131
- run: pnpm -C packages/plugin-rsc test
3232

3333
test-e2e:
34-
name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }})
34+
name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) ${{ matrix.rolldown == true && '(rolldown)' || '' }}
3535
runs-on: ${{ matrix.os }}
3636
strategy:
37-
# TODO: shard?
3837
matrix:
3938
os: [ubuntu-latest, macos-latest, windows-latest]
4039
browser: [chromium]
40+
rolldown: [false]
4141
include:
4242
- os: ubuntu-latest
4343
browser: firefox
4444
- os: macos-latest
4545
browser: webkit
46+
- os: ubuntu-latest
47+
browser: chromium
48+
rolldown: true
4649
fail-fast: false
4750
steps:
4851
- uses: actions/checkout@v4
@@ -52,13 +55,18 @@ jobs:
5255
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
5356
- run: pnpm i
5457
- run: pnpm build
58+
- name: install rolldown
59+
if: ${{ matrix.rolldown }}
60+
run: |
61+
sed -i '/^overrides:/a\ vite: "npm:rolldown-vite@latest"' pnpm-workspace.yaml
62+
pnpm i --no-frozen-lockfile
5563
- run: pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }}
5664
- run: pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }}
5765
env:
5866
TEST_ISOLATED: true
5967
- uses: actions/upload-artifact@v4
6068
if: always()
6169
with:
62-
name: test-results-${{ matrix.os }}-${{ matrix.browser }}
70+
name: test-results-${{ matrix.os }}-${{ matrix.browser }}${{ matrix.rolldown == true && '-rolldown' || '' }}
6371
path: |
6472
packages/plugin-rsc/test-results

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,17 @@ jobs:
5555
env:
5656
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5757

58-
- if: steps.tag.outputs.isAlpha == 'false'
58+
- if: steps.tag.outputs.isAlpha == 'false' && steps.tag.outputs.pkgName != 'plugin-rsc'
5959
uses: ArnaudBarre/github-release@4fa6eafe8e2449c7c1c5a91ae50de4ee34db0b40 # v1.5.0
6060
with:
6161
path: packages/${{ steps.tag.outputs.pkgName }}/CHANGELOG.md
6262
tag-name: ${{ github.ref_name }}
63+
64+
- if: steps.tag.outputs.isAlpha == 'false' && steps.tag.outputs.pkgName == 'plugin-rsc'
65+
uses: yyx990803/release-tag@master
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
with:
69+
tag_name: ${{ github.ref }}
70+
body: |
71+
Please refer to [CHANGELOG.md](https://github.com/vitejs/vite-plugin-react/blob/${{ github.ref_name }}/packages/${{ steps.tag.outputs.pkgName }}/CHANGELOG.md) for details.

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ This repo is a monorepo using pnpm workspaces. The package manager used to insta
1313
- Checkout a topic branch from a base branch (e.g. `main`), and merge back against that branch.
1414

1515
- If adding a new feature:
16-
1716
- Add accompanying test case.
1817
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first, and have it approved before working on it.
1918

2019
- If fixing a bug:
21-
2220
- If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log (e.g. `fix: update entities encoding/decoding (fix #3899)`).
2321
- Provide a detailed description of the bug in the PR. Live demo preferred.
2422
- Add appropriate test coverage if applicable.

package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
"@vitejs/release-scripts": "^1.6.0",
4040
"eslint": "^9.30.1",
4141
"eslint-plugin-import-x": "^4.16.1",
42-
"eslint-plugin-n": "^17.20.0",
42+
"eslint-plugin-n": "^17.21.0",
4343
"eslint-plugin-regexp": "^2.9.0",
4444
"fs-extra": "^11.3.0",
4545
"globals": "^16.3.0",
4646
"lint-staged": "^15.5.2",
4747
"picocolors": "^1.1.1",
4848
"playwright-chromium": "^1.53.2",
49-
"prettier": "^3.0.3",
49+
"prettier": "^3.6.2",
5050
"simple-git-hooks": "^2.13.0",
5151
"tsx": "^4.20.3",
5252
"typescript": "^5.8.3",
@@ -70,15 +70,5 @@
7070
"playground/**/__tests__/**/*.ts": [
7171
"eslint --cache --fix"
7272
]
73-
},
74-
"pnpm": {
75-
"packageExtensions": {
76-
"generouted": {
77-
"peerDependencies": {
78-
"react": "*",
79-
"react-router-dom": "*"
80-
}
81-
}
82-
}
8373
}
8474
}

packages/plugin-react-oxc/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+
### Return `Plugin[]` instead of `PluginOption[]`
6+
57
## 0.2.3 (2025-06-16)
68

79
### Disable refresh transform when `server.hmr: false` is set [#502](https://github.com/vitejs/vite-plugin-react/pull/502)

packages/plugin-react-oxc/build.config.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/plugin-react-oxc/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"dist"
2121
],
2222
"type": "module",
23-
"types": "./dist/index.d.mts",
24-
"exports": "./dist/index.mjs",
23+
"types": "./dist/index.d.ts",
24+
"exports": "./dist/index.js",
2525
"scripts": {
26-
"dev": "unbuild --stub",
27-
"build": "unbuild && tsx scripts/copyRefreshRuntime.ts",
26+
"dev": "tsdown --watch",
27+
"build": "tsdown",
2828
"prepublishOnly": "npm run build"
2929
},
3030
"engines": {
@@ -44,10 +44,11 @@
4444
},
4545
"devDependencies": {
4646
"@vitejs/react-common": "workspace:*",
47+
"tsdown": "^0.12.9",
4748
"unbuild": "^3.5.0",
4849
"vite": "catalog:rolldown-vite"
4950
},
5051
"dependencies": {
51-
"@rolldown/pluginutils": "1.0.0-beta.23"
52+
"@rolldown/pluginutils": "1.0.0-beta.24"
5253
}
5354
}

packages/plugin-react-oxc/scripts/copyRefreshRuntime.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/plugin-react-oxc/src/build.d.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)