Skip to content

Commit 97eb223

Browse files
committed
test: fix ts
1 parent d84d6a9 commit 97eb223

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

packages/plugin-rsc/examples/react-router/cf/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default defineConfig({
5050
},
5151
build: {
5252
rollupOptions: {
53-
// @ts-ignore rolldown only
53+
// @ts-ignore rolldown
5454
platform: 'neutral',
5555
},
5656
},
@@ -62,7 +62,7 @@ export default defineConfig({
6262
},
6363
build: {
6464
rollupOptions: {
65-
// @ts-ignore rolldown only
65+
// @ts-ignore rolldown
6666
platform: 'neutral',
6767
},
6868
},

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import rsc from '@vitejs/plugin-rsc'
33
import react from '@vitejs/plugin-react'
44
import { defineConfig } from 'vite'
55

6-
export default defineConfig((_env) => ({
6+
export default defineConfig({
77
clearScreen: false,
88
build: {
99
minify: false,
@@ -31,10 +31,12 @@ export default defineConfig((_env) => ({
3131
rollupOptions: {
3232
// ensure `default` export only in cloudflare entry output
3333
preserveEntrySignatures: 'exports-only',
34+
// @ts-ignore rolldown
3435
platform: 'neutral',
3536
},
3637
},
3738
optimizeDeps: {
39+
// @ts-ignore rolldown
3840
rollupOptions: {
3941
platform: 'neutral',
4042
},
@@ -46,8 +48,11 @@ export default defineConfig((_env) => ({
4648
// build `ssr` inside `rsc` directory so that
4749
// wrangler can deploy self-contained `dist/rsc`
4850
outDir: './dist/rsc/ssr',
49-
platform: 'neutral',
51+
rollupOptions: {
52+
// @ts-ignore rolldown
53+
platform: 'neutral',
54+
},
5055
},
5156
},
5257
},
53-
}))
58+
})

0 commit comments

Comments
 (0)