We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904a062 commit 8c3929cCopy full SHA for 8c3929c
packages/plugin-rsc/examples/react-router/cf/vite.config.ts
@@ -36,19 +36,6 @@ export default defineConfig({
36
},
37
],
38
}),
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
52
53
environments: {
54
client: {
0 commit comments