@timber-js/app 0.1.41 → 0.1.43
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/client/index.js +31 -14
- package/dist/client/index.js.map +1 -1
- package/dist/client/navigation-context.d.ts.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/plugins/chunks.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/client/navigation-context.ts +35 -14
- package/src/plugins/chunks.ts +7 -1
package/dist/index.js
CHANGED
|
@@ -12872,7 +12872,8 @@ function detectDynamicFontCallAst(source, importedNames) {
|
|
|
12872
12872
|
} catch {
|
|
12873
12873
|
return null;
|
|
12874
12874
|
}
|
|
12875
|
-
|
|
12875
|
+
const nameSet = new Set(importedNames);
|
|
12876
|
+
return walkForDynamicCalls(ast, nameSet, source);
|
|
12876
12877
|
}
|
|
12877
12878
|
/**
|
|
12878
12879
|
* Recursively walk the AST looking for CallExpression nodes where
|
|
@@ -14274,9 +14275,13 @@ function isReactVendor(id) {
|
|
|
14274
14275
|
}
|
|
14275
14276
|
/**
|
|
14276
14277
|
* Check if a module is part of the timber framework runtime (tier 2).
|
|
14278
|
+
*
|
|
14279
|
+
* Matches both monorepo paths (packages/timber-app/...) and consumer
|
|
14280
|
+
* project paths (node_modules/@timber-js/app/...) so the chunk
|
|
14281
|
+
* assignment is consistent regardless of how timber is installed.
|
|
14277
14282
|
*/
|
|
14278
14283
|
function isTimberRuntime(id) {
|
|
14279
|
-
return id.includes("/timber-app/") || id.includes("react-server-dom") || id.includes("@vitejs/plugin-rsc");
|
|
14284
|
+
return id.includes("/timber-app/") || id.includes("/@timber-js/app/") || id.includes("react-server-dom") || id.includes("@vitejs/plugin-rsc");
|
|
14280
14285
|
}
|
|
14281
14286
|
/**
|
|
14282
14287
|
* Check if a module is a user-installed node_modules dependency (tier 3).
|
|
@@ -14318,7 +14323,7 @@ function assignChunk(id) {
|
|
|
14318
14323
|
* a ~100-300 byte re-export wrapper chunk.
|
|
14319
14324
|
*/
|
|
14320
14325
|
function assignClientChunk(meta) {
|
|
14321
|
-
if (meta.id.includes("/timber-app/")) return "vendor-timber";
|
|
14326
|
+
if (meta.id.includes("/timber-app/") || meta.id.includes("/@timber-js/app/")) return "vendor-timber";
|
|
14322
14327
|
if (!meta.id.includes("\0") && meta.id.startsWith("/")) {
|
|
14323
14328
|
if (getSourceSize(meta.id) < SMALL_MODULE_THRESHOLD) return "shared-client";
|
|
14324
14329
|
}
|