rwsdk 0.1.0-alpha.13 → 0.1.0-alpha.14

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.
@@ -59,11 +59,15 @@ export const configPlugin = ({ mode, silent, projectRootDir, clientEntryPathname
59
59
  },
60
60
  },
61
61
  },
62
+ resolve: {
63
+ conditions: ["browser", "module"],
64
+ },
62
65
  },
63
66
  ssr: {
64
67
  resolve: {
65
68
  conditions: [
66
69
  "workerd",
70
+ "module",
67
71
  // context(justinvdm, 11 Jun 2025): Some packages meant for cloudflare workers, yet
68
72
  // their deps have only node import conditions, e.g. `agents` package (meant for CF),
69
73
  // has `pkce-challenge` package as a dep, which has only node import conditions.
@@ -89,7 +93,6 @@ export const configPlugin = ({ mode, silent, projectRootDir, clientEntryPathname
89
93
  esbuildOptions: {
90
94
  jsx: "automatic",
91
95
  jsxImportSource: "react",
92
- conditions: ["workerd"],
93
96
  plugins: [],
94
97
  },
95
98
  },
@@ -109,6 +112,7 @@ export const configPlugin = ({ mode, silent, projectRootDir, clientEntryPathname
109
112
  conditions: [
110
113
  "workerd",
111
114
  "react-server",
115
+ "module",
112
116
  // context(justinvdm, 11 Jun 2025): Some packages meant for cloudflare workers, yet
113
117
  // their deps have only node import conditions, e.g. `agents` package (meant for CF),
114
118
  // has `pkce-challenge` package as a dep, which has only node import conditions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rwsdk",
3
- "version": "0.1.0-alpha.13",
3
+ "version": "0.1.0-alpha.14",
4
4
  "description": "Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime",
5
5
  "type": "module",
6
6
  "bin": {