@ivogt/rsc-router 0.0.0-experimental.5 → 0.0.0-experimental.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivogt/rsc-router",
3
- "version": "0.0.0-experimental.5",
3
+ "version": "0.0.0-experimental.6",
4
4
  "type": "module",
5
5
  "description": "Type-safe RSC router with partial rendering support",
6
6
  "author": "Ivo Todorov",
package/src/vite/index.ts CHANGED
@@ -649,8 +649,10 @@ export async function rscRouter(
649
649
  },
650
650
  },
651
651
  rsc: {
652
- // RSC environment also needs esbuild options for version virtual module
652
+ // RSC environment needs exclude list and esbuild options
653
+ // Exclude rsc-router modules to prevent createContext in RSC environment
653
654
  optimizeDeps: {
655
+ exclude: RSC_ROUTER_EXCLUDE_DEPS,
654
656
  esbuildOptions: sharedEsbuildOptions,
655
657
  },
656
658
  },