Skip to content

Commit e984b2a

Browse files
committed
chore: simplify react-router cf config
1 parent de41c1c commit e984b2a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ export default defineConfig({
4545
},
4646
ssr: {
4747
optimizeDeps: {
48-
include: ['react-router > cookie', 'react-router > set-cookie-parser'],
4948
exclude: ['react-router'],
5049
},
5150
},
5251
rsc: {
5352
optimizeDeps: {
54-
include: ['react-router > cookie', 'react-router > set-cookie-parser'],
5553
exclude: ['react-router'],
5654
},
5755
},

packages/plugin-rsc/src/plugins/cjs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { createDebug } from '@hiogawa/utils'
1010
const debug = createDebug('vite-rsc:cjs')
1111

1212
export function cjsModuleRunnerPlugin(): Plugin[] {
13-
// use-sync-external-store is known to work fine so don't show warning
14-
const warnedPackages = new Set<string>(['use-sync-external-store'])
13+
const warnedPackages = new Set<string>()
1514

1615
return [
1716
{

0 commit comments

Comments
 (0)