Skip to content

Commit 8c3929c

Browse files
authored
chore(rsc): remove unused code (#550)
1 parent 904a062 commit 8c3929c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,6 @@ export default defineConfig({
3636
},
3737
],
3838
}),
39-
{
40-
name: 'react-router-fixup',
41-
transform(code) {
42-
if (code.includes(`import { AsyncLocalStorage } from 'async_hooks';`)) {
43-
code = code.replaceAll('async_hooks', 'node:async_hooks')
44-
code = code.replaceAll(
45-
`global.___reactRouterServerStorage___`,
46-
`globalThis.___reactRouterServerStorage___`,
47-
)
48-
return code
49-
}
50-
},
51-
},
5239
],
5340
environments: {
5441
client: {

0 commit comments

Comments
 (0)