Skip to content

Commit ff2dd9b

Browse files
committed
wip
1 parent 4d51c70 commit ff2dd9b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/ci-rsc.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
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
@@ -62,3 +65,30 @@ jobs:
6265
name: test-results-${{ matrix.os }}-${{ matrix.browser }}
6366
path: |
6467
packages/plugin-rsc/test-results
68+
69+
# test-e2e-rolldown:
70+
# name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }})
71+
# runs-on: ${{ matrix.os }}
72+
# strategy:
73+
# matrix:
74+
# os: [ubuntu-latest]
75+
# browser: [chromium]
76+
# steps:
77+
# - uses: actions/checkout@v4
78+
# - uses: actions/setup-node@v4
79+
# with:
80+
# node-version: 22
81+
# - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
82+
# - run: pnpm i -w vite@npm:rolldown-vite@latest
83+
# - run: pnpm i --no-frozen-lockfile
84+
# - run: pnpm build
85+
# - run: pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }}
86+
# - run: pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }}
87+
# env:
88+
# TEST_ISOLATED: true
89+
# - uses: actions/upload-artifact@v4
90+
# if: always()
91+
# with:
92+
# name: test-results-${{ matrix.os }}-${{ matrix.browser }}
93+
# path: |
94+
# packages/plugin-rsc/test-results

packages/plugin-rsc/examples/starter-cf-single/vite.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ export default defineConfig((_env) => ({
3131
rollupOptions: {
3232
// ensure `default` export only in cloudflare entry output
3333
preserveEntrySignatures: 'exports-only',
34+
platform: 'neutral',
35+
},
36+
},
37+
optimizeDeps: {
38+
rollupOptions: {
39+
platform: 'neutral',
3440
},
3541
},
3642
},
@@ -40,6 +46,7 @@ export default defineConfig((_env) => ({
4046
// build `ssr` inside `rsc` directory so that
4147
// wrangler can deploy self-contained `dist/rsc`
4248
outDir: './dist/rsc/ssr',
49+
platform: 'neutral',
4350
},
4451
},
4552
},

0 commit comments

Comments
 (0)