File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed
packages/plugin-rsc/examples Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,21 @@ jobs:
31
31
- run : pnpm -C packages/plugin-rsc test
32
32
33
33
test-e2e :
34
- name : test-rsc (${{ matrix.os }} / ${{ matrix.browser }})
34
+ name : test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) ${{ matrix.rolldown == true && '(rolldown)' || '' }}
35
35
runs-on : ${{ matrix.os }}
36
36
strategy :
37
- # TODO: shard?
38
37
matrix :
39
38
os : [ubuntu-latest, macos-latest, windows-latest]
40
39
browser : [chromium]
40
+ rolldown : [false]
41
41
include :
42
42
- os : ubuntu-latest
43
43
browser : firefox
44
44
- os : macos-latest
45
45
browser : webkit
46
+ - os : ubuntu-latest
47
+ browser : chromium
48
+ rolldown : true
46
49
fail-fast : false
47
50
steps :
48
51
- uses : actions/checkout@v4
52
55
- uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
53
56
- run : pnpm i
54
57
- run : pnpm build
58
+ - name : install rolldown
59
+ if : ${{ matrix.rolldown }}
60
+ run : |
61
+ echo 'overrides: { vite: "npm:rolldown-vite@latest" }' >> pnpm-workspace.yaml
62
+ pnpm i --no-frozen-lockfile
55
63
- run : pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }}
56
64
- run : pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }}
57
65
env :
Original file line number Diff line number Diff line change @@ -48,12 +48,24 @@ export default defineConfig({
48
48
include : [ 'react-router > cookie' , 'react-router > set-cookie-parser' ] ,
49
49
exclude : [ 'react-router' ] ,
50
50
} ,
51
+ build : {
52
+ rollupOptions : {
53
+ // @ts -ignore rolldown
54
+ platform : 'neutral' ,
55
+ } ,
56
+ } ,
51
57
} ,
52
58
rsc : {
53
59
optimizeDeps : {
54
60
include : [ 'react-router > cookie' , 'react-router > set-cookie-parser' ] ,
55
61
exclude : [ 'react-router' ] ,
56
62
} ,
63
+ build : {
64
+ rollupOptions : {
65
+ // @ts -ignore rolldown
66
+ platform : 'neutral' ,
67
+ } ,
68
+ } ,
57
69
} ,
58
70
} ,
59
71
} )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import rsc from '@vitejs/plugin-rsc'
3
3
import react from '@vitejs/plugin-react'
4
4
import { defineConfig } from 'vite'
5
5
6
- export default defineConfig ( ( _env ) => ( {
6
+ export default defineConfig ( {
7
7
clearScreen : false ,
8
8
build : {
9
9
minify : false ,
@@ -31,6 +31,14 @@ export default defineConfig((_env) => ({
31
31
rollupOptions : {
32
32
// ensure `default` export only in cloudflare entry output
33
33
preserveEntrySignatures : 'exports-only' ,
34
+ // @ts -ignore rolldown
35
+ platform : 'neutral' ,
36
+ } ,
37
+ } ,
38
+ optimizeDeps : {
39
+ // @ts -ignore rolldown
40
+ rollupOptions : {
41
+ platform : 'neutral' ,
34
42
} ,
35
43
} ,
36
44
} ,
@@ -43,4 +51,4 @@ export default defineConfig((_env) => ({
43
51
} ,
44
52
} ,
45
53
} ,
46
- } ) )
54
+ } )
You can’t perform that action at this time.
0 commit comments