@farm.js/core 0.1.81 → 0.1.83
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.d-Cxi3214_.d.ts → agent-mcp.d-7uKdOttc.d.ts} +1 -1
- package/dist/{agent-mcp.d-DMqOqnOA.d.mts → agent-mcp.d-LChlR2au.d.mts} +1 -1
- package/dist/agent-runtime.cjs +4 -3
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/agent-runtime.mjs +3 -2
- package/dist/analyzer-WGH6J2HN.cjs +17 -0
- package/dist/{analyzer-IC66UJCU.mjs → analyzer-Y6IY26HI.mjs} +2 -2
- package/dist/api/node.cjs +5 -4
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +4 -3
- package/dist/api/route-manager.cjs +5 -4
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +4 -3
- package/dist/api/runtime.cjs +4 -3
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +3 -2
- package/dist/api.cjs +7 -6
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +6 -5
- package/dist/{app-manifest.d-C8Cswd31.d.ts → app-manifest.d-CRp21oAz.d.ts} +1 -1
- package/dist/{app-manifest.d-Bbxp5kes.d.mts → app-manifest.d-QMdmqqCr.d.mts} +1 -1
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/{app.d-DGIoFt5D.d.ts → app.d-CVPu_hoD.d.ts} +51 -4
- package/dist/{app.d-BJuSurgy.d.mts → app.d-eSm7jgoc.d.mts} +51 -4
- package/dist/{chunk-NSLRK5DK.cjs → chunk-3CZ4MJHW.cjs} +1 -1
- package/dist/{chunk-CPZZBCPO.cjs → chunk-3DAJXBSL.cjs} +2 -2
- package/dist/chunk-3DE6RK7K.cjs +36 -0
- package/dist/{chunk-XMHERKSE.mjs → chunk-42IBGQTN.mjs} +5 -12
- package/dist/{chunk-GY63XD6K.mjs → chunk-43N3X6OO.mjs} +1 -1
- package/dist/{chunk-MOGRRZMW.cjs → chunk-55UJGUBP.cjs} +35 -30
- package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
- package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
- package/dist/{chunk-LKIG5SM6.cjs → chunk-5P65LXGU.cjs} +9 -9
- package/dist/{chunk-TPA2PV5J.mjs → chunk-5V6HSJFG.mjs} +24 -1
- package/dist/chunk-5X5GJU5A.cjs +426 -0
- package/dist/{chunk-UF4BNKKJ.mjs → chunk-6QYPP5KC.mjs} +2 -2
- package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
- package/dist/{chunk-OIWDEDUO.cjs → chunk-7X2CYE66.cjs} +419 -357
- package/dist/{chunk-XOGCNKB7.cjs → chunk-A5BHJHDF.cjs} +3 -3
- package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
- package/dist/{chunk-HTNJ7A4D.mjs → chunk-B5SJYXJK.mjs} +177 -67
- package/dist/chunk-BUQR7KKO.mjs +17 -0
- package/dist/{chunk-OO4GVGM3.mjs → chunk-CA2HBLXP.mjs} +11 -1
- package/dist/{chunk-724WT3NI.mjs → chunk-CRE642TW.mjs} +1 -1
- package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
- package/dist/{chunk-IPG6B25T.mjs → chunk-DPUZVGXH.mjs} +203 -54
- package/dist/{chunk-ZIYJWJV2.cjs → chunk-DZTWUEBB.cjs} +8 -8
- package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
- package/dist/{chunk-46UV2E7I.cjs → chunk-EFI6QWBQ.cjs} +200 -90
- package/dist/chunk-ELNRKD4V.mjs +426 -0
- package/dist/{chunk-XOXCQGAF.mjs → chunk-FFWSER54.mjs} +1 -1
- package/dist/chunk-FZ7OUN5M.cjs +30 -0
- package/dist/{chunk-5MMKNW7Q.cjs → chunk-H7REG7OX.cjs} +15 -8
- package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
- package/dist/{chunk-OUDNUFVR.cjs → chunk-HRH7OKBQ.cjs} +6 -4
- package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
- package/dist/{chunk-ADQ2LATR.cjs → chunk-IABI62FH.cjs} +2 -2
- package/dist/{chunk-TLSGRK7E.mjs → chunk-IAIRQAHA.mjs} +3 -1
- package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
- package/dist/{chunk-EX6ZSN5P.cjs → chunk-IZYFP7IN.cjs} +17 -24
- package/dist/chunk-J6RFB324.cjs +17 -0
- package/dist/{chunk-CL7BUGVB.cjs → chunk-JHRJ5V2F.cjs} +509 -360
- package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
- package/dist/{chunk-POL5RCVU.mjs → chunk-K3GHY7GY.mjs} +14 -9
- package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
- package/dist/{chunk-UVV3I5QA.cjs → chunk-L2GUEYHR.cjs} +29 -6
- package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
- package/dist/{chunk-E3HBD2K3.cjs → chunk-LN6FAYNB.cjs} +36 -31
- package/dist/chunk-M6AJZ4XR.mjs +30 -0
- package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
- package/dist/{chunk-6WVRVGKC.mjs → chunk-NAHDG6UX.mjs} +1 -1
- package/dist/{chunk-NOYKBGUK.mjs → chunk-NDWI6FDH.mjs} +558 -212
- package/dist/{chunk-OFVCWV2D.cjs → chunk-NEKO3HM2.cjs} +11 -1
- package/dist/{chunk-M6DAIE4T.cjs → chunk-NGTZHWBG.cjs} +78 -9
- package/dist/{chunk-D77OGI6X.mjs → chunk-NKVBWPXR.mjs} +1 -1
- package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
- package/dist/{chunk-W6C3LEXX.cjs → chunk-OM6JIIJU.cjs} +155 -20
- package/dist/{chunk-S3IWDDQ3.mjs → chunk-ORBBAA7B.mjs} +1 -1
- package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
- package/dist/{chunk-BJWJP5A4.mjs → chunk-R3VLM2MW.mjs} +3 -3
- package/dist/{chunk-I4WZRG73.mjs → chunk-RB5IGN3N.mjs} +13 -6
- package/dist/{chunk-2HMSSPCZ.mjs → chunk-RGTZAM6Y.mjs} +71 -2
- package/dist/{chunk-IM3UINTZ.mjs → chunk-RNJX3MD6.mjs} +151 -16
- package/dist/{chunk-EJCVG25Z.mjs → chunk-S3R4JDRO.mjs} +17 -9
- package/dist/{chunk-2Y2HRZQY.cjs → chunk-SLIXHUMS.cjs} +931 -585
- package/dist/{chunk-WFVSAT7Y.cjs → chunk-T7HGXF7D.cjs} +3 -3
- package/dist/{chunk-ZKNXCRUQ.cjs → chunk-U54REWMJ.cjs} +23 -23
- package/dist/{chunk-YH7ENV3K.mjs → chunk-U56Z3755.mjs} +13 -8
- package/dist/chunk-U6XYBTUT.mjs +36 -0
- package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
- package/dist/{chunk-RZ6XUEQS.mjs → chunk-VQ6IXALL.mjs} +2 -2
- package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
- package/dist/{chunk-FYZD7DUS.cjs → chunk-WCSBYQOT.cjs} +4 -4
- package/dist/{chunk-5N526T7Q.mjs → chunk-WZV2G2A6.mjs} +95 -33
- package/dist/{chunk-SM2SYWAR.cjs → chunk-XJDB564A.cjs} +18 -10
- package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
- package/dist/{cli-runtime.d-D8O1v2_X.d.mts → cli-runtime.d-C7aMfoTq.d.mts} +8 -6
- package/dist/{cli-runtime.d-hf4L1MNP.d.ts → cli-runtime.d-DaElKjaL.d.ts} +8 -6
- package/dist/{client-component.d-DFwUHlOz.d.mts → client-component.d-DLMCzmUx.d.mts} +1 -1
- package/dist/{client-component.d-CX8UCQh-.d.ts → client-component.d-DLknFP8l.d.ts} +1 -1
- package/dist/{client-plugins.d-qWp8hNwd.d.ts → client-plugins.d-BVXjyIkY.d.ts} +20 -1
- package/dist/{client-plugins.d-BflSNO-b.d.mts → client-plugins.d-BwKwuO_0.d.mts} +20 -1
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +4 -3
- package/dist/client.d.mts +10 -9
- package/dist/client.d.ts +10 -9
- package/dist/client.mjs +3 -2
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-XJHODO5H.mjs → devtools-OI52TCSD.mjs} +8 -7
- package/dist/{devtools-EI5N366Z.cjs → devtools-ZM2AR36W.cjs} +11 -10
- package/dist/docs.cjs +13 -11
- package/dist/docs.d.mts +15 -6
- package/dist/docs.d.ts +15 -6
- package/dist/docs.mjs +12 -10
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.d.mts +1 -0
- package/dist/environment/vite.d.ts +1 -0
- package/dist/environment/vite.mjs +3 -3
- package/dist/{generate-route-types.d-CaGMIaNI.d.mts → generate-route-types.d-BFOMM8Ef.d.mts} +3 -0
- package/dist/{generate-route-types.d-B76M5R11.d.ts → generate-route-types.d-C2m8myHb.d.ts} +3 -0
- package/dist/{handler.d-DoH5Krkq.d.mts → handler.d-BKTWzzNA.d.mts} +1 -1
- package/dist/{handler.d-C2oRihfa.d.ts → handler.d-Dzpyg3-N.d.ts} +1 -1
- package/dist/{headers.d-BrX53wFQ.d.mts → headers.d-5opjyhXw.d.mts} +1 -1
- package/dist/{headers.d-Dj0mfYpb.d.ts → headers.d-PZyXcDAH.d.ts} +1 -1
- package/dist/index.cjs +38 -35
- package/dist/{index.d-DzDHOttz.d.mts → index.d-C0Mie66f.d.mts} +1 -1
- package/dist/{index.d-Dhc2scRl.d.ts → index.d-DV2q-0mE.d.ts} +1 -1
- package/dist/index.d.mts +26 -25
- package/dist/index.d.ts +26 -25
- package/dist/index.mjs +38 -35
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.cjs +4 -3
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/integrations.mjs +3 -2
- package/dist/internal/app-markdown-runtime.d.mts +3 -2
- package/dist/internal/app-markdown-runtime.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +31 -30
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +30 -29
- package/dist/internal/cli-runtime.cjs +12 -11
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +11 -10
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +10 -9
- package/dist/internal/config-runtime.d.mts +6 -5
- package/dist/internal/config-runtime.d.ts +6 -5
- package/dist/internal/config-runtime.mjs +9 -8
- package/dist/internal/infra-analytics-runtime.cjs +8 -6
- package/dist/internal/infra-analytics-runtime.d.mts +8 -2
- package/dist/internal/infra-analytics-runtime.d.ts +8 -2
- package/dist/internal/infra-analytics-runtime.mjs +8 -6
- package/dist/internal/islands-action-client.cjs +18 -0
- package/dist/internal/islands-action-client.d.mts +18 -0
- package/dist/internal/islands-action-client.d.ts +18 -0
- package/dist/internal/islands-action-client.mjs +18 -0
- package/dist/internal/islands-boot.cjs +54 -20
- package/dist/internal/islands-boot.d.mts +5 -3
- package/dist/internal/islands-boot.d.ts +5 -3
- package/dist/internal/islands-boot.mjs +49 -15
- package/dist/internal/islands-runtime.cjs +3 -8
- package/dist/internal/islands-runtime.mjs +4 -9
- package/dist/internal/islx-actions-client.cjs +4 -3
- package/dist/internal/islx-actions-client.mjs +3 -2
- package/dist/internal/islx-actions-server.d.mts +0 -2
- package/dist/internal/islx-actions-server.d.ts +0 -2
- package/dist/internal/islx-client.cjs +13 -1
- package/dist/internal/islx-client.d.mts +11 -0
- package/dist/internal/islx-client.d.ts +11 -0
- package/dist/internal/islx-client.mjs +14 -0
- package/dist/internal/metadata-image-runtime.d.mts +1 -0
- package/dist/internal/metadata-image-runtime.d.ts +1 -0
- 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 +12 -7
- package/dist/internal/production-runtime.d.mts +14 -12
- package/dist/internal/production-runtime.d.ts +14 -12
- package/dist/internal/production-runtime.mjs +11 -6
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/mobile.d.mts +6 -3
- package/dist/mobile.d.ts +6 -3
- package/dist/{mount.d-DOaeUoWq.d.mts → mount.d-CZ_qL1iS.d.mts} +1 -1
- package/dist/{mount.d-DwXjaOHY.d.ts → mount.d-gWul1GA1.d.ts} +1 -1
- package/dist/{navigation-delegate.d-BElGUMgt.d.mts → navigation-delegate.d-BBTzhJLj.d.mts} +1 -1
- package/dist/{navigation-delegate.d-o3pPd9VI.d.ts → navigation-delegate.d-BZsYEAet.d.ts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/{nitro-YLTGVGK4.mjs → nitro-FK3SZM4H.mjs} +1 -1
- package/dist/{nitro-XGIO6EQN.cjs → nitro-YDFMH5PY.cjs} +4 -4
- package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
- package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
- package/dist/plugin.cjs +25 -23
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +24 -22
- package/dist/{render-plan.d-BD06tqFA.d.ts → render-plan.d-AaJsYPX-.d.ts} +1 -1
- package/dist/{render-plan.d-xWCRAJeR.d.mts → render-plan.d-bnWxS12w.d.mts} +1 -1
- package/dist/renderer-client.cjs +54 -10
- package/dist/renderer-client.d.mts +8 -7
- package/dist/renderer-client.d.ts +8 -7
- package/dist/renderer-client.mjs +50 -6
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +97 -4
- package/dist/renderer.d.ts +97 -4
- package/dist/renderer.mjs +5 -1
- package/dist/{request.d-Dx82V8bz.d.mts → request.d-C2HOn3Hi.d.mts} +1 -1
- package/dist/{request.d-DUMuWxSN.d.ts → request.d-CAeitOG1.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BwBVpLtD.d.ts → route-rendering.d-A1dIkUK5.d.ts} +1 -1
- package/dist/{route-rendering.d-DJh6GauM.d.mts → route-rendering.d-CYA-ulnX.d.mts} +1 -1
- package/dist/{router.d-BtkKDxUB.d.mts → router.d-8lxnzlkr.d.mts} +1 -1
- package/dist/{router.d-CJBSG5jr.d.ts → router.d-A_Yt6jYz.d.ts} +1 -1
- package/dist/{routes.d-CCccJRrp.d.mts → routes.d-BWvpUoYu.d.mts} +1 -1
- package/dist/{routes.d-b7khoRoU.d.ts → routes.d-D7RWvfqL.d.ts} +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/{rsc-pipeline-H5AXQA7A.cjs → rsc-pipeline-MFJZGDPE.cjs} +11 -10
- package/dist/{rsc-pipeline-GD6KLOIG.mjs → rsc-pipeline-TRZVFCBX.mjs} +10 -9
- package/dist/{runtime-YWQVBC3V.cjs → runtime-MJUG2HGR.cjs} +15 -13
- package/dist/{runtime-OJ7FXFUI.mjs → runtime-O4Y3Z6V3.mjs} +11 -9
- package/dist/{runtime.d-BQnD0cfC.d.ts → runtime.d-BPyvWrgQ.d.ts} +1 -1
- package/dist/{runtime.d-C4SuZXf6.d.mts → runtime.d-C_rZ9_DD.d.mts} +1 -1
- package/dist/{server-components-status.d-9rH7ZoEq.d.mts → server-components-status.d-BpxiEMQE.d.mts} +1 -1
- package/dist/{server-components-status.d-rfKOcE0N.d.ts → server-components-status.d-C2UEKJn7.d.ts} +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-call.d-rVM_lsYk.d.mts +15 -0
- package/dist/server-query-call.d-rVM_lsYk.d.ts +15 -0
- package/dist/server-query-client.cjs +5 -3
- package/dist/server-query-client.d.mts +3 -2
- package/dist/server-query-client.d.ts +3 -2
- package/dist/server-query-client.mjs +5 -3
- package/dist/{server-query-runtime.d-DXRNhX_3.d.ts → server-query-runtime.d-BlHd90D0.d.ts} +2 -8
- package/dist/{server-query-runtime.d-aP52iuL5.d.mts → server-query-runtime.d-CCLGkQtE.d.mts} +2 -8
- package/dist/server.cjs +58 -52
- package/dist/server.d.mts +12 -12
- package/dist/server.d.ts +12 -12
- package/dist/server.mjs +34 -28
- package/dist/{spa-router.d-V6XLSTCy.d.mts → spa-router.d-BD-6WX1R.d.mts} +2 -2
- package/dist/{spa-router.d-DMKiBsHH.d.ts → spa-router.d-Cw5i_15e.d.ts} +2 -2
- package/dist/{ssg.d-MNedvvMB.d.ts → ssg.d-Bifiq0EL.d.ts} +2 -2
- package/dist/{ssg.d-BnCKPQL0.d.mts → ssg.d-CCE9aob5.d.mts} +2 -2
- package/dist/{store-core.d-Ad5biajo.d.ts → store-core.d-5tVn5vi1.d.ts} +12 -4
- package/dist/{store-core.d-BqJI1-ix.d.mts → store-core.d-BN2MxSG9.d.mts} +12 -4
- package/dist/testing.cjs +5 -4
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +4 -3
- package/dist/{utils.d-BdjHKDuT.d.ts → utils.d-BUjpSNIO.d.ts} +1 -1
- package/dist/{utils.d-BEKLWa0Z.d.mts → utils.d-wGPLeVbq.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +25 -23
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +24 -22
- package/package.json +7 -2
- package/dist/analyzer-435DCIQ6.cjs +0 -17
- package/dist/chunk-AHVF5GI2.cjs +0 -229
- package/dist/chunk-ONSZP5JK.mjs +0 -229
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFarmAppClientEntry,
|
|
3
3
|
resolveFarmClientPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MO4UTDQ6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
collectSSGPages,
|
|
7
7
|
matchSSGPage,
|
|
8
8
|
resolveRouteRenderingConfigFromFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IAIRQAHA.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findFarmAppPackageDir
|
|
12
12
|
} from "./chunk-YSU3WCW6.mjs";
|
|
13
|
+
import {
|
|
14
|
+
resolveFarmRendererRoutes
|
|
15
|
+
} from "./chunk-ELNRKD4V.mjs";
|
|
16
|
+
import {
|
|
17
|
+
createFarmMetadataImageResponse,
|
|
18
|
+
resolveFarmMetadataImageValue
|
|
19
|
+
} from "./chunk-EZYKV24V.mjs";
|
|
13
20
|
import {
|
|
14
21
|
resolveFarmPlatform
|
|
15
22
|
} from "./chunk-SMUW7UST.mjs";
|
|
@@ -25,6 +32,7 @@ import {
|
|
|
25
32
|
createFarmThemeDocumentParts,
|
|
26
33
|
createLateNotFoundRecovery,
|
|
27
34
|
createLateRedirectRecovery,
|
|
35
|
+
createPreHydrationClickQueueScript,
|
|
28
36
|
createRouteDirectoryPattern,
|
|
29
37
|
extractFarmFullDocument,
|
|
30
38
|
farmDocsLayoutsWrapPage,
|
|
@@ -48,7 +56,7 @@ import {
|
|
|
48
56
|
stripRouteGroups,
|
|
49
57
|
takeFarmHoistedHead,
|
|
50
58
|
takeFarmNavigationOutlet
|
|
51
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CA2HBLXP.mjs";
|
|
52
60
|
import {
|
|
53
61
|
getFarmFormState,
|
|
54
62
|
handleFarmFormActionRequest,
|
|
@@ -56,7 +64,7 @@ import {
|
|
|
56
64
|
} from "./chunk-V7HNYR76.mjs";
|
|
57
65
|
import {
|
|
58
66
|
listFarmMCPLlmsTxtLinks
|
|
59
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-VQ6IXALL.mjs";
|
|
60
68
|
import {
|
|
61
69
|
FARM_DEFAULT_MCP_PATH,
|
|
62
70
|
collectFarmDefaultMCPPages,
|
|
@@ -65,10 +73,6 @@ import {
|
|
|
65
73
|
isFarmDefaultMCPPathname,
|
|
66
74
|
resolveFarmDefaultMCPServer
|
|
67
75
|
} from "./chunk-HR4N2K4V.mjs";
|
|
68
|
-
import {
|
|
69
|
-
createFarmMetadataImageResponse,
|
|
70
|
-
resolveFarmMetadataImageValue
|
|
71
|
-
} from "./chunk-EZYKV24V.mjs";
|
|
72
76
|
import {
|
|
73
77
|
installFarmIslandValues,
|
|
74
78
|
uninstallFarmIslandValues
|
|
@@ -96,24 +100,22 @@ import {
|
|
|
96
100
|
resolveProgrammaticClientRoutes,
|
|
97
101
|
runWithLatestPackageClientBoundaryCache,
|
|
98
102
|
runWithPackageClientBoundaryCacheFile,
|
|
103
|
+
setFarmRendererHydrationScope,
|
|
99
104
|
traceFarmSourceReads,
|
|
100
105
|
usesFarmServerTree,
|
|
101
106
|
withFarmSourceSnapshot
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import {
|
|
104
|
-
FARM_ISLAND_REPLAYABLE_SELECTOR
|
|
105
|
-
} from "./chunk-S32PDOLO.mjs";
|
|
107
|
+
} from "./chunk-B5SJYXJK.mjs";
|
|
106
108
|
import {
|
|
107
109
|
_setDefaultFarmThemeConfig,
|
|
108
110
|
getTheme
|
|
109
111
|
} from "./chunk-ZEWWZJPZ.mjs";
|
|
110
112
|
import {
|
|
111
113
|
isSecretDocsConfigKey
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-S3R4JDRO.mjs";
|
|
113
115
|
import {
|
|
114
116
|
resolveFarmAuthConfig,
|
|
115
117
|
resolveFarmDevIndicatorsConfig
|
|
116
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-5V6HSJFG.mjs";
|
|
117
119
|
import {
|
|
118
120
|
normalizeRouteRules
|
|
119
121
|
} from "./chunk-YVVY276M.mjs";
|
|
@@ -126,7 +128,7 @@ import {
|
|
|
126
128
|
resolveFarmAgentCrawlers,
|
|
127
129
|
resolveFarmAgentSitemap,
|
|
128
130
|
resolveFarmPerformanceConfig
|
|
129
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-NQ3Y6E2T.mjs";
|
|
130
132
|
import {
|
|
131
133
|
createFarmCspNonce,
|
|
132
134
|
createFarmCspNonceRewriter,
|
|
@@ -165,13 +167,13 @@ import {
|
|
|
165
167
|
resolveFarmRenderer,
|
|
166
168
|
resolveFarmRendererAppSetup,
|
|
167
169
|
resolveFarmRendererModule
|
|
168
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-RGTZAM6Y.mjs";
|
|
169
171
|
import {
|
|
170
172
|
resolveFarmImageConfig
|
|
171
173
|
} from "./chunk-AOIUYHPH.mjs";
|
|
172
174
|
import {
|
|
173
175
|
resolveCronConfig
|
|
174
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-7VJXYB6S.mjs";
|
|
175
177
|
import {
|
|
176
178
|
resolveServerActionsConfig
|
|
177
179
|
} from "./chunk-NLATR3T3.mjs";
|
|
@@ -208,7 +210,7 @@ import {
|
|
|
208
210
|
getIntegrationProviders,
|
|
209
211
|
getRegisteredIntegrationAPIManifest,
|
|
210
212
|
isFarmIntegrationProviderComponentReference
|
|
211
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-XRSNW4IU.mjs";
|
|
212
214
|
import {
|
|
213
215
|
initStorage
|
|
214
216
|
} from "./chunk-QBJ6N5MT.mjs";
|
|
@@ -306,7 +308,7 @@ import {
|
|
|
306
308
|
} from "./chunk-EILUVBKS.mjs";
|
|
307
309
|
import {
|
|
308
310
|
FARM_VERSION
|
|
309
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-NKVBWPXR.mjs";
|
|
310
312
|
import {
|
|
311
313
|
normalizeFarmAPIConfig
|
|
312
314
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -505,6 +507,14 @@ var RouteManager = class _RouteManager {
|
|
|
505
507
|
this.programmaticPages = /* @__PURE__ */ new Map();
|
|
506
508
|
this.programmaticLayouts = /* @__PURE__ */ new Map();
|
|
507
509
|
this.programmaticClientRoutes = mergeProgrammaticClientRoutes([]);
|
|
510
|
+
// The hydration settings each route rule returned, by file.
|
|
511
|
+
this.rendererRouteHydration = /* @__PURE__ */ new Map();
|
|
512
|
+
this.disposeRendererHydration = () => {
|
|
513
|
+
};
|
|
514
|
+
// The directories a renderer's route rules scan, and the files they mapped, absolute with `/`
|
|
515
|
+
// separators.
|
|
516
|
+
this.rendererRouteDirs = [];
|
|
517
|
+
this.rendererRouteModules = /* @__PURE__ */ new Set();
|
|
508
518
|
this.discovery = Promise.resolve();
|
|
509
519
|
this.reportedIslandsErrors = /* @__PURE__ */ new Set();
|
|
510
520
|
// Each route module's hydration plan from the last plan, with the source files it read, so a dev
|
|
@@ -555,10 +565,65 @@ var RouteManager = class _RouteManager {
|
|
|
555
565
|
this.programmaticPages = next.programmaticPages;
|
|
556
566
|
this.programmaticLayouts = next.programmaticLayouts;
|
|
557
567
|
this.programmaticClientRoutes = next.programmaticClientRoutes;
|
|
568
|
+
this.rendererNotFoundPath = next.rendererNotFoundPath;
|
|
569
|
+
this.rendererRouteHydration = next.rendererRouteHydration;
|
|
570
|
+
this.rendererRouteDirs = next.rendererRouteDirs;
|
|
571
|
+
this.rendererRouteModules = next.rendererRouteModules;
|
|
572
|
+
this.recordRendererHydration();
|
|
558
573
|
});
|
|
559
574
|
this.discovery = discovery;
|
|
560
575
|
return discovery;
|
|
561
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* Hands the client-module reader the renderer's hydration levels for this scan's pages and
|
|
579
|
+
* layouts (`hydration` and route rules on the renderer descriptor).
|
|
580
|
+
*/
|
|
581
|
+
recordRendererHydration() {
|
|
582
|
+
this.disposeRendererHydration();
|
|
583
|
+
const renderer = this.config.renderer;
|
|
584
|
+
const routeModules = [];
|
|
585
|
+
for (const [kind, entries] of [
|
|
586
|
+
["page", this.routes.values()],
|
|
587
|
+
["layout", this.layouts.values()]
|
|
588
|
+
]) {
|
|
589
|
+
for (const entry of entries) {
|
|
590
|
+
if (entry.source === "programmatic") continue;
|
|
591
|
+
routeModules.push({
|
|
592
|
+
modulePath: entry.modulePath,
|
|
593
|
+
kind,
|
|
594
|
+
hydration: this.rendererRouteHydration.get(entry.modulePath)
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
this.disposeRendererHydration = setFarmRendererHydrationScope(
|
|
599
|
+
getFarmSourceRoots(this.config).map((source) => source.root),
|
|
600
|
+
renderer,
|
|
601
|
+
routeModules
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* The not-found page a renderer's `routes()` mapped, null when it mapped none, or undefined when
|
|
606
|
+
* the renderer has no route rules and Farm looks for `src/app/not-found.*` itself.
|
|
607
|
+
*/
|
|
608
|
+
getRendererNotFoundPath() {
|
|
609
|
+
return this.rendererNotFoundPath;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Whether `file` is under a directory a renderer's route rules scan, where adding or removing a
|
|
613
|
+
* file can change the routes.
|
|
614
|
+
*/
|
|
615
|
+
isRendererRouteFile(file) {
|
|
616
|
+
if (this.rendererRouteDirs.length === 0) return false;
|
|
617
|
+
const normalized = file.replace(/\\/g, "/");
|
|
618
|
+
return this.rendererRouteDirs.some((dir) => normalized.startsWith(`${dir}/`));
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Whether `file` is a page, layout, loading, error or not-found file a renderer's route rules
|
|
622
|
+
* mapped, where an edit can change what the route renders or whether it hydrates.
|
|
623
|
+
*/
|
|
624
|
+
isRendererRouteModule(file) {
|
|
625
|
+
return this.rendererRouteModules.size > 0 && this.rendererRouteModules.has(file.replace(/\\/g, "/"));
|
|
626
|
+
}
|
|
562
627
|
/** Fill this manager's empty route tables. Only a fresh manager made by discoverRoutes runs it. */
|
|
563
628
|
async discoverInto() {
|
|
564
629
|
const programmaticClientRoutes = [];
|
|
@@ -1409,11 +1474,38 @@ var RouteManager = class _RouteManager {
|
|
|
1409
1474
|
(extension) => extension.slice(1)
|
|
1410
1475
|
);
|
|
1411
1476
|
const componentGlob = componentExtensions.join(",");
|
|
1412
|
-
const
|
|
1477
|
+
const rendererRoutes = await resolveFarmRendererRoutes({
|
|
1478
|
+
renderer: this.config.renderer,
|
|
1479
|
+
root: source.root,
|
|
1480
|
+
srcDir: source.srcDir
|
|
1481
|
+
});
|
|
1482
|
+
const routeModulePaths = /* @__PURE__ */ new Map();
|
|
1483
|
+
const modulePathOf = (file) => routeModulePaths.get(file) ?? path2.join(appDir, file);
|
|
1484
|
+
const rendererFiles = (kind) => (rendererRoutes?.entries ?? []).filter((entry) => entry.kind === kind).map((entry) => {
|
|
1485
|
+
routeModulePaths.set(entry.routeFile, entry.modulePath);
|
|
1486
|
+
if (entry.hydration.hydrate !== void 0 || entry.hydration.strategy !== void 0) {
|
|
1487
|
+
this.rendererRouteHydration.set(entry.modulePath, entry.hydration);
|
|
1488
|
+
}
|
|
1489
|
+
return entry.routeFile;
|
|
1490
|
+
});
|
|
1491
|
+
if (rendererRoutes) {
|
|
1492
|
+
this.rendererRouteDirs.push(rendererRoutes.dir.replace(/\\/g, "/"));
|
|
1493
|
+
for (const entry of rendererRoutes.entries) {
|
|
1494
|
+
this.rendererRouteModules.add(entry.modulePath.replace(/\\/g, "/"));
|
|
1495
|
+
}
|
|
1496
|
+
const notFound = rendererRoutes.entries.find((entry) => entry.kind === "not-found");
|
|
1497
|
+
if (notFound || this.rendererNotFoundPath === void 0) {
|
|
1498
|
+
this.rendererNotFoundPath = notFound?.modulePath ?? null;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
const pageFiles = rendererRoutes ? [
|
|
1502
|
+
...rendererFiles("page"),
|
|
1503
|
+
...await safeGlobFiles(`**/@*/**/page.{${componentGlob},md,mdx}`, appDir)
|
|
1504
|
+
] : await safeGlobFiles(`**/page.{${componentGlob},md,mdx}`, appDir);
|
|
1413
1505
|
const slotDefaultFiles = await safeGlobFiles(`**/@*/**/default.{${componentGlob}}`, appDir);
|
|
1414
|
-
const layoutFiles = await safeGlobFiles(`**/layout.{${componentGlob}}`, appDir);
|
|
1415
|
-
const loadingFiles = await safeGlobFiles(`**/loading.{${componentGlob}}`, appDir);
|
|
1416
|
-
const errorFiles = await safeGlobFiles(`**/error.{${componentGlob}}`, appDir);
|
|
1506
|
+
const layoutFiles = rendererRoutes ? rendererFiles("layout") : await safeGlobFiles(`**/layout.{${componentGlob}}`, appDir);
|
|
1507
|
+
const loadingFiles = rendererRoutes ? rendererFiles("loading") : await safeGlobFiles(`**/loading.{${componentGlob}}`, appDir);
|
|
1508
|
+
const errorFiles = rendererRoutes ? rendererFiles("error") : await safeGlobFiles(`**/error.{${componentGlob}}`, appDir);
|
|
1417
1509
|
const metadataImageFiles = await safeGlobFiles(
|
|
1418
1510
|
`**/{opengraph-image,twitter-image}.{${componentGlob},png,jpg,jpeg,gif,webp}`,
|
|
1419
1511
|
appDir
|
|
@@ -1441,19 +1533,19 @@ var RouteManager = class _RouteManager {
|
|
|
1441
1533
|
const markdownFiles = group.files.filter(isFarmMarkdownPageFile);
|
|
1442
1534
|
if (componentFiles.length > 1) {
|
|
1443
1535
|
throw new Error(
|
|
1444
|
-
`Duplicate page route "${pattern}". Found ${componentFiles.map(
|
|
1536
|
+
`Duplicate page route "${pattern}". Found ${componentFiles.map(modulePathOf).join(" and ")}.`
|
|
1445
1537
|
);
|
|
1446
1538
|
}
|
|
1447
1539
|
if (markdownFiles.length > 1) {
|
|
1448
1540
|
throw new Error(
|
|
1449
|
-
`Duplicate markdown representation for page route "${pattern}". Found ${markdownFiles.map(
|
|
1541
|
+
`Duplicate markdown representation for page route "${pattern}". Found ${markdownFiles.map(modulePathOf).join(" and ")}.`
|
|
1450
1542
|
);
|
|
1451
1543
|
}
|
|
1452
1544
|
const componentFile = componentFiles[0];
|
|
1453
1545
|
const markdownFile = markdownFiles[0];
|
|
1454
1546
|
const primaryFile = componentFile || markdownFile;
|
|
1455
1547
|
if (!primaryFile) continue;
|
|
1456
|
-
const modulePath =
|
|
1548
|
+
const modulePath = modulePathOf(primaryFile);
|
|
1457
1549
|
const existing = this.routes.get(pattern);
|
|
1458
1550
|
if (existing?.sourceRoot === source.root) {
|
|
1459
1551
|
throw new Error(
|
|
@@ -1464,7 +1556,7 @@ var RouteManager = class _RouteManager {
|
|
|
1464
1556
|
route: group.route,
|
|
1465
1557
|
modulePath,
|
|
1466
1558
|
...markdownFile ? {
|
|
1467
|
-
markdownSourcePath:
|
|
1559
|
+
markdownSourcePath: modulePathOf(markdownFile)
|
|
1468
1560
|
} : {},
|
|
1469
1561
|
pattern,
|
|
1470
1562
|
...getPageDirectoryField(group.route, pattern),
|
|
@@ -1479,7 +1571,7 @@ var RouteManager = class _RouteManager {
|
|
|
1479
1571
|
]) {
|
|
1480
1572
|
for (const file of files) {
|
|
1481
1573
|
const route = parseRoutePath(file);
|
|
1482
|
-
const modulePath =
|
|
1574
|
+
const modulePath = modulePathOf(file);
|
|
1483
1575
|
const pattern = createRouteDirectoryPattern(route);
|
|
1484
1576
|
const existing = target.get(pattern);
|
|
1485
1577
|
if (existing?.sourceRoot === source.root) {
|
|
@@ -1781,8 +1873,6 @@ var RouteManager = class _RouteManager {
|
|
|
1781
1873
|
getDocsAdapterRoutes() {
|
|
1782
1874
|
const docs = this.config.docs;
|
|
1783
1875
|
if (!docs || typeof docs !== "object" || !docs.enabled) return void 0;
|
|
1784
|
-
const usesAdapter = Boolean(docs.adapter && docs.adapter.server && docs.adapter.react);
|
|
1785
|
-
if (usesAdapter && !isReactRenderer(this.config.renderer)) return void 0;
|
|
1786
1876
|
const entry = `/${String(docs.entry || "docs").replace(/^\/+|\/+$/g, "")}`;
|
|
1787
1877
|
return {
|
|
1788
1878
|
owns: (routePath) => entry === "/" || routePath === entry || routePath.startsWith(`${entry}/`),
|
|
@@ -3322,7 +3412,7 @@ import { Readable, Writable } from "stream";
|
|
|
3322
3412
|
// src/not-found.ts
|
|
3323
3413
|
import fs4 from "fs";
|
|
3324
3414
|
import path7 from "path";
|
|
3325
|
-
function resolveFarmNotFoundComponentPath(config, appDirs) {
|
|
3415
|
+
function resolveFarmNotFoundComponentPath(config, appDirs, discovered) {
|
|
3326
3416
|
const extensions = getFarmRendererComponentExtensions(config.renderer);
|
|
3327
3417
|
const configuredPath = config.notFound?.component?.trim();
|
|
3328
3418
|
if (configuredPath) {
|
|
@@ -3337,6 +3427,7 @@ function resolveFarmNotFoundComponentPath(config, appDirs) {
|
|
|
3337
3427
|
}
|
|
3338
3428
|
return componentPath;
|
|
3339
3429
|
}
|
|
3430
|
+
if (discovered !== void 0) return discovered;
|
|
3340
3431
|
let discoveredPath = null;
|
|
3341
3432
|
for (const appDir of appDirs) {
|
|
3342
3433
|
for (const extension of extensions) {
|
|
@@ -4042,10 +4133,6 @@ var PPR_REFRESH_MAX_ATTEMPTS = 3;
|
|
|
4042
4133
|
function createPPRRefreshScript() {
|
|
4043
4134
|
return `<script>(function(){if(window.__FARM_PPR_REFRESHING__)return;window.__FARM_PPR_REFRESHING__=true;var owner=document.currentScript;function applyState(doc){doc.querySelectorAll("script[data-farm-refresh-state]").forEach(function(source){var script=document.createElement("script");if(owner&&owner.nonce)script.nonce=owner.nonce;script.textContent=source.textContent||"";document.head.appendChild(script);script.remove();});}function key(node){return node.nodeType===1?node.getAttribute("id"):null}function compatible(current,next){if(current.nodeType!==next.nodeType)return false;if(current.nodeType===1&¤t.tagName!==next.tagName)return false;var currentKey=key(current);var nextKey=key(next);return currentKey||nextKey?currentKey===nextKey:true}function syncAttributes(current,next){Array.from(current.attributes).forEach(function(attribute){if(!next.hasAttribute(attribute.name))current.removeAttribute(attribute.name)});Array.from(next.attributes).forEach(function(attribute){if(current.getAttribute(attribute.name)!==attribute.value)current.setAttribute(attribute.name,attribute.value)})}function syncChildren(current,next){var cursor=current.firstChild;Array.from(next.childNodes).forEach(function(nextChild){if(cursor&&compatible(cursor,nextChild)){var matched=cursor;cursor=cursor.nextSibling;syncNode(matched,nextChild);return}var candidate=cursor;while(candidate&&!compatible(candidate,nextChild))candidate=candidate.nextSibling;if(candidate){current.insertBefore(candidate,cursor);syncNode(candidate,nextChild);return}current.insertBefore(nextChild.cloneNode(true),cursor)});while(cursor){var stale=cursor;cursor=cursor.nextSibling;stale.remove()}}function syncNode(current,next){if(current.nodeType===3||current.nodeType===8){if(current.nodeValue!==next.nodeValue)current.nodeValue=next.nodeValue;return}if(current.nodeType!==1)return;var tag=current.tagName;var value=tag==="INPUT"&¤t.type==="file"?null:"value" in current?current.value:null;var checked="checked" in current?current.checked:null;var selected=tag==="SELECT"?Array.from(current.options).map(function(option){return option.selected}):null;var focused=document.activeElement===current;var selection=focused&&typeof current.selectionStart==="number"?[current.selectionStart,current.selectionEnd,current.selectionDirection]:null;syncAttributes(current,next);syncChildren(current,next);if(value!==null)current.value=value;if(checked!==null)current.checked=checked;if(selected)Array.from(current.options).forEach(function(option,index){option.selected=selected[index]===true});if(selection)try{current.setSelectionRange(selection[0],selection[1],selection[2])}catch{}}function replaceRoot(html){var doc=new DOMParser().parseFromString(html,"text/html");var next=doc.getElementById("root");var current=document.getElementById("root");if(!next||!current)return false;applyState(doc);syncNode(current,next);return true}var attempts=0,settle;window.__FARM_PPR_REFRESH_PROMISE__=new Promise(function(resolve){settle=resolve;});function release(){window.__FARM_PPR_REFRESHING__=false;}function retry(){settle();if(window.__FARM_PPR_HYDRATING__||attempts>=${PPR_REFRESH_MAX_ATTEMPTS})return release();if(navigator.onLine===false){window.addEventListener("online",run,{once:true});return;}setTimeout(run,1000*Math.pow(2,attempts-1));}function run(){if(window.__FARM_PPR_HYDRATING__)return release();attempts++;fetch(window.location.href,{cache:"no-store",credentials:"same-origin",headers:{"x-farm-ppr-refresh":"1"}}).then(function(response){if(!response.ok)throw new Error("status "+response.status);return response.text();}).then(function(html){if(window.__FARM_PPR_HYDRATING__)return release();if(!replaceRoot(html))throw new Error("no root");settle();}).catch(retry);}run();})();</script>`;
|
|
4044
4135
|
}
|
|
4045
|
-
function createPreHydrationClickQueueScript() {
|
|
4046
|
-
const selector = JSON.stringify(FARM_ISLAND_REPLAYABLE_SELECTOR);
|
|
4047
|
-
return `<script>(function(){if(window.__FARM_PREHYDRATION_CLICK_QUEUE__)return;var queue=[];window.__FARM_PREHYDRATION_CLICK_QUEUE__=queue;window.__FARM_HYDRATED__=false;document.documentElement.dataset.farmHydrated="false";function isModified(event){return !!(event.metaKey||event.altKey||event.ctrlKey||event.shiftKey)}function inHydrated(node){return !!(node&&node.closest&&node.closest('[data-farm-island-hydrated="true"]'))}function closestQueuedTarget(target){while(target&&target!==document.documentElement){if(target.matches&&target.matches(${selector}))return target;target=target.parentElement}return null}function announce(target,kind){document.dispatchEvent(new CustomEvent("farm:island-interaction",{detail:{target:target,kind:kind||null}}))}function submits(target,kind){return kind==="submit"||!!(target.form&&target.type==="submit")}function hold(event,target,kind){if(!(submits(target,kind)&&queue.some(function(item){return item.target===target}))){queue.push({target:target,kind:kind,createdAt:Date.now()});announce(target,kind)}event.preventDefault();event.stopImmediatePropagation()}document.addEventListener("click",function(event){if(window.__FARM_HYDRATED__)return;if(event.defaultPrevented||event.button!==0||isModified(event))return;var target=closestQueuedTarget(event.target);if(!target||target.closest&&target.closest("a[href]")||inHydrated(target))return;hold(event,target,"click")},true);document.addEventListener("submit",function(event){if(window.__FARM_HYDRATED__)return;if(event.defaultPrevented)return;var form=event.target;if(!form||form.nodeName!=="FORM"||inHydrated(form))return;hold(event,form,"submit")},true);function observe(event){if(window.__FARM_HYDRATED__)return;var target=event.target;if(!(target&&target.closest)||inHydrated(target))return;announce(target,null)}document.addEventListener("pointerdown",observe,true);document.addEventListener("focusin",observe,true);})();</script>`;
|
|
4048
|
-
}
|
|
4049
4136
|
function rendererRenderOptions() {
|
|
4050
4137
|
const nonce = _resolveCurrentCspNonce();
|
|
4051
4138
|
return nonce ? { nonce } : void 0;
|
|
@@ -4238,7 +4325,10 @@ var ServerRenderer = class {
|
|
|
4238
4325
|
this.appliedAppSetupModule = setupModule;
|
|
4239
4326
|
configureApp(setupModule.default);
|
|
4240
4327
|
}
|
|
4241
|
-
createPageBoundary(pageElement, options) {
|
|
4328
|
+
async createPageBoundary(pageElement, options) {
|
|
4329
|
+
if (options.pageShouldHydrate && !options.layoutShouldHydrate) {
|
|
4330
|
+
pageElement = await this.wrapIslandIntegrationProviders(pageElement);
|
|
4331
|
+
}
|
|
4242
4332
|
const boundary = this.rendererRuntime.createElement(
|
|
4243
4333
|
"div",
|
|
4244
4334
|
{
|
|
@@ -4253,6 +4343,15 @@ var ServerRenderer = class {
|
|
|
4253
4343
|
);
|
|
4254
4344
|
return options.pageShouldHydrate && !options.layoutShouldHydrate && this.reactRenderer ? this.reactRenderer.markPagePosition(boundary) : boundary;
|
|
4255
4345
|
}
|
|
4346
|
+
/**
|
|
4347
|
+
* The browser hydrates a page island or a route slot as its own root, inside the integration
|
|
4348
|
+
* providers, so the server renders the providers inside it too, or a provider that renders
|
|
4349
|
+
* markup (a Vue `<slot />` renders fragment markers) puts the root's HTML out of step. React
|
|
4350
|
+
* lines an island up with its tree position instead, and its providers render no markup.
|
|
4351
|
+
*/
|
|
4352
|
+
async wrapIslandIntegrationProviders(element) {
|
|
4353
|
+
return this.reactRenderer ? element : this.wrapWithIntegrationProviders(element);
|
|
4354
|
+
}
|
|
4256
4355
|
/// The app's `<srcDir>/app/globals.css`, linked only when it exists, as the
|
|
4257
4356
|
/// production build imports it only when it exists. An app without one gets
|
|
4258
4357
|
/// no stylesheet link rather than a failing request.
|
|
@@ -4470,7 +4569,7 @@ var ServerRenderer = class {
|
|
|
4470
4569
|
} else if (input.layoutShouldHydrate && !input.pageShouldHydrate && this.rendererRuntime.isolateServerPageGraph) {
|
|
4471
4570
|
element = await this.isolateServerPage(element, input.serverTree === true);
|
|
4472
4571
|
}
|
|
4473
|
-
element = this.createPageBoundary(element, {
|
|
4572
|
+
element = await this.createPageBoundary(element, {
|
|
4474
4573
|
pageShouldHydrate: input.pageShouldHydrate,
|
|
4475
4574
|
layoutShouldHydrate: input.layoutShouldHydrate,
|
|
4476
4575
|
islandStrategy: input.islandStrategy
|
|
@@ -4495,7 +4594,11 @@ var ServerRenderer = class {
|
|
|
4495
4594
|
continue;
|
|
4496
4595
|
}
|
|
4497
4596
|
let slotElement = this.rendererRuntime.createElement(slot.module.default, slot.props);
|
|
4498
|
-
if (slot.shouldHydrate !== false)
|
|
4597
|
+
if (slot.shouldHydrate !== false) {
|
|
4598
|
+
slotElement = this.wrapClientGraph(
|
|
4599
|
+
await this.wrapIslandIntegrationProviders(slotElement)
|
|
4600
|
+
);
|
|
4601
|
+
}
|
|
4499
4602
|
slotProps[slot.name] = this.rendererRuntime.createElement(
|
|
4500
4603
|
"div",
|
|
4501
4604
|
{
|
|
@@ -4841,7 +4944,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
4841
4944
|
}
|
|
4842
4945
|
);
|
|
4843
4946
|
const layoutShouldHydrate = layoutMetadata.some((metadata) => metadata.shouldHydrate);
|
|
4844
|
-
pageElement = this.createPageBoundary(pageElement, {
|
|
4947
|
+
pageElement = await this.createPageBoundary(pageElement, {
|
|
4845
4948
|
pageShouldHydrate: pageMetadata.shouldHydrate,
|
|
4846
4949
|
layoutShouldHydrate,
|
|
4847
4950
|
islandStrategy: pageMetadata.islandStrategy
|
|
@@ -4858,7 +4961,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
4858
4961
|
if (pageMetadata.shouldHydrate && !layoutShouldHydrate && this.reactRenderer) {
|
|
4859
4962
|
pageElement = this.reactRenderer.markLayoutPosition(pageElement);
|
|
4860
4963
|
}
|
|
4861
|
-
const html = await this.
|
|
4964
|
+
const { html, head: rendererHead } = await this.renderElementToDocumentParts(
|
|
4862
4965
|
await this.wrapWithIntegrationProviders(pageElement)
|
|
4863
4966
|
);
|
|
4864
4967
|
const mergedMetadata = await this.resolveRouteMetadata({
|
|
@@ -4867,8 +4970,9 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
4867
4970
|
pageProps,
|
|
4868
4971
|
pathname: page.urlPath
|
|
4869
4972
|
});
|
|
4870
|
-
const { title, tags, hasFavicon } = renderMetadataHead(mergedMetadata);
|
|
4871
|
-
const
|
|
4973
|
+
const { title, tags, hasFavicon, hasExplicitTitle } = renderMetadataHead(mergedMetadata);
|
|
4974
|
+
const titleTag = !hasExplicitTitle && /<title[\s>]/i.test(rendererHead) ? "" : `<title>${title}</title>`;
|
|
4975
|
+
const metadataHead = `${hasFavicon ? "" : '<link rel="icon" href="data:,">\n '}${titleTag}${tags}${rendererHead}`;
|
|
4872
4976
|
const fullDocument = this.createFullHTML(
|
|
4873
4977
|
html,
|
|
4874
4978
|
pageMetadata.shouldHydrate === true,
|
|
@@ -5490,7 +5594,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5490
5594
|
routeManifestEntry?.serverTree === true
|
|
5491
5595
|
);
|
|
5492
5596
|
}
|
|
5493
|
-
pageElement = this.createPageBoundary(pageElement, {
|
|
5597
|
+
pageElement = await this.createPageBoundary(pageElement, {
|
|
5494
5598
|
pageShouldHydrate: isClientComponent || shouldHydrate,
|
|
5495
5599
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
5496
5600
|
islandStrategy: hydrationIslandStrategy
|
|
@@ -5539,7 +5643,11 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
5539
5643
|
slot.module.default,
|
|
5540
5644
|
slot.props
|
|
5541
5645
|
);
|
|
5542
|
-
if (slot.shouldHydrate)
|
|
5646
|
+
if (slot.shouldHydrate) {
|
|
5647
|
+
slotElement = this.wrapClientGraph(
|
|
5648
|
+
await this.wrapIslandIntegrationProviders(slotElement)
|
|
5649
|
+
);
|
|
5650
|
+
}
|
|
5543
5651
|
slotElement = this.rendererRuntime.createElement(
|
|
5544
5652
|
"div",
|
|
5545
5653
|
{
|
|
@@ -6413,6 +6521,21 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6413
6521
|
return false;
|
|
6414
6522
|
}
|
|
6415
6523
|
}
|
|
6524
|
+
/**
|
|
6525
|
+
* Islands mode: a page whose route hydrates nothing as a root hydrates only islands, which hold
|
|
6526
|
+
* their own clicks, so nothing else on it is held, as in production.
|
|
6527
|
+
*/
|
|
6528
|
+
isIslandsOnlyPage(req) {
|
|
6529
|
+
return this.islandValues() && req.__FARM_PAGE_SHOULD_HYDRATE__ !== true && req.__FARM_LAYOUT_SHOULD_HYDRATE__ !== true && req.__FARM_HAS_HYDRATABLE_ROUTE_SLOTS__ !== true;
|
|
6530
|
+
}
|
|
6531
|
+
/**
|
|
6532
|
+
* The head script that holds a page's clicks and submits until it hydrates, which the client
|
|
6533
|
+
* replays once it has. Production writes it into the same pages, streamed or buffered.
|
|
6534
|
+
*/
|
|
6535
|
+
renderPreHydrationHold(req, bootClient) {
|
|
6536
|
+
const hydrates = req.__FARM_IS_CLIENT_COMPONENT__ === true || req.__FARM_SHOULD_HYDRATE__ === true || req.__FARM_HAS_HYDRATABLE_ROUTE_SLOTS__ === true;
|
|
6537
|
+
return hydrates && !bootClient && !this.isIslandsOnlyPage(req) ? createPreHydrationClickQueueScript() : "";
|
|
6538
|
+
}
|
|
6416
6539
|
async renderBufferedSSR(element, req, res, clearMiddlewareData, options = {}) {
|
|
6417
6540
|
const startedAt = Date.now();
|
|
6418
6541
|
const route = options.observabilityRoute || req.__FARM_ROUTE__ || req.url || "/";
|
|
@@ -6465,6 +6588,7 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
6465
6588
|
const farmClientScript = farmScripts(
|
|
6466
6589
|
`<script type="module" src="/@farm/client.js"></script>`
|
|
6467
6590
|
);
|
|
6591
|
+
const holdScript = farmScripts(this.renderPreHydrationHold(req, false));
|
|
6468
6592
|
const { html: content, head: rendererHead } = await this.renderElementToDocumentParts(
|
|
6469
6593
|
element,
|
|
6470
6594
|
{
|
|
@@ -6523,7 +6647,8 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
6523
6647
|
...this.collectDevStyleLinks(),
|
|
6524
6648
|
viteClientScript,
|
|
6525
6649
|
rendererHydrationScript,
|
|
6526
|
-
bootstrapScript
|
|
6650
|
+
bootstrapScript,
|
|
6651
|
+
holdScript
|
|
6527
6652
|
].filter(Boolean).join("\n "),
|
|
6528
6653
|
bodyFooter: [deferredScript, farmClientScript].filter(Boolean).join("\n ")
|
|
6529
6654
|
});
|
|
@@ -6543,7 +6668,8 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
6543
6668
|
${l}`).join("")}
|
|
6544
6669
|
${viteClientScript}
|
|
6545
6670
|
${rendererHydrationScript}
|
|
6546
|
-
${bootstrapScript}
|
|
6671
|
+
${bootstrapScript}${holdScript ? `
|
|
6672
|
+
${holdScript}` : ""}
|
|
6547
6673
|
</head>
|
|
6548
6674
|
<body class="">
|
|
6549
6675
|
<div id="root">${content}</div>
|
|
@@ -6683,11 +6809,12 @@ window.__FARM_MANIFEST__ = ${JSON.stringify(clientManifest)};
|
|
|
6683
6809
|
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(getRegisteredIntegrationAPIManifest())};
|
|
6684
6810
|
window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getFarmI18nClientSnapshot()) : "null"};
|
|
6685
6811
|
</script>${renderFarmFormStateScript()}`;
|
|
6686
|
-
const islandsOnlyPage = this.
|
|
6812
|
+
const islandsOnlyPage = this.isIslandsOnlyPage(req);
|
|
6687
6813
|
const rootStrategy = req.__FARM_ISLAND_STRATEGY__;
|
|
6688
6814
|
const waitingRoot = this.islandValues() && !islandsOnlyPage && req.__FARM_HAS_HYDRATABLE_ROUTE_SLOTS__ !== true && rootStrategy !== void 0 && rootStrategy !== "load" ? req.__FARM_LAYOUT_SHOULD_HYDRATE__ === true ? "root" : "__farm_page__" : null;
|
|
6689
6815
|
const bootClient = (islandsOnlyPage || waitingRoot !== null) && !staticShellParts && resolveFarmPlatform() !== "mobile" && canBootFarmIslandsClient(this.config);
|
|
6690
|
-
const hydrationClickQueueScript =
|
|
6816
|
+
const hydrationClickQueueScript = this.renderPreHydrationHold(req, bootClient);
|
|
6817
|
+
const rendererHydrationScript = this.rendererRuntime.generateHydrationScript?.() || "";
|
|
6691
6818
|
const {
|
|
6692
6819
|
title,
|
|
6693
6820
|
tags: metaTags,
|
|
@@ -6753,7 +6880,8 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
6753
6880
|
${fontHead}
|
|
6754
6881
|
${globalStylesheetLink}${devStyleLinks.map((l) => `
|
|
6755
6882
|
${l}`).join("")}
|
|
6756
|
-
<script type="module" src="/@vite/client"></script
|
|
6883
|
+
<script type="module" src="/@vite/client"></script>${rendererHydrationScript ? `
|
|
6884
|
+
${rendererHydrationScript}` : ""}
|
|
6757
6885
|
${propsScript}
|
|
6758
6886
|
${hydrationClickQueueScript}
|
|
6759
6887
|
</head>
|
|
@@ -6807,6 +6935,7 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
6807
6935
|
globalStylesheetLink,
|
|
6808
6936
|
...devStyleLinks,
|
|
6809
6937
|
`<script type="module" src="/@vite/client"></script>`,
|
|
6938
|
+
rendererHydrationScript,
|
|
6810
6939
|
propsScript,
|
|
6811
6940
|
hydrationClickQueueScript
|
|
6812
6941
|
].filter(Boolean).join("\n ")
|
|
@@ -7043,11 +7172,19 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
7043
7172
|
const snapshot = getFarmI18nClientSnapshot();
|
|
7044
7173
|
return snapshot && url.startsWith("/") && !url.startsWith("//") ? localizeFarmHref(url, snapshot.locale, snapshot) : url;
|
|
7045
7174
|
}
|
|
7175
|
+
/**
|
|
7176
|
+
* The not-found page the renderer's `routes()` mapped, or undefined when the renderer has no route
|
|
7177
|
+
* rules and the not-found lookup scans `src/app` as before.
|
|
7178
|
+
*/
|
|
7179
|
+
getRendererNotFoundPath() {
|
|
7180
|
+
return this.config.renderer?.routes ? this.routeManager.getRendererNotFoundPath() : void 0;
|
|
7181
|
+
}
|
|
7046
7182
|
/** The app's not-found component, or null when it relies on the built-in page. */
|
|
7047
7183
|
async loadNotFoundModule() {
|
|
7048
7184
|
const notFoundPath = resolveFarmNotFoundComponentPath(
|
|
7049
7185
|
this.config,
|
|
7050
|
-
getFarmAppDirectories(this.config)
|
|
7186
|
+
getFarmAppDirectories(this.config),
|
|
7187
|
+
this.getRendererNotFoundPath()
|
|
7051
7188
|
);
|
|
7052
7189
|
if (!notFoundPath) return null;
|
|
7053
7190
|
return await this.routeManager.loadRouteModule(notFoundPath);
|
|
@@ -7129,9 +7266,9 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
7129
7266
|
const appDir = path10.join(this.config.root, this.config.srcDir, "app");
|
|
7130
7267
|
const notFoundExtensions = getFarmRendererComponentExtensions(this.config.renderer);
|
|
7131
7268
|
let layoutModule = null;
|
|
7269
|
+
const rendererRootLayout = this.config.renderer?.routes ? this.routeManager.getLayouts().get("/")?.modulePath : void 0;
|
|
7132
7270
|
try {
|
|
7133
|
-
for (const
|
|
7134
|
-
const layoutPath = path10.join(appDir, `layout${ext}`);
|
|
7271
|
+
for (const layoutPath of rendererRootLayout ? [rendererRootLayout] : notFoundExtensions.map((ext) => path10.join(appDir, `layout${ext}`))) {
|
|
7135
7272
|
if (fs7.existsSync(layoutPath)) {
|
|
7136
7273
|
layoutModule = await this.routeManager.loadLayoutModule(layoutPath);
|
|
7137
7274
|
break;
|
|
@@ -7139,7 +7276,8 @@ window.__FARM_I18N__ = ${getFarmI18nClientSnapshot() ? serializeInlineValue(getF
|
|
|
7139
7276
|
}
|
|
7140
7277
|
const notFoundPath = resolveFarmNotFoundComponentPath(
|
|
7141
7278
|
this.config,
|
|
7142
|
-
getFarmAppDirectories(this.config)
|
|
7279
|
+
getFarmAppDirectories(this.config),
|
|
7280
|
+
this.getRendererNotFoundPath()
|
|
7143
7281
|
);
|
|
7144
7282
|
if (notFoundPath) {
|
|
7145
7283
|
const notFoundModule = await this.loadNotFoundModule();
|
|
@@ -7491,6 +7629,7 @@ var FarmApp = class {
|
|
|
7491
7629
|
);
|
|
7492
7630
|
}
|
|
7493
7631
|
async verifyAppStructure() {
|
|
7632
|
+
if (typeof this.config.renderer?.routes === "function") return;
|
|
7494
7633
|
const appDirs = getFarmAppDirectories(this.config);
|
|
7495
7634
|
const hasAppDirectory = (await Promise.all(appDirs.map((appDir) => fileExists(appDir)))).some(
|
|
7496
7635
|
Boolean
|
|
@@ -8033,6 +8172,15 @@ function createFarmNavigationScript(script) {
|
|
|
8033
8172
|
freshScript.textContent = script.textContent || "";
|
|
8034
8173
|
return freshScript;
|
|
8035
8174
|
}
|
|
8175
|
+
// Readies nodes parsed outside the page (DOMParser, a <template>) for the page they move into.
|
|
8176
|
+
// Those parse as a page without scripting, so a <noscript>'s content comes out as elements, whose
|
|
8177
|
+
// images and frames would load once in the page. They become the text the page's own parser makes
|
|
8178
|
+
// of that markup.
|
|
8179
|
+
function adoptFarmParsedNodes(root) {
|
|
8180
|
+
for (const noscript of Array.from(root.querySelectorAll("noscript"))) {
|
|
8181
|
+
noscript.textContent = noscript.innerHTML;
|
|
8182
|
+
}
|
|
8183
|
+
}
|
|
8036
8184
|
// React streams Suspense content after its fallback, in a hidden segment that a reveal script
|
|
8037
8185
|
// ($RC for a boundary, $RS for a segment placeholder) moves into place. This makes the same moves
|
|
8038
8186
|
// in a parsed page, before it goes on screen, and drops the calls it made, so the islands in that
|
|
@@ -8131,7 +8279,8 @@ async function readFarmNavigationStream(body, flushToken) {
|
|
|
8131
8279
|
cancel: function() { reader.cancel().catch(function() {}); },
|
|
8132
8280
|
};
|
|
8133
8281
|
}`;
|
|
8134
|
-
var FARM_EARLY_NAVIGATION_SOURCE = `// The request the boot script sent for a link clicked before the router ran
|
|
8282
|
+
var FARM_EARLY_NAVIGATION_SOURCE = `// The request the boot script sent for a link pressed or clicked before the router ran
|
|
8283
|
+
// (islands-boot.ts).
|
|
8135
8284
|
// The next navigation request takes its response when it is the same request, and aborts it
|
|
8136
8285
|
// otherwise. The held island values may differ: a response for fewer of them carries more values,
|
|
8137
8286
|
// which fits any page. As with a prefetched page, a response sent over 30 seconds ago is not used.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkPWMJBCANcjs = require('./chunk-PWMJBCAN.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk55UJGUBPcjs = require('./chunk-55UJGUBP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _chunkY2FEFQAYcjs = require('./chunk-Y2FEFQAY.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkDMSXZNQRcjs = require('./chunk-DMSXZNQR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -123,10 +123,10 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
123
123
|
if (config[key] !== void 0) rscConfig[key] = config[key];
|
|
124
124
|
}
|
|
125
125
|
const createReactPlugin = hasPluginNamed(vitePlugins, "vite:react") ? void 0 : await _asyncNullishCoalesce(await _asyncOptionalChain([viteReact, 'optionalAccess', async _4 => _4.default]), async () => ( (options.command === "serve" ? (await _chunkY2FEFQAYcjs.loadFarmReactPlugin.call(void 0, )).default : void 0)));
|
|
126
|
-
const tailwind = hasPluginNamed(vitePlugins, "@tailwindcss/vite") ? void 0 : await
|
|
126
|
+
const tailwind = hasPluginNamed(vitePlugins, "@tailwindcss/vite") ? void 0 : await _chunkDMSXZNQRcjs.loadTailwindVitePlugin.call(void 0, );
|
|
127
127
|
const platform = _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, );
|
|
128
128
|
const mobileClient = config.mobile === void 0 || platform === "desktop" ? void 0 : options.command === "build" ? "entry" : platform === "mobile" ? "inline" : void 0;
|
|
129
|
-
const clientPluginEntry =
|
|
129
|
+
const clientPluginEntry = _chunkDMSXZNQRcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
130
130
|
config.plugins,
|
|
131
131
|
root,
|
|
132
132
|
typeof config.srcDir === "string" ? config.srcDir : "src",
|
|
@@ -163,7 +163,7 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
163
163
|
server: { environmentName: "rsc" },
|
|
164
164
|
config: {
|
|
165
165
|
preset: options.preset,
|
|
166
|
-
outputDir: options.outputDir &&
|
|
166
|
+
outputDir: options.outputDir && _chunk55UJGUBPcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
|
|
167
167
|
}
|
|
168
168
|
})
|
|
169
169
|
]
|
|
@@ -183,12 +183,12 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
183
183
|
async function resolveFarmRscServerPlugins(userConfig, config, root) {
|
|
184
184
|
const kept = _nullishCoalesce(config.plugins, () => ( []));
|
|
185
185
|
const names = new Set(
|
|
186
|
-
kept.filter((plugin) =>
|
|
186
|
+
kept.filter((plugin) => _chunkDMSXZNQRcjs.hasFarmServerRuntimePlugins.call(void 0, [plugin])).map((plugin) => plugin.name)
|
|
187
187
|
);
|
|
188
188
|
if (names.size === 0) return void 0;
|
|
189
189
|
const loads = (plugin) => {
|
|
190
190
|
const candidate = plugin;
|
|
191
|
-
return !!candidate && names.has(candidate.name) &&
|
|
191
|
+
return !!candidate && names.has(candidate.name) && _chunkDMSXZNQRcjs.hasFarmServerRuntimePlugins.call(void 0, [candidate]);
|
|
192
192
|
};
|
|
193
193
|
const { findFarmConfigFile, loadFarmConfigFile, resolveFarmLayers } = await import("./layers-XLOMMQP7.cjs");
|
|
194
194
|
const files = [];
|
|
@@ -217,7 +217,7 @@ async function resolveFarmRscServerPlugins(userConfig, config, root) {
|
|
|
217
217
|
}
|
|
218
218
|
async function configureFarmRscPlugins(config, command) {
|
|
219
219
|
if (config.plugins.length === 0) return config;
|
|
220
|
-
const { PluginManager } = await import("./plugin-
|
|
220
|
+
const { PluginManager } = await import("./plugin-3PT7I26P.cjs");
|
|
221
221
|
const manager = new PluginManager({
|
|
222
222
|
config,
|
|
223
223
|
isDev: command === "serve",
|