@timber-js/app 0.1.41 → 0.1.42

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.js CHANGED
@@ -14274,9 +14274,13 @@ function isReactVendor(id) {
14274
14274
  }
14275
14275
  /**
14276
14276
  * Check if a module is part of the timber framework runtime (tier 2).
14277
+ *
14278
+ * Matches both monorepo paths (packages/timber-app/...) and consumer
14279
+ * project paths (node_modules/@timber-js/app/...) so the chunk
14280
+ * assignment is consistent regardless of how timber is installed.
14277
14281
  */
14278
14282
  function isTimberRuntime(id) {
14279
- return id.includes("/timber-app/") || id.includes("react-server-dom") || id.includes("@vitejs/plugin-rsc");
14283
+ return id.includes("/timber-app/") || id.includes("/@timber-js/app/") || id.includes("react-server-dom") || id.includes("@vitejs/plugin-rsc");
14280
14284
  }
14281
14285
  /**
14282
14286
  * Check if a module is a user-installed node_modules dependency (tier 3).
@@ -14318,7 +14322,7 @@ function assignChunk(id) {
14318
14322
  * a ~100-300 byte re-export wrapper chunk.
14319
14323
  */
14320
14324
  function assignClientChunk(meta) {
14321
- if (meta.id.includes("/timber-app/")) return "vendor-timber";
14325
+ if (meta.id.includes("/timber-app/") || meta.id.includes("/@timber-js/app/")) return "vendor-timber";
14322
14326
  if (!meta.id.includes("\0") && meta.id.startsWith("/")) {
14323
14327
  if (getSourceSize(meta.id) < SMALL_MODULE_THRESHOLD) return "shared-client";
14324
14328
  }