@farm.js/core 0.1.71 → 0.1.73
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/{agent-mcp-handler-VIT4GOSR.mjs → agent-mcp-handler-RK7LDYEL.mjs} +5 -5
- package/dist/{agent-mcp-handler-KE4J3W7S.cjs → agent-mcp-handler-VBCA3WZ6.cjs} +6 -6
- package/dist/{agent-mcp.d-BzNw6JI8.d.ts → agent-mcp.d-D_gHjCAE.d.ts} +2 -2
- package/dist/{agent-mcp.d-CgFen3EH.d.mts → agent-mcp.d-PvEf-1mi.d.mts} +2 -2
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/{analyzer-VK3BAOFI.mjs → analyzer-MFYCJT75.mjs} +2 -2
- package/dist/analyzer-V5ZMRIIY.cjs +16 -0
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/route-manager.cjs +7 -6
- package/dist/api/route-manager.d.mts +8 -8
- package/dist/api/route-manager.d.ts +8 -8
- package/dist/api/route-manager.mjs +6 -5
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api.cjs +8 -7
- package/dist/api.d.mts +9 -9
- package/dist/api.d.ts +9 -9
- package/dist/api.mjs +7 -6
- package/dist/{app-manifest.d-DY4JfJxi.d.ts → app-manifest.d-BpVTg43i.d.ts} +1 -1
- package/dist/{app-manifest.d-DpDK_B1k.d.mts → app-manifest.d-CN7cEWHX.d.mts} +1 -1
- package/dist/app-markdown.cjs +4 -4
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/app-markdown.mjs +3 -3
- package/dist/{app.d-D-5UNrFd.d.mts → app.d-BFWzAdTe.d.mts} +54 -6
- package/dist/{app.d-BeK6bb1c.d.ts → app.d-DO4PTCWm.d.ts} +54 -6
- package/dist/{chunk-7A3URI2F.mjs → chunk-2EVESLP3.mjs} +8 -1
- package/dist/{chunk-IYDJNCR7.mjs → chunk-462MUII7.mjs} +10 -5
- package/dist/{chunk-MWUDEYBI.mjs → chunk-4CTCSKAF.mjs} +1 -1
- package/dist/{chunk-SXMWVP2L.cjs → chunk-4YHGQDTT.cjs} +12 -12
- package/dist/{chunk-YCNHUIPR.cjs → chunk-4Z3YLMSW.cjs} +10 -10
- package/dist/{chunk-K66JILV3.cjs → chunk-5LOARKDP.cjs} +2 -2
- package/dist/{chunk-O32QPFVV.cjs → chunk-5PDMBWAF.cjs} +5 -5
- package/dist/{chunk-IGXS54GC.mjs → chunk-6O6PAZZR.mjs} +1 -1
- package/dist/{chunk-LXEJNWF5.mjs → chunk-73K53YPP.mjs} +2 -2
- package/dist/{chunk-2CQC5CMD.mjs → chunk-7GMBETHM.mjs} +1 -1
- package/dist/{chunk-W2T6NDNP.mjs → chunk-B67CW2LM.mjs} +2 -2
- package/dist/{chunk-CSQPMV3Q.cjs → chunk-CLEWORVY.cjs} +6 -6
- package/dist/{chunk-KPJYBSHL.mjs → chunk-CPMME66W.mjs} +149 -22
- package/dist/{chunk-BBPDJGCU.cjs → chunk-CYOTNHDF.cjs} +2 -2
- package/dist/{chunk-4OD2LXF2.mjs → chunk-CYRIIVD4.mjs} +26 -15
- package/dist/{chunk-DPIGYXSV.mjs → chunk-FRO4BB2T.mjs} +1 -1
- package/dist/{chunk-Y2SZVIVH.cjs → chunk-GPICBTDV.cjs} +8 -1
- package/dist/{chunk-N3XO5AL5.cjs → chunk-GPO3LJDJ.cjs} +2 -2
- package/dist/{chunk-MITIAOUQ.mjs → chunk-GZOKWJIW.mjs} +4 -4
- package/dist/{chunk-NAXKOTPP.cjs → chunk-HFUOLILA.cjs} +21 -21
- package/dist/{chunk-C2JOS77Z.cjs → chunk-HGB4PM2C.cjs} +178 -51
- package/dist/{chunk-2IFT2CSA.cjs → chunk-HTXKSREF.cjs} +515 -151
- package/dist/{chunk-Z3GPAFIA.mjs → chunk-HY6IVQ54.mjs} +1 -1
- package/dist/{chunk-X7LGLF33.mjs → chunk-IBVN7SW5.mjs} +480 -116
- package/dist/{chunk-DPYBVVL3.cjs → chunk-ILQ5DKYF.cjs} +2 -2
- package/dist/{chunk-V25GSH43.mjs → chunk-IXZSBO76.mjs} +1 -1
- package/dist/{chunk-RJUCNO7R.mjs → chunk-JMOCMXTQ.mjs} +1 -1
- package/dist/{chunk-UISZLYKY.cjs → chunk-KDOZORJD.cjs} +52 -41
- package/dist/{chunk-PLXD2MJV.cjs → chunk-KTDG4THT.cjs} +2 -2
- package/dist/{chunk-L6E4SHUB.cjs → chunk-LGR7565L.cjs} +6 -6
- package/dist/chunk-LRPPXKCX.mjs +58 -0
- package/dist/{chunk-GUU3IZSM.mjs → chunk-MJEKMT6B.mjs} +324 -148
- package/dist/chunk-NDOE76QC.cjs +58 -0
- package/dist/{chunk-2AM26UGI.cjs → chunk-NLBK37HI.cjs} +5 -4
- package/dist/{chunk-REP6HWJN.mjs → chunk-OBYM5S5G.mjs} +2 -2
- package/dist/{chunk-ZUVAGMQ5.cjs → chunk-ODBM54RT.cjs} +7 -7
- package/dist/{chunk-J5ASGNKF.mjs → chunk-OIP62QEL.mjs} +1 -1
- package/dist/{chunk-KEB7AGS6.cjs → chunk-OXNZUCHN.cjs} +16 -11
- package/dist/{chunk-2MR4MABG.cjs → chunk-PXAHSCR6.cjs} +58 -8
- package/dist/{chunk-7BUE2GM6.mjs → chunk-QGCSUC5O.mjs} +174 -81
- package/dist/{chunk-VXB5CMNC.cjs → chunk-QKEZLYON.cjs} +2 -2
- package/dist/{chunk-UQUOSNRN.mjs → chunk-REK6HZSU.mjs} +470 -267
- package/dist/{chunk-E77IA5IF.mjs → chunk-RLFGKJQ6.mjs} +1 -1
- package/dist/{chunk-3BQ7QHUH.cjs → chunk-ROCF6UQD.cjs} +17 -8
- package/dist/{chunk-KQAB5LML.mjs → chunk-SUQACHER.mjs} +2 -2
- package/dist/{chunk-NA77GEIU.mjs → chunk-SVQX5HYW.mjs} +53 -3
- package/dist/{chunk-KWST2O22.cjs → chunk-TAU3OF5B.cjs} +611 -435
- package/dist/{chunk-ZPUAOKHV.cjs → chunk-TDCP3Z4T.cjs} +3 -3
- package/dist/{chunk-3AUINHFG.mjs → chunk-TNYC3TYP.mjs} +3 -2
- package/dist/{chunk-TP4RAV7Y.cjs → chunk-TU6VAH4V.cjs} +8 -8
- package/dist/{chunk-MEJCP2LX.cjs → chunk-UVQRMUAR.cjs} +1 -1
- package/dist/{chunk-JMFTKNBA.mjs → chunk-UVZMSRHF.mjs} +2 -2
- package/dist/{chunk-MU5V7XHL.mjs → chunk-VJSXPN3W.mjs} +3 -0
- package/dist/{chunk-DU4VHHPJ.mjs → chunk-VO55MMBX.mjs} +1 -1
- package/dist/{chunk-GF22VGMS.cjs → chunk-VPETSSWN.cjs} +2 -2
- package/dist/{chunk-LDVJIBGN.mjs → chunk-VT25ERQK.mjs} +1 -1
- package/dist/{chunk-AYVGD3PK.mjs → chunk-XI3OXOMK.mjs} +1 -1
- package/dist/{chunk-7OHJWFLB.cjs → chunk-XUSJVHHD.cjs} +466 -373
- package/dist/{chunk-FILXOEWD.cjs → chunk-YXIQYWOK.cjs} +2 -2
- package/dist/{chunk-JVA4PIYN.cjs → chunk-YZK64PZT.cjs} +635 -432
- package/dist/{chunk-THG2TVDH.mjs → chunk-YZLEOMMA.mjs} +3 -3
- package/dist/{chunk-QUFENL7Q.mjs → chunk-Z3IN6GEX.mjs} +16 -7
- package/dist/{chunk-Q5HMVGR5.cjs → chunk-ZFEJ2SF2.cjs} +13 -13
- package/dist/{chunk-LNVGXUL3.cjs → chunk-ZMSVKVI3.cjs} +3 -0
- package/dist/{client-component.d-DwpH251K.d.mts → client-component.d-C71rMuHF.d.mts} +2 -2
- package/dist/{client-component.d-fYupugbZ.d.ts → client-component.d-sF-Znk0j.d.ts} +2 -2
- package/dist/{client-plugins.d-k3bOT5gz.d.mts → client-plugins.d-B-Gd9mWR.d.mts} +5 -4
- package/dist/{client-plugins.d-BxqFfHpM.d.ts → client-plugins.d-MFibjgBg.d.ts} +5 -4
- package/dist/client-plugins.d.mts +4 -4
- package/dist/client-plugins.d.ts +4 -4
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +9 -9
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +1 -1
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/desktop.d.mts +5 -5
- package/dist/desktop.d.ts +5 -5
- package/dist/{devtools-O5625KCK.cjs → devtools-6K4QXFRL.cjs} +7 -7
- package/dist/{devtools-6MXPFPNJ.mjs → devtools-TDIJ6HVC.mjs} +6 -6
- package/dist/docs.cjs +10 -10
- package/dist/docs.d.mts +5 -5
- package/dist/docs.d.ts +5 -5
- package/dist/docs.mjs +9 -9
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/{headers.d-sNT7ZQiU.d.mts → headers.d-BUxGJTsj.d.mts} +2 -2
- package/dist/{headers.d-DalIGbVO.d.ts → headers.d-uQ6BR59u.d.ts} +2 -2
- package/dist/i18n/client.cjs +3 -2
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/client.mjs +2 -1
- package/dist/i18n/index.cjs +3 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.mjs +2 -1
- package/dist/i18n/server.cjs +6 -5
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +5 -4
- package/dist/index.cjs +32 -30
- package/dist/{index.d-BcA-secm.d.ts → index.d-BCGfxCXY.d.ts} +1 -1
- package/dist/{index.d-DDHHAv7j.d.mts → index.d-CuWOJ-un.d.mts} +1 -1
- package/dist/index.d.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.mjs +31 -29
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +5 -5
- package/dist/internal/app-markdown-runtime.d.ts +5 -5
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +29 -29
- package/dist/internal/build-runtime.d.mts +6 -6
- package/dist/internal/build-runtime.d.ts +6 -6
- package/dist/internal/build-runtime.mjs +28 -28
- package/dist/internal/cli-runtime.cjs +12 -12
- package/dist/internal/cli-runtime.mjs +11 -11
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +2 -2
- package/dist/internal/client-runtime.d.mts +7 -7
- package/dist/internal/client-runtime.d.ts +7 -7
- package/dist/internal/client-runtime.mjs +3 -3
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.cjs +8 -8
- package/dist/internal/config-runtime.d.mts +7 -7
- package/dist/internal/config-runtime.d.ts +7 -7
- package/dist/internal/config-runtime.mjs +7 -7
- package/dist/internal/infra-analytics-runtime.cjs +10 -10
- package/dist/internal/infra-analytics-runtime.mjs +8 -8
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +19 -19
- package/dist/internal/production-runtime.d.mts +37 -25
- package/dist/internal/production-runtime.d.ts +37 -25
- package/dist/internal/production-runtime.mjs +18 -18
- package/dist/internal/vercel-edge-middleware.d.mts +2 -2
- package/dist/internal/vercel-edge-middleware.d.ts +2 -2
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +3 -3
- package/dist/middleware.d.mts +5 -5
- package/dist/middleware.d.ts +5 -5
- package/dist/middleware.mjs +2 -2
- package/dist/mobile.d.mts +3 -3
- package/dist/mobile.d.ts +3 -3
- package/dist/{mount.d-C1PONsEe.d.mts → mount.d-BIYmcGGg.d.mts} +1 -1
- package/dist/{mount.d-D3JOux2V.d.ts → mount.d-q8k0cJV0.d.ts} +1 -1
- package/dist/{native-tree-L2IIEBXH.mjs → native-tree-OYGKP2NZ.mjs} +2 -2
- package/dist/{native-tree-GF4BH33L.cjs → native-tree-R6CQMDTI.cjs} +3 -3
- package/dist/{navigation-delegate.d-CQQPbdkE.d.ts → navigation-delegate.d-Btfs6Uoa.d.ts} +1 -1
- package/dist/{navigation-delegate.d-CJQQHboA.d.mts → navigation-delegate.d-CYBUupsv.d.mts} +1 -1
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/{observability.d-B2363jB6.d.mts → observability.d-DdJRiaIX.d.mts} +27 -3
- package/dist/{observability.d-B2363jB6.d.ts → observability.d-DdJRiaIX.d.ts} +27 -3
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +21 -21
- package/dist/plugin.d.mts +7 -7
- package/dist/plugin.d.ts +7 -7
- package/dist/plugin.mjs +20 -20
- package/dist/{production-runtime.d-B0IeWWyO.d.mts → production-runtime.d-Bcu37SCo.d.mts} +1 -1
- package/dist/{production-runtime.d-q3aHIv5Y.d.ts → production-runtime.d-qPj3XRET.d.ts} +1 -1
- package/dist/{render-plan.d-DHuJMJRP.d.ts → render-plan.d-0FHusf1D.d.ts} +1 -1
- package/dist/{render-plan.d-CiUj0rq5.d.mts → render-plan.d-BlyxqKMu.d.mts} +1 -1
- package/dist/renderer-client.cjs +3 -2
- package/dist/renderer-client.d.mts +7 -7
- package/dist/renderer-client.d.ts +7 -7
- package/dist/renderer-client.mjs +2 -1
- package/dist/{request.d-DRUbOmYD.d.ts → request.d-CPdVjssg.d.ts} +1 -1
- package/dist/{request.d-D-F7o7tb.d.mts → request.d-CX-gks1l.d.mts} +1 -1
- package/dist/request.d.mts +5 -5
- package/dist/request.d.ts +5 -5
- package/dist/{resolver.d-9iKC79CU.d.mts → resolver.d-DJgzbdsp.d.mts} +1 -1
- package/dist/{resolver.d-CY6mEa_F.d.ts → resolver.d-yaHcGCCG.d.ts} +1 -1
- package/dist/{route-rendering.d-6smgwT2t.d.mts → route-rendering.d-CcvZ_4N2.d.mts} +1 -1
- package/dist/{route-rendering.d-KwqM_mlK.d.ts → route-rendering.d-DcOoSNoG.d.ts} +1 -1
- package/dist/{router.d-BYmDeDlp.d.mts → router.d-C8RHma4A.d.mts} +1 -1
- package/dist/{router.d-B6sesMRD.d.ts → router.d-D2QnK8cM.d.ts} +1 -1
- package/dist/{routes.d-D3aJw1H5.d.mts → routes.d-CCccJRrp.d.mts} +1 -1
- package/dist/{routes.d-K-Qg79AA.d.ts → routes.d-b7khoRoU.d.ts} +1 -1
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/{routing.d-DwSUVZbF.d.mts → routing.d-BhPgtN_S.d.ts} +2 -1
- package/dist/{routing.d-BxOZ2YWc.d.ts → routing.d-D67HQmnv.d.mts} +2 -1
- package/dist/{rsc-pipeline-R2GOKIMU.mjs → rsc-pipeline-LC2FBZAR.mjs} +7 -7
- package/dist/{rsc-pipeline-P4PCWDO2.cjs → rsc-pipeline-NTAM65NT.cjs} +8 -8
- package/dist/{runtime-DP5DYGW5.mjs → runtime-MWAC7NWR.mjs} +7 -7
- package/dist/{runtime-WA2Q4SLG.cjs → runtime-U4PAMTVH.cjs} +9 -9
- package/dist/{runtime.d-CbdMI0Oy.d.ts → runtime.d-1l_1bLrL.d.ts} +1 -1
- package/dist/{runtime.d-BFSJf-ww.d.mts → runtime.d-BQUHHq8M.d.mts} +1 -1
- package/dist/{runtime.d-nUz0HAL4.d.mts → runtime.d-CTAXWZby.d.mts} +2 -2
- package/dist/{runtime.d-B_uPfMjA.d.ts → runtime.d-PUA5qBnd.d.ts} +2 -2
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server.cjs +43 -41
- package/dist/server.d.mts +15 -15
- package/dist/server.d.ts +15 -15
- package/dist/server.mjs +26 -24
- package/dist/{spa-router.d-mC1D5cTN.d.ts → spa-router.d-BJtXNeqo.d.ts} +3 -3
- package/dist/{spa-router.d-D4EDwR20.d.mts → spa-router.d-BzPdi48R.d.mts} +3 -3
- package/dist/testing.cjs +6 -5
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +6 -5
- package/dist/{types.d-wVRlLtBf.d.ts → types.d-euATAbE4.d.mts} +4 -0
- package/dist/{types.d-wVRlLtBf.d.mts → types.d-euATAbE4.d.ts} +4 -0
- package/dist/{utils.d-DxMzteqE.d.mts → utils.d-B4ZW-6z6.d.mts} +1 -1
- package/dist/{utils.d-A2X3a6z_.d.ts → utils.d-DquC6qxy.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +23 -21
- package/dist/vite.d.mts +18 -9
- package/dist/vite.d.ts +18 -9
- package/dist/vite.mjs +22 -20
- package/package.json +1 -1
- package/dist/analyzer-LPIVRSTJ.cjs +0 -16
- package/dist/chunk-V3UOEWCB.cjs +0 -46
- package/dist/chunk-VE3FWJBO.mjs +0 -46
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
collectFarmWebMCPTools,
|
|
17
17
|
createFarmClientOptimizeDepsConfig,
|
|
18
18
|
createFarmClientOptimizeDepsEntries,
|
|
19
|
+
createFarmDevClientManifest,
|
|
19
20
|
createFarmSourceAlias,
|
|
20
21
|
createFarmThemeCssPlugin,
|
|
21
22
|
exactIdPattern,
|
|
@@ -23,6 +24,7 @@ import {
|
|
|
23
24
|
generateClientCachePersistenceCode,
|
|
24
25
|
generateFarmIntegrationProviderClientCode,
|
|
25
26
|
inferFarmIslandStrategy,
|
|
27
|
+
invalidateFarmRouteRootInferences,
|
|
26
28
|
isFarmDocsClientConfigModule,
|
|
27
29
|
mergeFarmViteAlias,
|
|
28
30
|
redactFarmDocsClientConfig,
|
|
@@ -31,7 +33,7 @@ import {
|
|
|
31
33
|
resolveFarmClientCacheAdapterEntry,
|
|
32
34
|
resolveFarmImageProviderForRuntime,
|
|
33
35
|
resolveFarmRouteRootStrategy
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MJEKMT6B.mjs";
|
|
35
37
|
import {
|
|
36
38
|
generateFarmClientPluginEntryCode,
|
|
37
39
|
hasFarmServerRuntimePlugins,
|
|
@@ -46,7 +48,7 @@ import {
|
|
|
46
48
|
import {
|
|
47
49
|
generateFarmTypeArtifacts,
|
|
48
50
|
resolveRouteRenderingConfig
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-B67CW2LM.mjs";
|
|
50
52
|
import {
|
|
51
53
|
createFarmServerFnBoundaryModule,
|
|
52
54
|
isFarmServerFnBoundaryId,
|
|
@@ -57,12 +59,10 @@ import {
|
|
|
57
59
|
farmPathGuardCoversEndpoint,
|
|
58
60
|
farmPathGuardCoversPage,
|
|
59
61
|
getFarmFragmentCacheControl,
|
|
60
|
-
getRouteGroupScope,
|
|
61
62
|
getSharedLayoutPrefixLength,
|
|
62
63
|
parseFarmLayoutChainHeader,
|
|
63
|
-
renderFarmLocaleAlternateLinks
|
|
64
|
-
|
|
65
|
-
} from "./chunk-NA77GEIU.mjs";
|
|
64
|
+
renderFarmLocaleAlternateLinks
|
|
65
|
+
} from "./chunk-SVQX5HYW.mjs";
|
|
66
66
|
import {
|
|
67
67
|
FARM_NATIVE_TREE_CONTENT_TYPE
|
|
68
68
|
} from "./chunk-LLZSYFOM.mjs";
|
|
@@ -80,13 +80,13 @@ import {
|
|
|
80
80
|
resolveFarmMCPRouteLabel,
|
|
81
81
|
resolveFarmMarkdownRouteLabel,
|
|
82
82
|
setFarmRouteLabel
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-GZOKWJIW.mjs";
|
|
84
84
|
import {
|
|
85
85
|
FARM_DEFAULT_MCP_PATH
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-UVZMSRHF.mjs";
|
|
87
87
|
import {
|
|
88
88
|
isFarmPreviewDeploymentEnvironment
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-IXZSBO76.mjs";
|
|
90
90
|
import {
|
|
91
91
|
resolveFarmLayoutFonts
|
|
92
92
|
} from "./chunk-HZOMT5DY.mjs";
|
|
@@ -96,14 +96,18 @@ import {
|
|
|
96
96
|
FARM_CLIENT_REFERENCE_PRAGMA,
|
|
97
97
|
FARM_RESOLVE_FROM_PREFIX,
|
|
98
98
|
collectFarmServerBundledPackageInfo,
|
|
99
|
+
dropLatestPackageClientBoundaryCache,
|
|
99
100
|
ensureFarmInternalClientReference,
|
|
101
|
+
ensureFarmIslandContainerReference,
|
|
100
102
|
ensureFarmPackageClientReference,
|
|
101
103
|
farmBrowserBuiltinsOptimizerPlugin,
|
|
102
104
|
farmEnvironmentFunctionsPlugin,
|
|
105
|
+
farmIslandContainerReferencePath,
|
|
103
106
|
farmRelativeImportFiles,
|
|
104
107
|
generateProgrammaticClientRouteModule,
|
|
105
108
|
getClientModuleMetadata,
|
|
106
109
|
getFarmClientReachableModules,
|
|
110
|
+
getFarmClientRenderingBindings,
|
|
107
111
|
getIslandStrategyExport,
|
|
108
112
|
hasUseClientDirective,
|
|
109
113
|
invalidateFarmClientOnlyScan,
|
|
@@ -120,8 +124,9 @@ import {
|
|
|
120
124
|
rewriteFarmPackageClientImports,
|
|
121
125
|
rewriteFarmReactServerClientModuleImports,
|
|
122
126
|
rewriteFarmReactServerImports,
|
|
123
|
-
stripUseClientDirective
|
|
124
|
-
|
|
127
|
+
stripUseClientDirective,
|
|
128
|
+
wrapFarmIslandContainers
|
|
129
|
+
} from "./chunk-IBVN7SW5.mjs";
|
|
125
130
|
import {
|
|
126
131
|
generateFarmDocsAdapterClientRuntime,
|
|
127
132
|
getFarmDocsAdapterConfigModule
|
|
@@ -145,10 +150,10 @@ import {
|
|
|
145
150
|
FARM_PREVIEW_ROBOTS_TAG,
|
|
146
151
|
resolveFarmAgentCrawlers,
|
|
147
152
|
resolveFarmAgentSitemap
|
|
148
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-OBYM5S5G.mjs";
|
|
149
154
|
import {
|
|
150
155
|
resolveFarmLlmsTxtConfig
|
|
151
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-HY6IVQ54.mjs";
|
|
152
157
|
import {
|
|
153
158
|
resolveFarmServerComponentsMode
|
|
154
159
|
} from "./chunk-4QENVMG7.mjs";
|
|
@@ -178,7 +183,11 @@ import {
|
|
|
178
183
|
createFarmMarkdownSourceResponse,
|
|
179
184
|
isFarmMarkdownPageFile,
|
|
180
185
|
normalizeFarmMarkdownRoutePath
|
|
181
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-OIP62QEL.mjs";
|
|
187
|
+
import {
|
|
188
|
+
resolveFarmMdxComponentsModulePath,
|
|
189
|
+
resolveMdxConfig
|
|
190
|
+
} from "./chunk-UIJOLBUL.mjs";
|
|
182
191
|
import {
|
|
183
192
|
FARM_MARKDOWN_CONTENT_TYPE,
|
|
184
193
|
createFarmMarkdownErrorBody,
|
|
@@ -186,7 +195,7 @@ import {
|
|
|
186
195
|
farmRequestWantsMarkdown,
|
|
187
196
|
getFarmMarkdownAlternatePath,
|
|
188
197
|
resolveMarkdownMirrorTarget
|
|
189
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-CPMME66W.mjs";
|
|
190
199
|
import {
|
|
191
200
|
dispatchIntegrationRequest,
|
|
192
201
|
getFarmIntegrationPluginOwner,
|
|
@@ -216,10 +225,10 @@ import {
|
|
|
216
225
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
217
226
|
import {
|
|
218
227
|
APIRouteManager
|
|
219
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-RLFGKJQ6.mjs";
|
|
220
229
|
import {
|
|
221
230
|
getFarmI18nClientSnapshot
|
|
222
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-TNYC3TYP.mjs";
|
|
223
232
|
import {
|
|
224
233
|
VERCEL_OG_INSTALL_HINT,
|
|
225
234
|
isOptionalPeerInstalled
|
|
@@ -253,7 +262,7 @@ import {
|
|
|
253
262
|
import {
|
|
254
263
|
isFarmI18nCatalogFile,
|
|
255
264
|
resolveFarmI18nMessagePath
|
|
256
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-VJSXPN3W.mjs";
|
|
257
266
|
import {
|
|
258
267
|
logger,
|
|
259
268
|
toPosixPath,
|
|
@@ -279,10 +288,7 @@ import {
|
|
|
279
288
|
} from "./chunk-2DA7CLY7.mjs";
|
|
280
289
|
import {
|
|
281
290
|
FARM_VERSION
|
|
282
|
-
} from "./chunk-
|
|
283
|
-
import {
|
|
284
|
-
toFarmTrailingSlashPageRequest
|
|
285
|
-
} from "./chunk-4O26BPUY.mjs";
|
|
291
|
+
} from "./chunk-JMOCMXTQ.mjs";
|
|
286
292
|
import {
|
|
287
293
|
DEFAULT_FARM_API_BASE_PATH
|
|
288
294
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -304,6 +310,9 @@ import {
|
|
|
304
310
|
getFarmDeploymentMismatch,
|
|
305
311
|
withFarmDeploymentResponse
|
|
306
312
|
} from "./chunk-IWJONXPF.mjs";
|
|
313
|
+
import {
|
|
314
|
+
toFarmTrailingSlashPageRequest
|
|
315
|
+
} from "./chunk-4O26BPUY.mjs";
|
|
307
316
|
import {
|
|
308
317
|
FARM_CONFIG_HEADERS_PLUGIN_NAME,
|
|
309
318
|
FARM_CONFIG_REDIRECTS_PLUGIN_NAME,
|
|
@@ -346,7 +355,7 @@ function transformFarmFormActionModule(options) {
|
|
|
346
355
|
}
|
|
347
356
|
|
|
348
357
|
// src/vite.ts
|
|
349
|
-
import { parseSync } from "vite";
|
|
358
|
+
import { createRunnableDevEnvironment, parseSync } from "vite";
|
|
350
359
|
import { initSync as initModuleLexer, parse as lexModule } from "es-module-lexer";
|
|
351
360
|
import { AsyncLocalStorage } from "async_hooks";
|
|
352
361
|
import { builtinModules, isBuiltin } from "module";
|
|
@@ -1073,7 +1082,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1073
1082
|
return import("./workflows.mjs");
|
|
1074
1083
|
}
|
|
1075
1084
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1076
|
-
return import("./devtools-
|
|
1085
|
+
return import("./devtools-TDIJ6HVC.mjs");
|
|
1077
1086
|
}
|
|
1078
1087
|
function loadFarmDevtoolsUIRuntime() {
|
|
1079
1088
|
return import("./devtools-ui-CYBVFLPH.mjs");
|
|
@@ -1134,6 +1143,37 @@ function createFarmServerPrebundleConfig(bundledPackages) {
|
|
|
1134
1143
|
}
|
|
1135
1144
|
};
|
|
1136
1145
|
}
|
|
1146
|
+
function farmIslandContainersPlugin(config) {
|
|
1147
|
+
let root = config.root ?? process.cwd();
|
|
1148
|
+
return {
|
|
1149
|
+
name: "farm:island-containers",
|
|
1150
|
+
enforce: "pre",
|
|
1151
|
+
configResolved(resolved) {
|
|
1152
|
+
root = config.root || resolved.root;
|
|
1153
|
+
},
|
|
1154
|
+
transform(code, id) {
|
|
1155
|
+
if (resolveFarmServerComponentsMode(config.experimental?.serverComponents) !== "islands") {
|
|
1156
|
+
return null;
|
|
1157
|
+
}
|
|
1158
|
+
if (id.startsWith("\0") || id.includes("/node_modules/") || !/\.[jt]sx(?:$|\?)/.test(id)) {
|
|
1159
|
+
return null;
|
|
1160
|
+
}
|
|
1161
|
+
if (hasUseClientDirective(code)) return null;
|
|
1162
|
+
const file = id.split("?", 1)[0];
|
|
1163
|
+
const bindings = getFarmClientRenderingBindings(code, file, root);
|
|
1164
|
+
if (bindings.length === 0) return null;
|
|
1165
|
+
const grown = wrapFarmIslandContainers({
|
|
1166
|
+
code,
|
|
1167
|
+
file,
|
|
1168
|
+
bindings,
|
|
1169
|
+
reference: farmIslandContainerReferencePath(root)
|
|
1170
|
+
});
|
|
1171
|
+
if (grown === null) return null;
|
|
1172
|
+
ensureFarmIslandContainerReference(root);
|
|
1173
|
+
return { code: grown, map: null };
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1137
1177
|
function farmServerOnlyEntriesPlugin(options = {}) {
|
|
1138
1178
|
let root = process.cwd();
|
|
1139
1179
|
let vercelOgInstalled = false;
|
|
@@ -2019,7 +2059,34 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2019
2059
|
publicDir: options.publicDir
|
|
2020
2060
|
});
|
|
2021
2061
|
let farmApp;
|
|
2062
|
+
const isFarmGeneratedOutput = (file) => {
|
|
2063
|
+
const root = farmApp?.getConfig().root ?? options.root;
|
|
2064
|
+
if (!root) return file.includes("/.farm/");
|
|
2065
|
+
const output = toPosixPath(path6.resolve(root, options.distDir || ".farm"));
|
|
2066
|
+
return file === output || file.startsWith(`${output}/`);
|
|
2067
|
+
};
|
|
2022
2068
|
let serverFnTransformActive = false;
|
|
2069
|
+
const getFarmRenderedServerModules = () => {
|
|
2070
|
+
const routeManager = farmApp?.getRouteManager();
|
|
2071
|
+
if (!routeManager) return /* @__PURE__ */ new Set();
|
|
2072
|
+
const files = /* @__PURE__ */ new Set();
|
|
2073
|
+
for (const entries of [
|
|
2074
|
+
routeManager.getRoutes(),
|
|
2075
|
+
routeManager.getLayouts(),
|
|
2076
|
+
routeManager.getLoadings(),
|
|
2077
|
+
routeManager.getErrors(),
|
|
2078
|
+
routeManager.getRouteSlots()
|
|
2079
|
+
]) {
|
|
2080
|
+
for (const entry of entries.values()) files.add(entry.modulePath);
|
|
2081
|
+
}
|
|
2082
|
+
const config = farmApp.getConfig();
|
|
2083
|
+
const mdxComponents = resolveFarmMdxComponentsModulePath(
|
|
2084
|
+
resolveMdxConfig(config.mdx),
|
|
2085
|
+
config.root
|
|
2086
|
+
);
|
|
2087
|
+
if (mdxComponents) files.add(mdxComponents);
|
|
2088
|
+
return files;
|
|
2089
|
+
};
|
|
2023
2090
|
const islandsServerFns = () => {
|
|
2024
2091
|
const config = farmApp?.getConfig() ?? options;
|
|
2025
2092
|
return config.experimental?.serverActions === true && resolveFarmServerComponentsMode(config.experimental?.serverComponents) === "islands";
|
|
@@ -2090,6 +2157,18 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2090
2157
|
}
|
|
2091
2158
|
};
|
|
2092
2159
|
},
|
|
2160
|
+
configEnvironment(name, environmentConfig, env) {
|
|
2161
|
+
if (env.command !== "serve" || name !== "ssr" && name !== "rsc" || environmentConfig.dev?.createEnvironment) {
|
|
2162
|
+
return;
|
|
2163
|
+
}
|
|
2164
|
+
return {
|
|
2165
|
+
dev: {
|
|
2166
|
+
createEnvironment: (environmentName, config) => createRunnableDevEnvironment(environmentName, config, {
|
|
2167
|
+
runnerOptions: { sourcemapInterceptor: "prepareStackTrace" }
|
|
2168
|
+
})
|
|
2169
|
+
}
|
|
2170
|
+
};
|
|
2171
|
+
},
|
|
2093
2172
|
async configResolved(config) {
|
|
2094
2173
|
if (typeof fontImports.configResolved === "function") {
|
|
2095
2174
|
await fontImports.configResolved.call(this, config);
|
|
@@ -2144,6 +2223,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2144
2223
|
options.distDir || ".farm"
|
|
2145
2224
|
)
|
|
2146
2225
|
);
|
|
2226
|
+
farmApp.getRouteManager().trackSourceChanges();
|
|
2147
2227
|
await farmApp.initialize();
|
|
2148
2228
|
const farmConfig = farmApp.getConfig();
|
|
2149
2229
|
let farmAppPackages;
|
|
@@ -3266,7 +3346,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3266
3346
|
}
|
|
3267
3347
|
}
|
|
3268
3348
|
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && req.headers.accept?.includes(FARM_NATIVE_TREE_CONTENT_TYPE)) {
|
|
3269
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
3349
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-OYGKP2NZ.mjs");
|
|
3270
3350
|
const treeBodyInit = requestMethod === "POST" ? { body: createFarmNodeRequestBodyStream(req), duplex: "half" } : {};
|
|
3271
3351
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
3272
3352
|
request: new Request(fullUrl, {
|
|
@@ -4585,62 +4665,23 @@ export const getManifest = () => ({
|
|
|
4585
4665
|
});
|
|
4586
4666
|
`;
|
|
4587
4667
|
}
|
|
4588
|
-
const manifest = routeManager.generateClientManifest(server.config.root);
|
|
4589
4668
|
const globalStylesheetHref = resolveDevGlobalStylesheetHref(
|
|
4590
4669
|
server.config.root,
|
|
4591
4670
|
farmApp?.getConfig().srcDir
|
|
4592
4671
|
);
|
|
4593
|
-
const fullManifest =
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4672
|
+
const fullManifest = createFarmDevClientManifest(
|
|
4673
|
+
routeManager.generateClientManifest(server.config.root),
|
|
4674
|
+
{
|
|
4675
|
+
sharedAssets: globalStylesheetHref ? [{ tag: "link", attrs: { rel: "stylesheet", href: globalStylesheetHref } }] : []
|
|
4676
|
+
}
|
|
4677
|
+
);
|
|
4678
|
+
return {
|
|
4679
|
+
code: `const manifest = JSON.parse(${JSON.stringify(JSON.stringify(fullManifest))});
|
|
4680
|
+
export const getManifest = () => manifest;
|
|
4681
|
+
export { manifest };
|
|
4682
|
+
`,
|
|
4683
|
+
map: { mappings: "" }
|
|
4599
4684
|
};
|
|
4600
|
-
for (const route of manifest.routes) {
|
|
4601
|
-
fullManifest.routes[route.pattern] = {
|
|
4602
|
-
modulePath: route.modulePath,
|
|
4603
|
-
pattern: route.pattern,
|
|
4604
|
-
...route.directory ? { directory: route.directory } : {},
|
|
4605
|
-
segments: route.segments,
|
|
4606
|
-
search: route.search,
|
|
4607
|
-
isClientComponent: route.isClientComponent,
|
|
4608
|
-
shouldHydrate: route.shouldHydrate,
|
|
4609
|
-
islandStrategy: route.islandStrategy,
|
|
4610
|
-
renderPlan: route.renderPlan,
|
|
4611
|
-
preloads: [route.modulePath],
|
|
4612
|
-
// In dev, preload is just the module
|
|
4613
|
-
assets: []
|
|
4614
|
-
};
|
|
4615
|
-
}
|
|
4616
|
-
for (const layout of manifest.layouts) {
|
|
4617
|
-
const groupScope = getRouteGroupScope(layout.pattern);
|
|
4618
|
-
fullManifest.layouts[layout.pattern] = {
|
|
4619
|
-
modulePath: layout.modulePath,
|
|
4620
|
-
pattern: layout.pattern,
|
|
4621
|
-
...groupScope ? { urlPattern: stripRouteGroups(layout.pattern), groupScope } : {},
|
|
4622
|
-
shouldHydrate: layout.shouldHydrate,
|
|
4623
|
-
islandStrategy: layout.islandStrategy,
|
|
4624
|
-
// Islands mode: rebuilt from its server tree, so its module is never preloaded.
|
|
4625
|
-
...layout.serverTree ? { serverTree: true } : {},
|
|
4626
|
-
preloads: layout.serverTree ? [] : [layout.modulePath],
|
|
4627
|
-
assets: []
|
|
4628
|
-
};
|
|
4629
|
-
}
|
|
4630
|
-
for (const slot of manifest.slots) {
|
|
4631
|
-
fullManifest.slots.push({
|
|
4632
|
-
...slot,
|
|
4633
|
-
preloads: [slot.modulePath],
|
|
4634
|
-
assets: []
|
|
4635
|
-
});
|
|
4636
|
-
}
|
|
4637
|
-
return `
|
|
4638
|
-
// Auto-generated manifest for SPA navigation (TanStack Start pattern)
|
|
4639
|
-
// This manifest is inlined in the server bundle - no file on disk
|
|
4640
|
-
// Client receives this via window.__FARM_MANIFEST__ in HTML
|
|
4641
|
-
export const getManifest = () => (${JSON.stringify(fullManifest, null, 2)});
|
|
4642
|
-
export const manifest = getManifest();
|
|
4643
|
-
`;
|
|
4644
4685
|
}
|
|
4645
4686
|
},
|
|
4646
4687
|
async transform(code, id, transformOptions) {
|
|
@@ -4682,12 +4723,15 @@ export const manifest = getManifest();
|
|
|
4682
4723
|
rewrotePackageImports = true;
|
|
4683
4724
|
}
|
|
4684
4725
|
}
|
|
4685
|
-
const
|
|
4686
|
-
code,
|
|
4726
|
+
const rewritePackageImports = (source2) => rewriteFarmPackageClientImports({
|
|
4727
|
+
code: source2,
|
|
4687
4728
|
file,
|
|
4688
4729
|
root: projectRoot,
|
|
4689
4730
|
isClientPackage: (specifier) => isFarmPackageClientBoundary(file, specifier, projectRoot)
|
|
4690
4731
|
});
|
|
4732
|
+
const routeManager = farmApp?.getRouteManager();
|
|
4733
|
+
const source = code;
|
|
4734
|
+
const referenced = routeManager ? routeManager.inspectPackages(() => rewritePackageImports(source)) : rewritePackageImports(source);
|
|
4691
4735
|
if (referenced !== null) {
|
|
4692
4736
|
code = referenced;
|
|
4693
4737
|
rewrotePackageImports = true;
|
|
@@ -4977,9 +5021,15 @@ if (import.meta.hot) {
|
|
|
4977
5021
|
logger.error(`SSG build failed: ${error}`);
|
|
4978
5022
|
}
|
|
4979
5023
|
},
|
|
4980
|
-
watchChange() {
|
|
5024
|
+
watchChange(id, change) {
|
|
5025
|
+
const watched = toPosixPath(id);
|
|
5026
|
+
if (!watched.includes("/node_modules/") && !isFarmGeneratedOutput(watched)) {
|
|
5027
|
+
farmApp?.getRouteManager().noteSourceChange(id, change.event);
|
|
5028
|
+
}
|
|
4981
5029
|
invalidateFarmClientReachableModules();
|
|
4982
5030
|
invalidateFarmClientOnlyScan();
|
|
5031
|
+
invalidateFarmRouteRootInferences();
|
|
5032
|
+
dropLatestPackageClientBoundaryCache();
|
|
4983
5033
|
},
|
|
4984
5034
|
async handleHotUpdate(ctx) {
|
|
4985
5035
|
if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
|
|
@@ -5045,12 +5095,15 @@ if (import.meta.hot) {
|
|
|
5045
5095
|
}
|
|
5046
5096
|
const isolatedHydrationMode = currentFarmConfig?.experimental?.isolatedClientHydration;
|
|
5047
5097
|
const planRouteManager = farmApp?.getRouteManager();
|
|
5048
|
-
const isHydrationPlanSource =
|
|
5098
|
+
const isHydrationPlanSource = /\.[cm]?[jt]sx?$/.test(normalizedFile) && !normalizedFile.includes("/node_modules/") && !isFarmGeneratedOutput(normalizedFile);
|
|
5049
5099
|
const tracksAsyncOwnerIslands = isReactRenderer(currentFarmConfig?.renderer) && planRouteManager !== void 0;
|
|
5050
5100
|
let clientPlanCurrent = false;
|
|
5051
5101
|
if (isHydrationPlanSource && (isolatedHydrationMode === "enabled" || isolatedHydrationMode === "analyze" || tracksAsyncOwnerIslands)) {
|
|
5052
5102
|
const routeManager = planRouteManager;
|
|
5053
|
-
if (routeManager) {
|
|
5103
|
+
if (routeManager?.isEditPlanNeutral(file)) {
|
|
5104
|
+
clientPlanCurrent = true;
|
|
5105
|
+
} else if (routeManager) {
|
|
5106
|
+
routeManager.noteSourceChange(file, "update");
|
|
5054
5107
|
try {
|
|
5055
5108
|
const previousPlan = JSON.stringify(
|
|
5056
5109
|
routeManager.generateClientManifest(currentFarmConfig.root)
|
|
@@ -5126,6 +5179,11 @@ if (import.meta.hot) {
|
|
|
5126
5179
|
return [];
|
|
5127
5180
|
}
|
|
5128
5181
|
}
|
|
5182
|
+
if (/\.[cm]?[jt]sx?$/.test(normalizedFile) && !server2.environments.client?.moduleGraph.getModulesByFile(normalizedFile)?.size && invalidateFarmDevDependents(server2, file, getFarmRenderedServerModules()).length > 0) {
|
|
5183
|
+
logUpdate("PAGE", `updated ${path6.basename(file)}`);
|
|
5184
|
+
server2.ws.send({ type: "full-reload", path: "*" });
|
|
5185
|
+
return [];
|
|
5186
|
+
}
|
|
5129
5187
|
return modules;
|
|
5130
5188
|
}
|
|
5131
5189
|
};
|
|
@@ -5794,6 +5852,35 @@ function wrapFarmClientRouteGraph(element) {
|
|
|
5794
5852
|
// Fallback to empty manifest if not available yet
|
|
5795
5853
|
const getManifest = () => window.__FARM_MANIFEST__ || { routes: {}, layouts: {}, slots: [], clientEntry: '', sharedAssets: [] };
|
|
5796
5854
|
|
|
5855
|
+
// A document inlines only the entries its page boots with and names the module that has the
|
|
5856
|
+
// whole manifest (manifest.module), as production keeps its route table out of the HTML. Code
|
|
5857
|
+
// that matches another route awaits this first; it imports the module once. A failed import
|
|
5858
|
+
// keeps the inlined entries, so the router treats other routes as it treats an unknown one.
|
|
5859
|
+
let farmManifestLoad = null;
|
|
5860
|
+
function ensureFarmManifest() {
|
|
5861
|
+
const inlined = window.__FARM_MANIFEST__;
|
|
5862
|
+
if (!inlined || typeof inlined.module !== 'string') return Promise.resolve();
|
|
5863
|
+
if (!farmManifestLoad) {
|
|
5864
|
+
farmManifestLoad = import(/* @vite-ignore */ new URL(inlined.module, location.origin).href)
|
|
5865
|
+
.then((loaded) => {
|
|
5866
|
+
const manifest = loaded.getManifest();
|
|
5867
|
+
if (window.__FARM_MANIFEST__ !== inlined) return;
|
|
5868
|
+
const { module: _module, ...boot } = inlined;
|
|
5869
|
+
window.__FARM_MANIFEST__ = {
|
|
5870
|
+
...boot,
|
|
5871
|
+
routes: manifest.routes,
|
|
5872
|
+
layouts: manifest.layouts,
|
|
5873
|
+
slots: manifest.slots,
|
|
5874
|
+
};
|
|
5875
|
+
})
|
|
5876
|
+
.catch((error) => {
|
|
5877
|
+
farmManifestLoad = null;
|
|
5878
|
+
console.warn('[Farm.js] Could not load the route manifest: ' + inlined.module, error);
|
|
5879
|
+
});
|
|
5880
|
+
}
|
|
5881
|
+
return farmManifestLoad;
|
|
5882
|
+
}
|
|
5883
|
+
|
|
5797
5884
|
// ====== CLIENT-SIDE ROUTE MATCHING ======
|
|
5798
5885
|
// Matches URL to route using manifest (no server request!)
|
|
5799
5886
|
|
|
@@ -6992,6 +7079,7 @@ async function fetchFarmNavigationDocument(path, context) {
|
|
|
6992
7079
|
// A prefetch reads the page whole for the router's cache, and leaves a page that streams alone.
|
|
6993
7080
|
if (!context.prefetch) farmNavigationStreamGeneration++;
|
|
6994
7081
|
const url = new URL(path, window.location.href);
|
|
7082
|
+
await ensureFarmManifest();
|
|
6995
7083
|
const match = farmDocumentNavigationRoute(url.pathname);
|
|
6996
7084
|
const container = document.getElementById('root');
|
|
6997
7085
|
if (!match || !container) return null;
|
|
@@ -7138,6 +7226,9 @@ async function renderPage(pageData, info) {
|
|
|
7138
7226
|
return;
|
|
7139
7227
|
}
|
|
7140
7228
|
|
|
7229
|
+
// Page data carries the route's render plan, which the manifest entry only backs up. Islands
|
|
7230
|
+
// mode also reads which layouts render as server trees (loadLayoutComponents).
|
|
7231
|
+
if (${islandValues ? "true" : "!pageData.renderPlan"}) await ensureFarmManifest();
|
|
7141
7232
|
const manifestRoute = findRoute(window.location.pathname)?.route;
|
|
7142
7233
|
const renderPlan = pageData.renderPlan || manifestRoute?.renderPlan;
|
|
7143
7234
|
const hydrationMode = renderPlan?.hydration;
|
|
@@ -7777,6 +7868,7 @@ async function defineConfig(config = {}) {
|
|
|
7777
7868
|
viteBrowserExternalPlugin,
|
|
7778
7869
|
farmI18nClientBridgePlugin(),
|
|
7779
7870
|
farmServerOnlyEntriesPlugin(),
|
|
7871
|
+
farmIslandContainersPlugin(config),
|
|
7780
7872
|
farmPlugin(config),
|
|
7781
7873
|
farmEnvironmentFunctionsPlugin(config),
|
|
7782
7874
|
farmBrandingPlugin
|
|
@@ -7852,6 +7944,7 @@ export {
|
|
|
7852
7944
|
isViteDevClientRequest,
|
|
7853
7945
|
farmImageImportsPlugin,
|
|
7854
7946
|
farmI18nClientBridgePlugin,
|
|
7947
|
+
farmIslandContainersPlugin,
|
|
7855
7948
|
farmServerOnlyEntriesPlugin,
|
|
7856
7949
|
withFarmRequestTracing,
|
|
7857
7950
|
rewriteEarlySsrRelativeImports,
|
|
@@ -15,14 +15,14 @@ var _chunkWBTHHTBOcjs = require('./chunk-WBTHHTBO.cjs');
|
|
|
15
15
|
var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkUVQRMUARcjs = require('./chunk-UVQRMUAR.cjs');
|
|
19
19
|
|
|
20
20
|
// src/mobile/analyzer.ts
|
|
21
21
|
var _crypto = require('crypto');
|
|
22
22
|
var _fs = require('fs');
|
|
23
23
|
var _promises = require('fs/promises');
|
|
24
24
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
25
|
-
var ANALYZER_VERSION = `7:${
|
|
25
|
+
var ANALYZER_VERSION = `7:${_chunkUVQRMUARcjs.FARM_VERSION}`;
|
|
26
26
|
var INTRINSIC_KINDS = {};
|
|
27
27
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
28
28
|
INTRINSIC_KINDS[tag] = "View";
|