@farm.js/core 0.1.0-beta.8 → 0.1.0-beta.9

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/dist/index.cjs CHANGED
@@ -17071,7 +17071,7 @@ var init_environment_vite = __esm({
17071
17071
  var version;
17072
17072
  var init_package = __esm({
17073
17073
  "package.json"() {
17074
- version = "0.1.0-beta.8";
17074
+ version = "0.1.0-beta.9";
17075
17075
  }
17076
17076
  });
17077
17077
 
@@ -36532,14 +36532,11 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
36532
36532
  ".prisma/client",
36533
36533
  ".prisma/client/default"
36534
36534
  ],
36535
- // Don't externalize these - bundle them into the SSR output
36536
- // Keep this list minimal for faster builds
36537
- noExternal: [
36538
- "@farm.js/core",
36539
- "@farm.js/core/image",
36540
- "better-call",
36541
- ...preset === "cloudflare-module" ? [] : ["react", "react-dom", "react-dom/server"]
36542
- ]
36535
+ // Node deployments must bundle application dependencies with Farm's
36536
+ // React runtime. Leaving a React component package external can make it
36537
+ // resolve a second React instance at runtime and break hooks during SSR.
36538
+ // Native and build-only packages above remain explicitly external.
36539
+ noExternal: preset === "cloudflare-module" ? ["@farm.js/core", "@farm.js/core/image", "better-call"] : true
36543
36540
  },
36544
36541
  define: {
36545
36542
  __FARM_ENV__: JSON.stringify(config.env || { server: {}, public: {} }),