@farm.js/core 0.1.67 → 0.1.68
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-BFu9xHAi.d.ts → agent-mcp.d-Uh5xr7aX.d.ts} +1 -1
- package/dist/{agent-mcp.d-DWyWkTSy.d.mts → agent-mcp.d-wkVPK1GA.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +5 -3
- package/dist/agent-runtime.d.ts +5 -3
- package/dist/{analyzer-TTIIXXMQ.mjs → analyzer-CQDU7E3Y.mjs} +2 -2
- package/dist/analyzer-PPAHM4AW.cjs +16 -0
- package/dist/api/node.d.mts +7 -5
- package/dist/api/node.d.ts +7 -5
- package/dist/api/route-manager.d.mts +7 -5
- package/dist/api/route-manager.d.ts +7 -5
- package/dist/api/runtime.d.mts +6 -4
- package/dist/api/runtime.d.ts +6 -4
- package/dist/api.d.mts +8 -6
- package/dist/api.d.ts +8 -6
- package/dist/{app-manifest.d-CwfhGrVR.d.ts → app-manifest.d-BT5i2F-o.d.ts} +1 -1
- package/dist/{app-manifest.d-CRmjN5j9.d.mts → app-manifest.d-Dd4q5CFx.d.mts} +1 -1
- package/dist/app-markdown.cjs +3 -3
- package/dist/app-markdown.d.mts +10 -10
- package/dist/app-markdown.d.ts +10 -10
- package/dist/app-markdown.mjs +2 -2
- package/dist/{app.d-BX9LVTiP.d.ts → app.d-BVOpL_f2.d.ts} +6 -6
- package/dist/{app.d-uBBUxwyV.d.mts → app.d-BhiDXex_.d.mts} +6 -6
- package/dist/{chunk-23PVOIPT.cjs → chunk-225APHKC.cjs} +3 -3
- package/dist/{chunk-4JX3M4C6.cjs → chunk-23VJEGKC.cjs} +2 -1
- package/dist/{chunk-Q37INCXG.cjs → chunk-3EEINK7G.cjs} +11 -2
- package/dist/{chunk-BRWIVOV4.cjs → chunk-3GNHJ3RN.cjs} +10 -8
- package/dist/{chunk-QJVW76JG.mjs → chunk-3Y52TWYU.mjs} +2 -2
- package/dist/{chunk-OB3IFUK6.cjs → chunk-437QZIC2.cjs} +4 -4
- package/dist/{chunk-WGHY3OL5.mjs → chunk-4UAQB5LB.mjs} +232 -49
- package/dist/{chunk-JWSI5WO4.mjs → chunk-4ZXKYCYK.mjs} +1 -1
- package/dist/{chunk-N35YPV4N.mjs → chunk-57QAQU4F.mjs} +9 -7
- package/dist/{chunk-AQDLVHNF.mjs → chunk-5FBZJJGA.mjs} +17 -0
- package/dist/{chunk-PL6RTBDE.cjs → chunk-5JKDFRTK.cjs} +2 -2
- package/dist/{chunk-CO3YMZFD.mjs → chunk-6OFOIMNS.mjs} +1 -1
- package/dist/{chunk-556H7JCE.cjs → chunk-7LK5CTUM.cjs} +14 -14
- package/dist/{chunk-E6CD45JK.mjs → chunk-A3T445WK.mjs} +19 -5
- package/dist/{chunk-DQJ2CIH7.cjs → chunk-ASYOWPSR.cjs} +2 -1
- package/dist/{chunk-QGJ4FI2G.mjs → chunk-C6HGUTXB.mjs} +113 -29
- package/dist/{chunk-IRA2CZAY.mjs → chunk-CRVSYDHV.mjs} +2 -2
- package/dist/{chunk-XNZWMXCF.mjs → chunk-DIXFKAPM.mjs} +183 -76
- package/dist/{chunk-QGQP6QKO.cjs → chunk-DWLNLU55.cjs} +2 -2
- package/dist/{chunk-52Y3C3HG.mjs → chunk-E7VF3LQ5.mjs} +3 -2
- package/dist/{chunk-N5DQMOAG.cjs → chunk-F36LS2C7.cjs} +273 -90
- package/dist/{chunk-H37MDCPR.mjs → chunk-F6CMGWAL.mjs} +1 -1
- package/dist/{chunk-HNVAZGQD.cjs → chunk-FJMC24KG.cjs} +2 -2
- package/dist/{chunk-KCY52OUQ.cjs → chunk-FSODPZRT.cjs} +1 -1
- package/dist/{chunk-PPX7UOFY.cjs → chunk-FVYBEMOD.cjs} +55 -38
- package/dist/{chunk-6YBYX4K4.mjs → chunk-G7NBPP7H.mjs} +1 -1
- package/dist/{chunk-HFHJJXSV.mjs → chunk-GFPS7MNE.mjs} +1 -1
- package/dist/{chunk-3T5TLFCQ.mjs → chunk-HEJM46HQ.mjs} +11 -2
- package/dist/chunk-HHLEYA4B.cjs +17 -0
- package/dist/{chunk-F43OG25P.cjs → chunk-I7J5RLGO.cjs} +15 -1
- package/dist/chunk-ICFPTHXM.mjs +97 -0
- package/dist/{chunk-6V5YWI4W.cjs → chunk-IGDYL2IA.cjs} +2 -2
- package/dist/{chunk-TEG6HJVF.mjs → chunk-JL2YW5KX.mjs} +1 -0
- package/dist/{chunk-JVM3DKZE.mjs → chunk-KDO6T6OB.mjs} +1 -1
- package/dist/{chunk-QITSS4TD.cjs → chunk-KWCZKJYU.cjs} +352 -245
- package/dist/{chunk-DCXSIEFE.cjs → chunk-LDEXTX4I.cjs} +51 -37
- package/dist/{chunk-3T7ALZJF.cjs → chunk-LR4KP3I7.cjs} +2 -2
- package/dist/{chunk-VFXE6NWR.mjs → chunk-MGKWYPE3.mjs} +2 -1
- package/dist/{chunk-5TA63JD3.mjs → chunk-MGZVDX4R.mjs} +1 -1
- package/dist/{chunk-6SQZXRJ2.cjs → chunk-MMDKYJ5V.cjs} +7 -7
- package/dist/{chunk-HP2DQGQH.mjs → chunk-MNJDNTGO.mjs} +1 -1
- package/dist/{chunk-5Y2P454O.cjs → chunk-MTBDJ326.cjs} +6 -5
- package/dist/{chunk-XUES6OET.mjs → chunk-MV7NWU23.mjs} +1 -1
- package/dist/{chunk-4DRINDGN.cjs → chunk-MZ4CRSY7.cjs} +254 -125
- package/dist/{chunk-4IHMHFQB.cjs → chunk-NG2EZ6QS.cjs} +28 -1
- package/dist/{chunk-WDD5CTZW.mjs → chunk-NT4W4H52.mjs} +6 -6
- package/dist/{chunk-F7JKVHU2.mjs → chunk-NVOMQLI2.mjs} +15 -1
- package/dist/{chunk-22IWL4YD.cjs → chunk-OCNV4CI2.cjs} +21 -2
- package/dist/{chunk-72KCTHLV.cjs → chunk-PRL7FXG4.cjs} +113 -29
- package/dist/{chunk-YVTS3S3F.cjs → chunk-QOGIZKSO.cjs} +3 -3
- package/dist/{chunk-DB2HSHQA.cjs → chunk-QSUYB3RH.cjs} +14 -14
- package/dist/chunk-QYNZ3CTI.mjs +17 -0
- package/dist/{chunk-724MGMIL.mjs → chunk-R2ZHU37O.mjs} +19 -0
- package/dist/{chunk-YQYTQJZN.mjs → chunk-RLH5AH2M.mjs} +1 -1
- package/dist/{chunk-HM7AGSKU.cjs → chunk-SQ6IWJ3H.cjs} +1 -1
- package/dist/{chunk-V5MQMQ2P.mjs → chunk-T5XFZQCL.mjs} +1 -1
- package/dist/{chunk-Q5UX55YA.cjs → chunk-TNK2TVRS.cjs} +831 -470
- package/dist/{chunk-J7JHVCWA.cjs → chunk-UKZ6AWKZ.cjs} +2 -1
- package/dist/{chunk-V5RTHYJB.cjs → chunk-URN7VFO7.cjs} +91 -22
- package/dist/{chunk-HRPTMX5C.mjs → chunk-VFNAK6A5.mjs} +2 -2
- package/dist/{chunk-VK54PDQ6.mjs → chunk-VRGY3X2I.mjs} +86 -17
- package/dist/chunk-W44X6IC2.cjs +97 -0
- package/dist/{chunk-GTV2ABO7.mjs → chunk-WPB67LE5.mjs} +162 -33
- package/dist/{chunk-UHE5JUKB.mjs → chunk-XCAQTCGK.mjs} +1 -1
- package/dist/{chunk-DGOFR7D5.cjs → chunk-Y6KHPJDB.cjs} +2 -2
- package/dist/{chunk-LPIZMU7D.cjs → chunk-YTNBCXCW.cjs} +4 -4
- package/dist/{chunk-KWFNUODD.mjs → chunk-YVPX5PI5.mjs} +1 -0
- package/dist/{chunk-6R53ZWX2.cjs → chunk-Z3PW3DIR.cjs} +3 -3
- package/dist/{chunk-UHNSY2PQ.mjs → chunk-Z6SOXHAD.mjs} +772 -411
- package/dist/{chunk-5FE5YT2N.mjs → chunk-ZZGQD3LL.mjs} +28 -1
- package/dist/{client-component.d-CDRvRmbU.d.mts → client-component.d-BvQOxSqh.d.mts} +2 -2
- package/dist/{client-component.d-DWRKyAp5.d.ts → client-component.d-DNVSLEPi.d.ts} +2 -2
- package/dist/{client-plugins.d-BNILjfX3.d.mts → client-plugins.d-CE1lVK2R.d.mts} +23 -234
- package/dist/{client-plugins.d-CrKZiNSN.d.ts → client-plugins.d-CNDqcAuf.d.ts} +23 -234
- package/dist/client-plugins.d.mts +5 -3
- package/dist/client-plugins.d.ts +5 -3
- package/dist/client.cjs +6 -6
- package/dist/client.d.mts +10 -8
- package/dist/client.d.ts +10 -8
- package/dist/client.mjs +5 -5
- package/dist/config.d.mts +5 -3
- package/dist/config.d.ts +5 -3
- package/dist/deployment.cjs +4 -2
- package/dist/deployment.d.mts +15 -1
- package/dist/deployment.d.ts +15 -1
- package/dist/deployment.mjs +3 -1
- package/dist/desktop.d.mts +6 -4
- package/dist/desktop.d.ts +6 -4
- package/dist/{devtools-UFQYT3VA.mjs → devtools-2A2GPC7B.mjs} +6 -6
- package/dist/{devtools-RZVT4JVN.cjs → devtools-R27T3BRY.cjs} +7 -7
- package/dist/docs.cjs +9 -9
- package/dist/docs.d.mts +6 -4
- package/dist/docs.d.ts +6 -4
- package/dist/docs.mjs +8 -8
- package/dist/environment/vite.cjs +5 -5
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +4 -4
- package/dist/{generate-route-types.d-BL2pq6xC.d.ts → generate-route-types.d-B76M5R11.d.ts} +1 -1
- package/dist/{generate-route-types.d-BoVDU8qX.d.mts → generate-route-types.d-CaGMIaNI.d.mts} +1 -1
- package/dist/index.cjs +41 -36
- package/dist/{index.d-Bdm6866n.d.mts → index.d-Bt3kl19W.d.mts} +1 -1
- package/dist/{index.d-Dey5T14f.d.ts → index.d-Cx_-DaKV.d.ts} +1 -1
- package/dist/index.d.mts +25 -22
- package/dist/index.d.ts +25 -22
- package/dist/index.mjs +43 -38
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.d.mts +5 -3
- package/dist/integrations/orm.d.ts +5 -3
- package/dist/integrations.d.mts +5 -3
- package/dist/integrations.d.ts +5 -3
- package/dist/internal/app-markdown-runtime.cjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +12 -5
- package/dist/internal/app-markdown-runtime.d.ts +12 -5
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +33 -30
- package/dist/internal/build-runtime.d.mts +7 -5
- package/dist/internal/build-runtime.d.ts +7 -5
- package/dist/internal/build-runtime.mjs +32 -29
- package/dist/internal/cli-runtime.cjs +10 -10
- package/dist/internal/cli-runtime.mjs +9 -9
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +31 -36
- package/dist/internal/client-runtime.d.mts +8 -6
- package/dist/internal/client-runtime.d.ts +8 -6
- package/dist/internal/client-runtime.mjs +22 -27
- package/dist/internal/compression-runtime.d.mts +5 -3
- package/dist/internal/compression-runtime.d.ts +5 -3
- package/dist/internal/config-runtime.cjs +8 -8
- package/dist/internal/config-runtime.d.mts +9 -7
- package/dist/internal/config-runtime.d.ts +9 -7
- package/dist/internal/config-runtime.mjs +7 -7
- package/dist/internal/form-actions.cjs +7 -2
- package/dist/internal/form-actions.d.mts +10 -3
- package/dist/internal/form-actions.d.ts +10 -3
- package/dist/internal/form-actions.mjs +8 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/islands-boot.cjs +6 -1
- package/dist/internal/islands-boot.mjs +6 -1
- 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-node-env.cjs +4 -2
- package/dist/internal/production-node-env.d.mts +22 -1
- package/dist/internal/production-node-env.d.ts +22 -1
- package/dist/internal/production-node-env.mjs +3 -1
- package/dist/internal/production-runtime.cjs +13 -9
- package/dist/internal/production-runtime.d.mts +21 -16
- package/dist/internal/production-runtime.d.ts +21 -16
- package/dist/internal/production-runtime.mjs +13 -9
- package/dist/internal/server-tree.cjs +2 -2
- package/dist/internal/server-tree.d.mts +0 -5
- package/dist/internal/server-tree.d.ts +0 -5
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +87 -0
- package/dist/internal/vercel-edge-middleware.d.mts +39 -0
- package/dist/internal/vercel-edge-middleware.d.ts +39 -0
- package/dist/internal/vercel-edge-middleware.mjs +87 -0
- package/dist/layers-7P4RLKVX.cjs +20 -0
- package/dist/{layers-T55SA47E.mjs → layers-XQ7VFMWO.mjs} +4 -2
- package/dist/{layers.d-CcS42OGR.d.mts → layers.d-CH0bC4QL.d.mts} +2 -1
- package/dist/{layers.d-CcS42OGR.d.ts → layers.d-CH0bC4QL.d.ts} +2 -1
- package/dist/markdown.d.mts +5 -3
- package/dist/markdown.d.ts +5 -3
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +8 -5
- package/dist/middleware.d.ts +8 -5
- package/dist/middleware.mjs +6 -6
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/{mount.d-BP0nLYQO.d.mts → mount.d-Bki4pOaJ.d.mts} +1 -1
- package/dist/{mount.d-CkiPky_F.d.ts → mount.d-DjR5aerM.d.ts} +1 -1
- package/dist/{navigation-delegate.d-DchcGzAQ.d.ts → navigation-delegate.d-CtghaSP3.d.ts} +1 -1
- package/dist/{navigation-delegate.d-CdBP-hkZ.d.mts → navigation-delegate.d-VDkziXTK.d.mts} +1 -1
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +8 -6
- package/dist/navigation.d.ts +8 -6
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-55YOZWRA.mjs → nitro-NSTXT7LB.mjs} +2 -2
- package/dist/{nitro-EEX2J3KB.cjs → nitro-Y3LGITW3.cjs} +4 -4
- package/dist/node-module-bundle-LIZ2KMVW.cjs +13 -0
- package/dist/node-module-bundle-VR6NV6AI.mjs +13 -0
- package/dist/plugin.cjs +20 -20
- package/dist/plugin.d.mts +7 -5
- package/dist/plugin.d.ts +7 -5
- package/dist/plugin.mjs +19 -19
- package/dist/{production-runtime.d-Dou_Htas.d.ts → production-runtime.d-BMyyLGBB.d.ts} +3 -57
- package/dist/{production-runtime.d-VwsBzIee.d.mts → production-runtime.d-DMZY3OgV.d.mts} +3 -57
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan.d-LKymStDJ.d.mts → render-plan.d-BSwV8PE4.d.mts} +1 -1
- package/dist/{render-plan.d-D8UakAIk.d.ts → render-plan.d-i9sI4tc9.d.ts} +1 -1
- package/dist/renderer/react/server.cjs +2 -2
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +8 -6
- package/dist/renderer-client.d.ts +8 -6
- package/dist/renderer-client.mjs +2 -2
- package/dist/renderer.d.mts +5 -0
- package/dist/renderer.d.ts +5 -0
- package/dist/{request.d-KG-4d2eG.d.mts → request.d-C24FNQ_7.d.mts} +1 -1
- package/dist/{request.d-B928QjWy.d.ts → request.d-Dgln8tuI.d.ts} +1 -1
- package/dist/request.d.mts +6 -4
- package/dist/request.d.ts +6 -4
- package/dist/{route-rendering.d-DoEe_w9t.d.ts → route-rendering.d-CUylZKJA.d.ts} +1 -1
- package/dist/{route-rendering.d-NIHQeb4m.d.mts → route-rendering.d-Ds0BfwQi.d.mts} +1 -1
- package/dist/{router.d-DYnRHQwz.d.ts → router.d-B56rMOFm.d.ts} +1 -1
- package/dist/{router.d-B8PkJSGp.d.mts → router.d-CFPcbqzc.d.mts} +1 -1
- package/dist/{routes.d-uUBZyWoK.d.ts → routes.d-9GFFNioh.d.ts} +1 -1
- package/dist/{routes.d-DgZ_jgGG.d.mts → routes.d-CrEy0lJS.d.mts} +1 -1
- package/dist/routes.d.mts +5 -3
- package/dist/routes.d.ts +5 -3
- package/dist/{rsc-pipeline-7K5H2RPH.cjs → rsc-pipeline-3T7V6OUT.cjs} +10 -9
- package/dist/{rsc-pipeline-4OJ5ZQNZ.mjs → rsc-pipeline-GA4AQWZI.mjs} +9 -8
- package/dist/{runtime-X52Q7JFR.cjs → runtime-REUTNTI5.cjs} +20 -20
- package/dist/{runtime-U7O3HZOZ.mjs → runtime-ZYCKKY7L.mjs} +12 -12
- package/dist/{runtime.d-BxQIzwfy.d.mts → runtime.d-DLRO-ExG.d.mts} +1 -1
- package/dist/{runtime.d-DP7mEkEF.d.ts → runtime.d-H7k9hOQE.d.ts} +1 -1
- package/dist/server-http.d-rAe7lAQc.d.mts +70 -0
- package/dist/server-http.d-rAe7lAQc.d.ts +70 -0
- package/dist/server-plugins.d.mts +6 -4
- package/dist/server-plugins.d.ts +6 -4
- package/dist/server.cjs +46 -44
- package/dist/server.d-C5FFrZAo.d.ts +57 -0
- package/dist/server.d-DgC8xew5.d.mts +57 -0
- package/dist/server.d.mts +13 -11
- package/dist/server.d.ts +13 -11
- package/dist/server.mjs +28 -26
- package/dist/{spa-router.d-DsFDHTsv.d.ts → spa-router.d-Dr7oanhl.d.ts} +2 -2
- package/dist/{spa-router.d-BgHPVMhz.d.mts → spa-router.d-g4CzhEH1.d.mts} +2 -2
- package/dist/testing.d.mts +5 -3
- package/dist/testing.d.ts +5 -3
- package/dist/types.d-xCIhyjOq.d.mts +233 -0
- package/dist/types.d-xCIhyjOq.d.ts +233 -0
- package/dist/{utils.d-zxAVcf_V.d.ts → utils.d-BxxyDEb8.d.ts} +1 -1
- package/dist/{utils.d-BKyKDBR1.d.mts → utils.d-HIla3pD_.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +20 -20
- package/dist/vite.d.mts +10 -8
- package/dist/vite.d.ts +10 -8
- package/dist/vite.mjs +19 -19
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.d.mts +121 -1
- package/dist/workflows.d.ts +121 -1
- package/dist/workflows.mjs +1 -1
- package/package.json +7 -2
- package/dist/analyzer-KVZGVY5Q.cjs +0 -16
- package/dist/chunk-CLFEQGET.cjs +0 -60
- package/dist/chunk-MK5E44WP.mjs +0 -60
- package/dist/layers-DMRXRL7F.cjs +0 -18
- package/dist/node-module-bundle-7JHPPF6B.mjs +0 -11
- package/dist/node-module-bundle-YJGYBOGK.cjs +0 -11
- package/dist/workflows.d-CRMzQZ3k.d.mts +0 -188
- package/dist/workflows.d-CRMzQZ3k.d.ts +0 -188
|
@@ -27,7 +27,10 @@ var _chunk5IQ2ERQAcjs = require('./chunk-5IQ2ERQA.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var _chunkF36LS2C7cjs = require('./chunk-F36LS2C7.cjs');
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
|
|
@@ -37,11 +40,11 @@ var _chunkJSOCDYERcjs = require('./chunk-JSOCDYER.cjs');
|
|
|
37
40
|
var _chunkWUTFJOV7cjs = require('./chunk-WUTFJOV7.cjs');
|
|
38
41
|
|
|
39
42
|
|
|
43
|
+
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
40
44
|
|
|
41
|
-
var _chunkYVTS3S3Fcjs = require('./chunk-YVTS3S3F.cjs');
|
|
42
45
|
|
|
43
46
|
|
|
44
|
-
var
|
|
47
|
+
var _chunkQOGIZKSOcjs = require('./chunk-QOGIZKSO.cjs');
|
|
45
48
|
|
|
46
49
|
|
|
47
50
|
|
|
@@ -75,13 +78,13 @@ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
|
75
78
|
|
|
76
79
|
|
|
77
80
|
|
|
78
|
-
var
|
|
81
|
+
var _chunkYTNBCXCWcjs = require('./chunk-YTNBCXCW.cjs');
|
|
79
82
|
|
|
80
83
|
|
|
81
84
|
var _chunkX3MHKLCOcjs = require('./chunk-X3MHKLCO.cjs');
|
|
82
85
|
|
|
83
86
|
|
|
84
|
-
var
|
|
87
|
+
var _chunkIGDYL2IAcjs = require('./chunk-IGDYL2IA.cjs');
|
|
85
88
|
|
|
86
89
|
|
|
87
90
|
var _chunk7EPYN7GWcjs = require('./chunk-7EPYN7GW.cjs');
|
|
@@ -113,7 +116,10 @@ var _chunk7EPYN7GWcjs = require('./chunk-7EPYN7GW.cjs');
|
|
|
113
116
|
|
|
114
117
|
|
|
115
118
|
|
|
116
|
-
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
var _chunkMZ4CRSY7cjs = require('./chunk-MZ4CRSY7.cjs');
|
|
117
123
|
|
|
118
124
|
|
|
119
125
|
|
|
@@ -127,7 +133,7 @@ var _chunkERMUL73Lcjs = require('./chunk-ERMUL73L.cjs');
|
|
|
127
133
|
var _chunkUVV3I5QAcjs = require('./chunk-UVV3I5QA.cjs');
|
|
128
134
|
|
|
129
135
|
|
|
130
|
-
var
|
|
136
|
+
var _chunkOCNV4CI2cjs = require('./chunk-OCNV4CI2.cjs');
|
|
131
137
|
|
|
132
138
|
|
|
133
139
|
|
|
@@ -148,7 +154,7 @@ var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
|
|
|
148
154
|
|
|
149
155
|
|
|
150
156
|
|
|
151
|
-
var
|
|
157
|
+
var _chunkMTBDJ326cjs = require('./chunk-MTBDJ326.cjs');
|
|
152
158
|
|
|
153
159
|
|
|
154
160
|
|
|
@@ -170,7 +176,7 @@ var _chunk3EIPOTZVcjs = require('./chunk-3EIPOTZV.cjs');
|
|
|
170
176
|
|
|
171
177
|
|
|
172
178
|
|
|
173
|
-
var
|
|
179
|
+
var _chunk3EEINK7Gcjs = require('./chunk-3EEINK7G.cjs');
|
|
174
180
|
|
|
175
181
|
|
|
176
182
|
|
|
@@ -271,7 +277,7 @@ var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
|
|
|
271
277
|
var _chunkEVIWKPJVcjs = require('./chunk-EVIWKPJV.cjs');
|
|
272
278
|
|
|
273
279
|
|
|
274
|
-
var
|
|
280
|
+
var _chunkSQ6IWJ3Hcjs = require('./chunk-SQ6IWJ3H.cjs');
|
|
275
281
|
|
|
276
282
|
|
|
277
283
|
var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
|
|
@@ -289,7 +295,7 @@ var _chunk6IOZPJ3Icjs = require('./chunk-6IOZPJ3I.cjs');
|
|
|
289
295
|
|
|
290
296
|
|
|
291
297
|
|
|
292
|
-
var
|
|
298
|
+
var _chunkI7J5RLGOcjs = require('./chunk-I7J5RLGO.cjs');
|
|
293
299
|
|
|
294
300
|
|
|
295
301
|
var _chunkDBYNZIIQcjs = require('./chunk-DBYNZIIQ.cjs');
|
|
@@ -335,6 +341,7 @@ function transformFarmFormActionModule(options) {
|
|
|
335
341
|
|
|
336
342
|
// src/vite.ts
|
|
337
343
|
var _vite = require('vite');
|
|
344
|
+
var _esmodulelexer = require('es-module-lexer');
|
|
338
345
|
var _async_hooks = require('async_hooks');
|
|
339
346
|
var _module = require('module');
|
|
340
347
|
|
|
@@ -453,8 +460,8 @@ async function realpathOr(directory) {
|
|
|
453
460
|
}
|
|
454
461
|
}
|
|
455
462
|
function isInside(directory, file) {
|
|
456
|
-
const
|
|
457
|
-
return
|
|
463
|
+
const relative4 = path2.relative(directory, file);
|
|
464
|
+
return relative4 !== "" && relative4 !== ".." && !relative4.startsWith(`..${path2.sep}`) && !path2.isAbsolute(relative4);
|
|
458
465
|
}
|
|
459
466
|
|
|
460
467
|
// src/server/dev-cors.ts
|
|
@@ -1060,7 +1067,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1060
1067
|
return import("./workflows.cjs");
|
|
1061
1068
|
}
|
|
1062
1069
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1063
|
-
return import("./devtools-
|
|
1070
|
+
return import("./devtools-R27T3BRY.cjs");
|
|
1064
1071
|
}
|
|
1065
1072
|
function loadFarmDevtoolsUIRuntime() {
|
|
1066
1073
|
return import("./devtools-ui-SYRUXUA7.cjs");
|
|
@@ -1090,6 +1097,18 @@ var farmReactServerFiles = /* @__PURE__ */ new Set();
|
|
|
1090
1097
|
var FARM_SERVER_ONLY_PACKAGE_ID = "\0farm:server-only";
|
|
1091
1098
|
var FARM_PLATFORM_ENTRY = "@farm.js/core/platform";
|
|
1092
1099
|
var FARM_PLATFORM_CLIENT_ID = "\0farm:platform-client";
|
|
1100
|
+
var FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER = [
|
|
1101
|
+
_chunkF36LS2C7cjs.exactIdPattern.call(void 0, [FARM_PLATFORM_ENTRY, SERVER_ONLY_PACKAGE, ...FARM_SERVER_ONLY_ENTRIES]),
|
|
1102
|
+
new RegExp(`^${_chunkMZ4CRSY7cjs.FARM_RESOLVE_FROM_PREFIX}`),
|
|
1103
|
+
// What isBuiltin() accepts: `node:` ids and the builtin names, subpaths such as fs/promises
|
|
1104
|
+
// included.
|
|
1105
|
+
/^node:/,
|
|
1106
|
+
_chunkF36LS2C7cjs.exactIdPattern.call(void 0, _module.builtinModules)
|
|
1107
|
+
];
|
|
1108
|
+
var FARM_SERVER_ONLY_ENTRIES_LOAD_FILTER = [
|
|
1109
|
+
_chunkF36LS2C7cjs.exactIdPattern.call(void 0, [FARM_SERVER_ONLY_PACKAGE_ID, FARM_PLATFORM_CLIENT_ID]),
|
|
1110
|
+
new RegExp(`^${_chunkMZ4CRSY7cjs.FARM_BROWSER_BUILTIN_PREFIX}`)
|
|
1111
|
+
];
|
|
1093
1112
|
function createFarmPlatformClientModule(platform) {
|
|
1094
1113
|
return `export function platform() { return ${JSON.stringify(platform)}; }
|
|
1095
1114
|
export function appDataDir() {
|
|
@@ -1116,11 +1135,11 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1116
1135
|
name: "farm:server-only-entries",
|
|
1117
1136
|
enforce: "pre",
|
|
1118
1137
|
config(config) {
|
|
1119
|
-
const bundledPackages =
|
|
1138
|
+
const bundledPackages = _chunkMZ4CRSY7cjs.collectFarmServerBundledPackageInfo.call(void 0,
|
|
1120
1139
|
path6.resolve(_nullishCoalesce(config.root, () => ( process.cwd())))
|
|
1121
1140
|
);
|
|
1122
1141
|
return {
|
|
1123
|
-
optimizeDeps: { rolldownOptions: { plugins: [
|
|
1142
|
+
optimizeDeps: { rolldownOptions: { plugins: [_chunkMZ4CRSY7cjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] } },
|
|
1124
1143
|
ssr: {
|
|
1125
1144
|
noExternal: [
|
|
1126
1145
|
// Resolve `server-only` here rather than in Node, which would load its throwing build.
|
|
@@ -1135,40 +1154,59 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1135
1154
|
configResolved(config) {
|
|
1136
1155
|
root = config.root;
|
|
1137
1156
|
},
|
|
1138
|
-
resolveId
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
if (
|
|
1142
|
-
|
|
1157
|
+
resolveId: {
|
|
1158
|
+
filter: { id: FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER },
|
|
1159
|
+
handler(id, importer, options2) {
|
|
1160
|
+
if (id === FARM_PLATFORM_ENTRY) return _optionalChain([options2, 'optionalAccess', _64 => _64.ssr]) ? null : FARM_PLATFORM_CLIENT_ID;
|
|
1161
|
+
if (id === SERVER_ONLY_PACKAGE) {
|
|
1162
|
+
if (_optionalChain([options2, 'optionalAccess', _65 => _65.ssr]) || _optionalChain([options2, 'optionalAccess', _66 => _66.scan])) {
|
|
1163
|
+
return FARM_SERVER_ONLY_PACKAGE_ID;
|
|
1164
|
+
}
|
|
1165
|
+
this.error(
|
|
1166
|
+
`${_nullishCoalesce(importer, () => ( "A module"))} imports "server-only", so it must not reach the browser, but client code imports it. Move what the client needs out of that module, or call it from a server component, server function or API route.`
|
|
1167
|
+
);
|
|
1143
1168
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
)
|
|
1169
|
+
if (!_optionalChain([options2, 'optionalAccess', _67 => _67.ssr]) && _module.isBuiltin.call(void 0, id)) {
|
|
1170
|
+
return _chunkMZ4CRSY7cjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
|
|
1171
|
+
}
|
|
1172
|
+
const resolveFrom = importer ? _chunkMZ4CRSY7cjs.parseFarmResolveFrom.call(void 0, id, importer.split("?", 1)[0]) : null;
|
|
1173
|
+
if (resolveFrom) {
|
|
1174
|
+
const directory = path6.dirname(resolveFrom.importer);
|
|
1175
|
+
return this.resolve(resolveFrom.specifier, resolveFrom.importer, {
|
|
1176
|
+
...options2,
|
|
1177
|
+
skipSelf: true
|
|
1178
|
+
}).then((resolved) => {
|
|
1179
|
+
if (resolved) return resolved;
|
|
1180
|
+
return this.error(
|
|
1181
|
+
`Could not resolve "${resolveFrom.specifier}" from ${directory}, the package whose server component renders it. Install it in that package, or run your package manager's install again.`
|
|
1182
|
+
);
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
if (!FARM_SERVER_ONLY_ENTRIES.has(id)) return null;
|
|
1186
|
+
const importedBy = importer ? ` (imported by ${importer})` : "";
|
|
1187
|
+
if (!_optionalChain([options2, 'optionalAccess', _68 => _68.ssr])) {
|
|
1188
|
+
this.error(
|
|
1189
|
+
`${id} is server-only and cannot be imported into client code${importedBy}. Use it from an API route or another server module.`
|
|
1190
|
+
);
|
|
1191
|
+
}
|
|
1192
|
+
vercelOgInstalled || (vercelOgInstalled = _chunkKORZ6PREcjs.isOptionalPeerInstalled.call(void 0, root, "@vercel/og"));
|
|
1193
|
+
if (!vercelOgInstalled) {
|
|
1194
|
+
this.error(
|
|
1195
|
+
`${id} needs @vercel/og, which is not installed${importedBy}. ${_chunkKORZ6PREcjs.VERCEL_OG_INSTALL_HINT}`
|
|
1196
|
+
);
|
|
1197
|
+
}
|
|
1198
|
+
return null;
|
|
1163
1199
|
}
|
|
1164
|
-
return null;
|
|
1165
1200
|
},
|
|
1166
|
-
load
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1201
|
+
load: {
|
|
1202
|
+
filter: { id: FARM_SERVER_ONLY_ENTRIES_LOAD_FILTER },
|
|
1203
|
+
handler(id) {
|
|
1204
|
+
if (id === FARM_SERVER_ONLY_PACKAGE_ID) return "export {};";
|
|
1205
|
+
if (id === FARM_PLATFORM_CLIENT_ID) {
|
|
1206
|
+
return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ))));
|
|
1207
|
+
}
|
|
1208
|
+
return _nullishCoalesce(_chunkMZ4CRSY7cjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
|
|
1170
1209
|
}
|
|
1171
|
-
return _nullishCoalesce(_chunk4DRINDGNcjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
|
|
1172
1210
|
}
|
|
1173
1211
|
};
|
|
1174
1212
|
}
|
|
@@ -1681,25 +1719,57 @@ function fileContainsProgrammaticPageRoute(file) {
|
|
|
1681
1719
|
return false;
|
|
1682
1720
|
}
|
|
1683
1721
|
}
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
if (!
|
|
1722
|
+
var moduleLexerReady = false;
|
|
1723
|
+
function lexModuleSpecifiers(code) {
|
|
1724
|
+
if (!moduleLexerReady) {
|
|
1725
|
+
_esmodulelexer.initSync.call(void 0, );
|
|
1726
|
+
moduleLexerReady = true;
|
|
1727
|
+
}
|
|
1728
|
+
let imports;
|
|
1729
|
+
try {
|
|
1730
|
+
[imports] = _esmodulelexer.parse.call(void 0, code);
|
|
1731
|
+
} catch (e16) {
|
|
1687
1732
|
return null;
|
|
1688
1733
|
}
|
|
1689
|
-
const
|
|
1734
|
+
const specifiers = [];
|
|
1735
|
+
for (const entry of imports) {
|
|
1736
|
+
if (entry.n === void 0 || entry.d === -2) continue;
|
|
1737
|
+
const start = entry.d === -1 ? entry.s - 1 : entry.s;
|
|
1738
|
+
const end = entry.d === -1 ? entry.e + 1 : entry.e;
|
|
1739
|
+
const quote = code[start];
|
|
1740
|
+
if (quote !== '"' && quote !== "'" || code[end - 1] !== quote) continue;
|
|
1741
|
+
specifiers.push({ value: entry.n, start, end });
|
|
1742
|
+
}
|
|
1743
|
+
return specifiers;
|
|
1744
|
+
}
|
|
1745
|
+
function parseModuleSpecifiers(options) {
|
|
1690
1746
|
let ast;
|
|
1691
1747
|
try {
|
|
1692
1748
|
ast = options.parse(options.code);
|
|
1693
|
-
} catch (
|
|
1749
|
+
} catch (e17) {
|
|
1694
1750
|
return null;
|
|
1695
1751
|
}
|
|
1752
|
+
const specifiers = [];
|
|
1696
1753
|
walkModuleAst(ast, (node) => {
|
|
1697
1754
|
if (node.type !== "ImportDeclaration" && node.type !== "ExportNamedDeclaration" && node.type !== "ExportAllDeclaration" && node.type !== "ImportExpression") {
|
|
1698
1755
|
return;
|
|
1699
1756
|
}
|
|
1700
1757
|
const source = node.source;
|
|
1701
1758
|
if (!isFarmModuleAstNode(source) || typeof source.value !== "string") return;
|
|
1702
|
-
|
|
1759
|
+
specifiers.push({ value: source.value, start: source.start, end: source.end });
|
|
1760
|
+
});
|
|
1761
|
+
return specifiers;
|
|
1762
|
+
}
|
|
1763
|
+
function rewriteEarlySsrRelativeImports(options) {
|
|
1764
|
+
const cleanId = options.id.split("?", 1)[0];
|
|
1765
|
+
if (!path6.isAbsolute(cleanId) || cleanId.replace(/\\/g, "/").includes("/node_modules/")) {
|
|
1766
|
+
return null;
|
|
1767
|
+
}
|
|
1768
|
+
const sources = _nullishCoalesce(lexModuleSpecifiers(options.code), () => ( parseModuleSpecifiers(options)));
|
|
1769
|
+
if (!sources) return null;
|
|
1770
|
+
const replacements = [];
|
|
1771
|
+
for (const source of sources) {
|
|
1772
|
+
if (!source.value.startsWith(".")) continue;
|
|
1703
1773
|
const suffixIndex = source.value.search(/[?#]/);
|
|
1704
1774
|
const sourcePath = suffixIndex === -1 ? source.value : source.value.slice(0, suffixIndex);
|
|
1705
1775
|
const suffix = suffixIndex === -1 ? "" : source.value.slice(suffixIndex);
|
|
@@ -1711,13 +1781,15 @@ function rewriteEarlySsrRelativeImports(options) {
|
|
|
1711
1781
|
end: source.end,
|
|
1712
1782
|
code: JSON.stringify(`${specifier}${suffix}`)
|
|
1713
1783
|
});
|
|
1714
|
-
}
|
|
1784
|
+
}
|
|
1715
1785
|
if (replacements.length === 0) return null;
|
|
1716
|
-
let output =
|
|
1717
|
-
|
|
1718
|
-
|
|
1786
|
+
let output = "";
|
|
1787
|
+
let copied = 0;
|
|
1788
|
+
for (const replacement of replacements.sort((left, right) => left.start - right.start)) {
|
|
1789
|
+
output += options.code.slice(copied, replacement.start) + replacement.code;
|
|
1790
|
+
copied = replacement.end;
|
|
1719
1791
|
}
|
|
1720
|
-
return output;
|
|
1792
|
+
return output + options.code.slice(copied);
|
|
1721
1793
|
}
|
|
1722
1794
|
function transformIsolatedClientBoundaryModule(options) {
|
|
1723
1795
|
if (options.slots) {
|
|
@@ -1729,18 +1801,18 @@ function transformIsolatedClientBoundaryModule(options) {
|
|
|
1729
1801
|
from: "@farm.js/core/internal/islx-react"
|
|
1730
1802
|
});
|
|
1731
1803
|
if (rewritten) options = { ...options, code: rewritten.code };
|
|
1732
|
-
} catch (
|
|
1804
|
+
} catch (e18) {
|
|
1733
1805
|
return null;
|
|
1734
1806
|
}
|
|
1735
1807
|
}
|
|
1736
1808
|
let ast;
|
|
1737
1809
|
try {
|
|
1738
1810
|
ast = options.parse(options.code);
|
|
1739
|
-
} catch (
|
|
1811
|
+
} catch (e19) {
|
|
1740
1812
|
return null;
|
|
1741
1813
|
}
|
|
1742
1814
|
const body = Array.isArray(ast.body) ? ast.body : [];
|
|
1743
|
-
const everyExportIsComponent = options.code.includes(
|
|
1815
|
+
const everyExportIsComponent = options.code.includes(_chunkMZ4CRSY7cjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunkMZ4CRSY7cjs.FARM_CLIENT_REFERENCE_DIRECTORY);
|
|
1744
1816
|
const replacements = [];
|
|
1745
1817
|
const wrapperStatements = [];
|
|
1746
1818
|
const originalEntries = [];
|
|
@@ -1837,8 +1909,13 @@ function transformIsolatedClientBoundaryModule(options) {
|
|
|
1837
1909
|
for (const replacement of replacements.sort((left, right) => right.start - left.start)) {
|
|
1838
1910
|
output = output.slice(0, replacement.start) + replacement.code + output.slice(replacement.end);
|
|
1839
1911
|
}
|
|
1840
|
-
const
|
|
1841
|
-
import {
|
|
1912
|
+
const isComponent = `(value) => typeof value === "function" || (typeof value === "object" && value !== null && [Symbol.for("react.memo"), Symbol.for("react.forward_ref"), Symbol.for("react.lazy")].includes(value.$$typeof))`;
|
|
1913
|
+
const runtimeImport = options.slots ? options.browser ? "const __farm_islx_island__ = (component) => component;" : `import { createIsland as __farm_islx_create_island__ } from "@farm.js/core/internal/islx-react";
|
|
1914
|
+
const __farm_is_component__ = ${isComponent};
|
|
1915
|
+
const __farm_islx_island__ = (component, ...rest) => __farm_is_component__(component) ? __farm_islx_create_island__(component, ...rest) : component;` : `import * as __farm_isolated_react__ from "react";
|
|
1916
|
+
import { createFarmIsolatedClientBoundary as __farm_create_boundary__ } from "@farm.js/core/internal/isolated-boundary";
|
|
1917
|
+
const __farm_is_component__ = ${isComponent};
|
|
1918
|
+
const __farm_create_isolated_boundary__ = (react, component, ...rest) => __farm_is_component__(component) ? __farm_create_boundary__(react, component, ...rest) : component;`;
|
|
1842
1919
|
return `${runtimeImport}
|
|
1843
1920
|
${output}
|
|
1844
1921
|
${wrapperStatements.join("\n")}
|
|
@@ -1869,8 +1946,8 @@ function isFarmModuleAstNode(value) {
|
|
|
1869
1946
|
function isFarmConfigFile(file, root) {
|
|
1870
1947
|
const normalized = file.replace(/\\/g, "/");
|
|
1871
1948
|
const rootSlug = root.replace(/\\/g, "/").replace(/\/+$/, "");
|
|
1872
|
-
const
|
|
1873
|
-
return FARM_CONFIG_FILENAMES.has(
|
|
1949
|
+
const relative4 = normalized.startsWith(`${rootSlug}/`) ? normalized.slice(rootSlug.length + 1) : normalized;
|
|
1950
|
+
return FARM_CONFIG_FILENAMES.has(relative4);
|
|
1874
1951
|
}
|
|
1875
1952
|
var warnedClientBoundaryIds = /* @__PURE__ */ new Set();
|
|
1876
1953
|
function warnClientBoundaryOnce(context, id, code, config) {
|
|
@@ -1878,7 +1955,7 @@ function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
1878
1955
|
let program;
|
|
1879
1956
|
try {
|
|
1880
1957
|
program = context.parse(code);
|
|
1881
|
-
} catch (
|
|
1958
|
+
} catch (e20) {
|
|
1882
1959
|
return;
|
|
1883
1960
|
}
|
|
1884
1961
|
const publicKeys = new Set(Object.keys(_nullishCoalesce(_optionalChain([config, 'access', _93 => _93.env, 'optionalAccess', _94 => _94.public]), () => ( {}))));
|
|
@@ -1902,7 +1979,7 @@ function hasViteAlias(alias, find) {
|
|
|
1902
1979
|
function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
1903
1980
|
const rendererDisabled = _chunk67MZTLTFcjs.isFarmRendererDisabled.call(void 0, options.renderer);
|
|
1904
1981
|
const imageImports = farmImageImportsPlugin();
|
|
1905
|
-
const fontImports =
|
|
1982
|
+
const fontImports = _chunkF36LS2C7cjs.farmFontImportsPlugin.call(void 0, {
|
|
1906
1983
|
root: options.root,
|
|
1907
1984
|
basePath: options.basePath,
|
|
1908
1985
|
publicDir: options.publicDir
|
|
@@ -1946,8 +2023,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
1946
2023
|
api: { getProgrammaticClientRoutes },
|
|
1947
2024
|
config(userConfig, configEnv) {
|
|
1948
2025
|
isBuild = configEnv.command === "build";
|
|
1949
|
-
const layerAliases =
|
|
1950
|
-
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _105 => _105.resolve, 'optionalAccess', _106 => _106.alias]), "@") ? {} :
|
|
2026
|
+
const layerAliases = _chunkMTBDJ326cjs.getFarmLayerAliases.call(void 0, options.layers);
|
|
2027
|
+
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _105 => _105.resolve, 'optionalAccess', _106 => _106.alias]), "@") ? {} : _chunkF36LS2C7cjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir);
|
|
1951
2028
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
1952
2029
|
farmOwnsDevCors = !isBuild && _optionalChain([userConfig, 'access', _107 => _107.server, 'optionalAccess', _108 => _108.cors]) === void 0;
|
|
1953
2030
|
return {
|
|
@@ -1987,7 +2064,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
1987
2064
|
async configureServer(viteServer) {
|
|
1988
2065
|
viteServer.middlewares.use(
|
|
1989
2066
|
createFarmDevPreviewGuard(viteServer, {
|
|
1990
|
-
getSourceRoots: () =>
|
|
2067
|
+
getSourceRoots: () => _chunkMTBDJ326cjs.getFarmSourceRoots.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _114 => _114.getConfig, 'call', _115 => _115()]), () => ( options)))
|
|
1991
2068
|
})
|
|
1992
2069
|
);
|
|
1993
2070
|
if (typeof fontImports.configureServer === "function") {
|
|
@@ -2008,10 +2085,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2008
2085
|
if (!pm) return;
|
|
2009
2086
|
try {
|
|
2010
2087
|
await pm.runHookParallel("onError", { phase, error, meta });
|
|
2011
|
-
} catch (
|
|
2088
|
+
} catch (e21) {
|
|
2012
2089
|
}
|
|
2013
2090
|
};
|
|
2014
|
-
farmApp = new (0,
|
|
2091
|
+
farmApp = new (0, _chunkF36LS2C7cjs.FarmApp)(
|
|
2015
2092
|
{
|
|
2016
2093
|
...options,
|
|
2017
2094
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -2019,7 +2096,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2019
2096
|
server
|
|
2020
2097
|
);
|
|
2021
2098
|
farmApp.getRouteManager().usePackageClientBoundaryCacheFile(
|
|
2022
|
-
|
|
2099
|
+
_chunkMZ4CRSY7cjs.resolvePackageClientBoundaryCacheFile.call(void 0,
|
|
2023
2100
|
farmApp.getConfig().root,
|
|
2024
2101
|
options.distDir || ".farm"
|
|
2025
2102
|
)
|
|
@@ -2029,7 +2106,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2029
2106
|
let farmAppPackages;
|
|
2030
2107
|
if (_optionalChain([farmConfig, 'access', _128 => _128.agent, 'optionalAccess', _129 => _129.noindexPreviews])) {
|
|
2031
2108
|
farmMiddlewares.use((_req, res, next) => {
|
|
2032
|
-
if (
|
|
2109
|
+
if (_chunkIGDYL2IAcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
2033
2110
|
res.setHeader("X-Robots-Tag", _chunk4E57QHPWcjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
2034
2111
|
}
|
|
2035
2112
|
next();
|
|
@@ -2037,7 +2114,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2037
2114
|
}
|
|
2038
2115
|
const apiServerBasePath = _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
|
|
2039
2116
|
const devBuiltInRoutePaths = new Set(
|
|
2040
|
-
|
|
2117
|
+
_chunkYTNBCXCWcjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
2041
2118
|
agent: {
|
|
2042
2119
|
apiCatalog: true,
|
|
2043
2120
|
mcp: true,
|
|
@@ -2067,7 +2144,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2067
2144
|
}
|
|
2068
2145
|
});
|
|
2069
2146
|
}
|
|
2070
|
-
const sourceRoots =
|
|
2147
|
+
const sourceRoots = _chunkMTBDJ326cjs.getFarmSourceRoots.call(void 0, farmConfig);
|
|
2071
2148
|
server.watcher.add(sourceRoots.map((source) => path6.join(source.root, source.srcDir)));
|
|
2072
2149
|
if (farmConfig.i18n.enabled) {
|
|
2073
2150
|
server.watcher.add(
|
|
@@ -2087,7 +2164,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2087
2164
|
);
|
|
2088
2165
|
const generateTypeArtifacts = async (reason, selection = ALL_TYPE_ARTIFACTS, log = false) => {
|
|
2089
2166
|
try {
|
|
2090
|
-
const result = await
|
|
2167
|
+
const result = await _chunkQOGIZKSOcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
2091
2168
|
root: farmConfig.root,
|
|
2092
2169
|
srcDir: farmConfig.srcDir,
|
|
2093
2170
|
layers: farmConfig.layers,
|
|
@@ -2227,7 +2304,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2227
2304
|
}
|
|
2228
2305
|
});
|
|
2229
2306
|
});
|
|
2230
|
-
const appDirs =
|
|
2307
|
+
const appDirs = _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, farmConfig);
|
|
2231
2308
|
const routeManager = farmApp.getRouteManager();
|
|
2232
2309
|
const discoveredRoutes = [];
|
|
2233
2310
|
for (const [pattern, entry] of routeManager.getRoutes()) {
|
|
@@ -2380,7 +2457,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2380
2457
|
clientEntry: "/@farm/client.js",
|
|
2381
2458
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2382
2459
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2383
|
-
globalStylesheetHref:
|
|
2460
|
+
globalStylesheetHref: _chunkF36LS2C7cjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2384
2461
|
farmConfig.root,
|
|
2385
2462
|
farmConfig.srcDir
|
|
2386
2463
|
),
|
|
@@ -2411,7 +2488,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2411
2488
|
fontAssets: _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2412
2489
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2413
2490
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2414
|
-
globalStylesheetHref:
|
|
2491
|
+
globalStylesheetHref: _chunkF36LS2C7cjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2415
2492
|
farmConfig.root,
|
|
2416
2493
|
farmConfig.srcDir
|
|
2417
2494
|
),
|
|
@@ -2426,7 +2503,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2426
2503
|
const matchedRoute = routeManager.matchRoute(pathname);
|
|
2427
2504
|
const layoutEntries = matchedRoute.layouts.map((layout) => ({
|
|
2428
2505
|
...layout,
|
|
2429
|
-
metadata:
|
|
2506
|
+
metadata: _chunkMZ4CRSY7cjs.getClientModuleMetadata.call(void 0, layout.modulePath, farmConfig.root)
|
|
2430
2507
|
}));
|
|
2431
2508
|
if (!layoutEntries.some((layout) => layout.metadata.shouldHydrate)) {
|
|
2432
2509
|
return response;
|
|
@@ -2605,7 +2682,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2605
2682
|
}
|
|
2606
2683
|
}
|
|
2607
2684
|
if (requestMethod === "OPTIONS" && req.headers.origin && req.headers["access-control-request-method"]) {
|
|
2608
|
-
const preflightHeaders =
|
|
2685
|
+
const preflightHeaders = _chunkOCNV4CI2cjs.resolveRouteRuleCorsPreflightHeaders.call(void 0,
|
|
2609
2686
|
currentConfig.routeRules,
|
|
2610
2687
|
requestPathname
|
|
2611
2688
|
);
|
|
@@ -2650,7 +2727,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2650
2727
|
if (referrerUrl.origin === parsedRequestUrl.origin && !referrerUrl.pathname.startsWith(_chunkSTF6VDYQcjs.FARM_DEVTOOLS_PATH)) {
|
|
2651
2728
|
launchUrl = referrerUrl;
|
|
2652
2729
|
}
|
|
2653
|
-
} catch (
|
|
2730
|
+
} catch (e22) {
|
|
2654
2731
|
}
|
|
2655
2732
|
}
|
|
2656
2733
|
launchUrl.searchParams.set(_chunkSTF6VDYQcjs.FARM_DEVTOOLS_LAUNCH_PARAM, "1");
|
|
@@ -2738,7 +2815,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2738
2815
|
route: { pathname: requestPathname }
|
|
2739
2816
|
}
|
|
2740
2817
|
);
|
|
2741
|
-
} catch (
|
|
2818
|
+
} catch (e23) {
|
|
2742
2819
|
sendFarmDevRuntimeHookError(res, runtimeHookErrorAnswersJSON);
|
|
2743
2820
|
logResponse(requestMethod, requestUrl, 500, 0, "PAGE");
|
|
2744
2821
|
return;
|
|
@@ -2807,7 +2884,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2807
2884
|
let runtimeResponse;
|
|
2808
2885
|
try {
|
|
2809
2886
|
runtimeResponse = await pm.endRuntimeRequest(runtimeSession3, response2);
|
|
2810
|
-
} catch (
|
|
2887
|
+
} catch (e24) {
|
|
2811
2888
|
sendFarmDevRuntimeHookError(res, runtimeHookErrorAnswersJSON);
|
|
2812
2889
|
return;
|
|
2813
2890
|
}
|
|
@@ -2817,15 +2894,15 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2817
2894
|
if (_optionalChain([pm, 'optionalAccess', _199 => _199.hasRuntimeRequestHooks, 'call', _200 => _200()])) {
|
|
2818
2895
|
try {
|
|
2819
2896
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
2820
|
-
const route =
|
|
2897
|
+
const route = _chunkYTNBCXCWcjs.setFarmRouteLabel.call(void 0,
|
|
2821
2898
|
{ pathname: requestPathname },
|
|
2822
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
2899
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunkYTNBCXCWcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
2823
2900
|
);
|
|
2824
2901
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
2825
2902
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
2826
2903
|
{ kind, route }
|
|
2827
2904
|
);
|
|
2828
|
-
} catch (
|
|
2905
|
+
} catch (e25) {
|
|
2829
2906
|
await discard();
|
|
2830
2907
|
sendFarmDevRuntimeHookError(res, runtimeHookErrorAnswersJSON);
|
|
2831
2908
|
return;
|
|
@@ -2892,20 +2969,20 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2892
2969
|
);
|
|
2893
2970
|
return;
|
|
2894
2971
|
}
|
|
2895
|
-
if (_optionalChain([options, 'access', _206 => _206.agent, 'optionalAccess', _207 => _207.manifest]) !== false &&
|
|
2972
|
+
if (_optionalChain([options, 'access', _206 => _206.agent, 'optionalAccess', _207 => _207.manifest]) !== false && _chunkYTNBCXCWcjs.isFarmAppManifestPath.call(void 0, _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
2896
2973
|
await serveBuiltInRoute(async () => {
|
|
2897
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
2898
|
-
const manifest = await
|
|
2974
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkF36LS2C7cjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
2975
|
+
const manifest = await _chunkYTNBCXCWcjs.createFarmAppManifestResponse.call(void 0,
|
|
2899
2976
|
new Request(parsedRequestUrl, {
|
|
2900
2977
|
method: requestMethod,
|
|
2901
2978
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
2902
2979
|
}),
|
|
2903
2980
|
{
|
|
2904
|
-
...
|
|
2981
|
+
..._chunkYTNBCXCWcjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
2905
2982
|
build: "development",
|
|
2906
2983
|
packages: farmAppPackages,
|
|
2907
2984
|
// Read again on each request; unchanged files come from a cache.
|
|
2908
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _208 => _208.plugins, 'optionalAccess', _209 => _209.some, 'call', _210 => _210(({ name }) => name === "farm:webmcp")]) ?
|
|
2985
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _208 => _208.plugins, 'optionalAccess', _209 => _209.some, 'call', _210 => _210(({ name }) => name === "farm:webmcp")]) ? _chunkF36LS2C7cjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
2909
2986
|
}),
|
|
2910
2987
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
2911
2988
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -2923,11 +3000,11 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2923
3000
|
});
|
|
2924
3001
|
return;
|
|
2925
3002
|
}
|
|
2926
|
-
if (_optionalChain([options, 'access', _211 => _211.agent, 'optionalAccess', _212 => _212.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
3003
|
+
if (_optionalChain([options, 'access', _211 => _211.agent, 'optionalAccess', _212 => _212.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunkYTNBCXCWcjs.FARM_API_CATALOG_PATH) {
|
|
2927
3004
|
await serveBuiltInRoute(
|
|
2928
|
-
() =>
|
|
3005
|
+
() => _chunkYTNBCXCWcjs.createFarmApiCatalogResponse.call(void 0,
|
|
2929
3006
|
requestMethod,
|
|
2930
|
-
|
|
3007
|
+
_chunkYTNBCXCWcjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
2931
3008
|
new Request(parsedRequestUrl, {
|
|
2932
3009
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
2933
3010
|
})
|
|
@@ -2936,7 +3013,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2936
3013
|
return;
|
|
2937
3014
|
}
|
|
2938
3015
|
if (_optionalChain([options, 'access', _213 => _213.agent, 'optionalAccess', _214 => _214.aiCatalog]) !== false) {
|
|
2939
|
-
const aiCatalog =
|
|
3016
|
+
const aiCatalog = _chunkYTNBCXCWcjs.createFarmAiCatalogResponse.call(void 0,
|
|
2940
3017
|
new Request(parsedRequestUrl, {
|
|
2941
3018
|
method: requestMethod,
|
|
2942
3019
|
headers: {
|
|
@@ -2984,7 +3061,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2984
3061
|
{
|
|
2985
3062
|
kind: "docs",
|
|
2986
3063
|
computed: docsResponse,
|
|
2987
|
-
label:
|
|
3064
|
+
label: _chunkYTNBCXCWcjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
2988
3065
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
2989
3066
|
{
|
|
2990
3067
|
path: _optionalChain([farmConfig, 'access', _215 => _215.docs, 'optionalAccess', _216 => _216.entry]) || "/docs",
|
|
@@ -3020,12 +3097,12 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3020
3097
|
}
|
|
3021
3098
|
const markdownRouteLabel = () => (
|
|
3022
3099
|
// On the route path, as production labels it: /fr/index.md is /index.md.
|
|
3023
|
-
|
|
3100
|
+
_chunkYTNBCXCWcjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
3024
3101
|
toRoutePathname(requestPathname),
|
|
3025
3102
|
(page) => _optionalChain([farmApp, 'access', _231 => _231.getRouteManager, 'call', _232 => _232(), 'access', _233 => _233.matchRoute, 'call', _234 => _234(page), 'access', _235 => _235.route, 'optionalAccess', _236 => _236.pattern])
|
|
3026
3103
|
)
|
|
3027
3104
|
);
|
|
3028
|
-
const markdownSourceResponse = viteModuleRequest ? null : await
|
|
3105
|
+
const markdownSourceResponse = viteModuleRequest ? null : await _chunk3EEINK7Gcjs.createFarmMarkdownSourceResponse.call(void 0, {
|
|
3029
3106
|
request: new Request(fullUrl, {
|
|
3030
3107
|
method: requestMethod,
|
|
3031
3108
|
headers: docsHeaders
|
|
@@ -3034,7 +3111,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3034
3111
|
routePathname: toRoutePathname,
|
|
3035
3112
|
resolveSource: async (pathname2) => {
|
|
3036
3113
|
const match = farmApp.getRouteManager().matchRoute(pathname2);
|
|
3037
|
-
const sourcePath = _optionalChain([match, 'access', _237 => _237.route, 'optionalAccess', _238 => _238.markdownSourcePath]) || (match.route &&
|
|
3114
|
+
const sourcePath = _optionalChain([match, 'access', _237 => _237.route, 'optionalAccess', _238 => _238.markdownSourcePath]) || (match.route && _chunk3EEINK7Gcjs.isFarmMarkdownPageFile.call(void 0, match.route.modulePath) ? match.route.modulePath : null);
|
|
3038
3115
|
if (!sourcePath) {
|
|
3039
3116
|
return null;
|
|
3040
3117
|
}
|
|
@@ -3092,7 +3169,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3092
3169
|
return;
|
|
3093
3170
|
}
|
|
3094
3171
|
if (!viteModuleRequest && _chunkFT6KJHS3cjs.farmRequestWantsMarkdown.call(void 0, requestPathname, req.headers.accept)) {
|
|
3095
|
-
const markdownRoute = farmApp.getRouteManager().matchRoute(
|
|
3172
|
+
const markdownRoute = farmApp.getRouteManager().matchRoute(_chunk3EEINK7Gcjs.normalizeFarmMarkdownRoutePath.call(void 0, requestPathname, toRoutePathname));
|
|
3096
3173
|
if (!markdownRoute.route) {
|
|
3097
3174
|
await serveBuiltInRoute(
|
|
3098
3175
|
() => new Response(
|
|
@@ -3368,9 +3445,9 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3368
3445
|
);
|
|
3369
3446
|
const docsRuntimeOptions = () => ({
|
|
3370
3447
|
kind: "docs",
|
|
3371
|
-
route:
|
|
3448
|
+
route: _chunkYTNBCXCWcjs.setFarmRouteLabel.call(void 0,
|
|
3372
3449
|
{ pathname: pathname2, pattern: urlPath2 },
|
|
3373
|
-
|
|
3450
|
+
_chunkYTNBCXCWcjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
3374
3451
|
path: _optionalChain([farmConfig, 'access', _248 => _248.docs, 'optionalAccess', _249 => _249.entry]) || "/docs",
|
|
3375
3452
|
roots: _optionalChain([farmConfig, 'access', _250 => _250.docs, 'optionalAccess', _251 => _251.roots, 'optionalAccess', _252 => _252.map, 'call', _253 => _253((root) => root.entry)])
|
|
3376
3453
|
})
|
|
@@ -3443,7 +3520,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3443
3520
|
return errorResponse;
|
|
3444
3521
|
}
|
|
3445
3522
|
);
|
|
3446
|
-
} catch (
|
|
3523
|
+
} catch (e26) {
|
|
3447
3524
|
logResponse(method2, urlPath2, 500, Date.now() - startTime2, "API");
|
|
3448
3525
|
sendFarmDevRuntimeHookError(res, runtimeHookErrorAnswersJSON);
|
|
3449
3526
|
return;
|
|
@@ -3656,14 +3733,14 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3656
3733
|
urlObj,
|
|
3657
3734
|
_chunkCFG4QERRcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
|
|
3658
3735
|
);
|
|
3659
|
-
const deploymentMismatch =
|
|
3736
|
+
const deploymentMismatch = _chunkI7J5RLGOcjs.getFarmDeploymentMismatch.call(void 0,
|
|
3660
3737
|
request,
|
|
3661
3738
|
farmConfig.deploymentId
|
|
3662
3739
|
);
|
|
3663
3740
|
if (deploymentMismatch) {
|
|
3664
3741
|
await _chunkYIHRZBD7cjs.sendWebResponse.call(void 0,
|
|
3665
3742
|
res,
|
|
3666
|
-
|
|
3743
|
+
_chunkI7J5RLGOcjs.createFarmDeploymentMismatchResponse.call(void 0, deploymentMismatch)
|
|
3667
3744
|
);
|
|
3668
3745
|
return;
|
|
3669
3746
|
}
|
|
@@ -3736,7 +3813,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3736
3813
|
);
|
|
3737
3814
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
3738
3815
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
3739
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
3816
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkMZ4CRSY7cjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
3740
3817
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
3741
3818
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
3742
3819
|
let mergedMetadata = {};
|
|
@@ -3744,7 +3821,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3744
3821
|
layouts.map((layout) => routeManager3.loadLayoutModule(layout.modulePath))
|
|
3745
3822
|
);
|
|
3746
3823
|
const layoutHydrationMetadata = layouts.map(
|
|
3747
|
-
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => (
|
|
3824
|
+
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => ( _chunkMZ4CRSY7cjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root)))
|
|
3748
3825
|
);
|
|
3749
3826
|
const shouldHydrateLayout = layoutHydrationMetadata.some(
|
|
3750
3827
|
(metadata) => metadata.shouldHydrate
|
|
@@ -3757,7 +3834,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3757
3834
|
];
|
|
3758
3835
|
const hydrationIslandStrategy = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0,
|
|
3759
3836
|
_optionalChain([(_nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _278 => _278.getConfig, 'call', _279 => _279()]), () => ( options))), 'access', _280 => _280.experimental, 'optionalAccess', _281 => _281.serverComponents])
|
|
3760
|
-
) === "islands" ?
|
|
3837
|
+
) === "islands" ? _chunkF36LS2C7cjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
3761
3838
|
route,
|
|
3762
3839
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
3763
3840
|
layouts.map((layout, index) => ({
|
|
@@ -3823,7 +3900,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3823
3900
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
3824
3901
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
3825
3902
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
3826
|
-
), () => (
|
|
3903
|
+
), () => ( _chunkMZ4CRSY7cjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
3827
3904
|
const slotContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
3828
3905
|
request: targetRequest,
|
|
3829
3906
|
params: slot.params,
|
|
@@ -3873,7 +3950,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3873
3950
|
pageShouldHydrate: shouldHydrate,
|
|
3874
3951
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
3875
3952
|
islandStrategy: hydrationIslandStrategy,
|
|
3876
|
-
rendering:
|
|
3953
|
+
rendering: _chunkQOGIZKSOcjs.resolveRouteRenderingConfig.call(void 0, routeModule)
|
|
3877
3954
|
});
|
|
3878
3955
|
const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
|
|
3879
3956
|
const layoutStartIndex = _chunkUPOYKX4Scjs.getSharedLayoutPrefixLength.call(void 0,
|
|
@@ -3961,7 +4038,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3961
4038
|
"Cache-Control": _chunkUPOYKX4Scjs.getFarmFragmentCacheControl.call(void 0, renderPlan),
|
|
3962
4039
|
"X-Farm-Navigation": "html-fragment",
|
|
3963
4040
|
Vary: "X-Farm-Layout-Chain",
|
|
3964
|
-
[
|
|
4041
|
+
[_chunkI7J5RLGOcjs.FARM_DEPLOYMENT_ID_HEADER]: farmConfig.deploymentId
|
|
3965
4042
|
}
|
|
3966
4043
|
},
|
|
3967
4044
|
{
|
|
@@ -4011,7 +4088,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4011
4088
|
const requestedMatch = routeManager2.matchRoute(requestedPathname);
|
|
4012
4089
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
4013
4090
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
4014
|
-
const mcpLabel =
|
|
4091
|
+
const mcpLabel = _chunkYTNBCXCWcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
4015
4092
|
if (mcpLabel) return mcpLabel;
|
|
4016
4093
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
4017
4094
|
return routePathname === _chunkX3MHKLCOcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkX3MHKLCOcjs.FARM_DEFAULT_MCP_PATH : null;
|
|
@@ -4022,7 +4099,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4022
4099
|
try {
|
|
4023
4100
|
const sessionOptions = {
|
|
4024
4101
|
kind: "page",
|
|
4025
|
-
route:
|
|
4102
|
+
route: _chunkYTNBCXCWcjs.setFarmRouteLabel.call(void 0,
|
|
4026
4103
|
{
|
|
4027
4104
|
pathname: requestedPathname,
|
|
4028
4105
|
pattern: _optionalChain([requestedMatch, 'optionalAccess', _307 => _307.route, 'optionalAccess', _308 => _308.pattern]) || null,
|
|
@@ -4184,6 +4261,16 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4184
4261
|
};
|
|
4185
4262
|
},
|
|
4186
4263
|
async resolveId(id, importer, resolveOptions) {
|
|
4264
|
+
if (id.startsWith("@farm.js/core/internal/") && importer) {
|
|
4265
|
+
const root = _optionalChain([farmApp, 'optionalAccess', _331 => _331.getConfig, 'call', _332 => _332(), 'access', _333 => _333.root]) || _optionalChain([server, 'optionalAccess', _334 => _334.config, 'access', _335 => _335.root]) || options.root;
|
|
4266
|
+
const relative4 = root ? path6.relative(root, importer.split("?", 1)[0]) : "";
|
|
4267
|
+
if (root && (relative4.startsWith("..") || path6.isAbsolute(relative4))) {
|
|
4268
|
+
return this.resolve(id, path6.join(root, "package.json"), {
|
|
4269
|
+
...resolveOptions,
|
|
4270
|
+
skipSelf: true
|
|
4271
|
+
});
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4187
4274
|
if (typeof fontImports.resolveId === "function") {
|
|
4188
4275
|
const fontId = await fontImports.resolveId.call(this, id, importer, resolveOptions);
|
|
4189
4276
|
if (fontId) return fontId;
|
|
@@ -4206,7 +4293,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4206
4293
|
}
|
|
4207
4294
|
},
|
|
4208
4295
|
async load(id, loadOptions) {
|
|
4209
|
-
if (pendingClientSetup && !_optionalChain([loadOptions, 'optionalAccess',
|
|
4296
|
+
if (pendingClientSetup && !_optionalChain([loadOptions, 'optionalAccess', _336 => _336.ssr]) && !farmSetupContext.getStore()) {
|
|
4210
4297
|
await pendingClientSetup;
|
|
4211
4298
|
}
|
|
4212
4299
|
if (_chunkPIUTGRDIcjs.isFarmServerFnBoundaryId.call(void 0, id) && islandsServerFns()) {
|
|
@@ -4224,8 +4311,8 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4224
4311
|
if (imageModule) return imageModule;
|
|
4225
4312
|
}
|
|
4226
4313
|
if (_chunkE7QOEV5Zcjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
|
|
4227
|
-
const renderer = _optionalChain([farmApp, 'optionalAccess',
|
|
4228
|
-
const root = _optionalChain([server, 'optionalAccess',
|
|
4314
|
+
const renderer = _optionalChain([farmApp, 'optionalAccess', _337 => _337.getConfig, 'call', _338 => _338(), 'access', _339 => _339.renderer]) || _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, options.renderer);
|
|
4315
|
+
const root = _optionalChain([server, 'optionalAccess', _340 => _340.config, 'access', _341 => _341.root]) || options.root;
|
|
4229
4316
|
if (isClientEnvironment(this, loadOptions)) {
|
|
4230
4317
|
return generateProgrammaticClientRouteModuleForId(
|
|
4231
4318
|
id,
|
|
@@ -4241,21 +4328,21 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4241
4328
|
return FARM_DEV_CLIENT_BOOT_MODULE;
|
|
4242
4329
|
}
|
|
4243
4330
|
if (isFarmClientVirtualId(id)) {
|
|
4244
|
-
const resolvedConfig = _optionalChain([farmApp, 'optionalAccess',
|
|
4245
|
-
const renderer = _optionalChain([resolvedConfig, 'optionalAccess',
|
|
4246
|
-
const integrations = _optionalChain([resolvedConfig, 'optionalAccess',
|
|
4247
|
-
const root = _optionalChain([resolvedConfig, 'optionalAccess',
|
|
4248
|
-
const docs = _optionalChain([resolvedConfig, 'optionalAccess',
|
|
4331
|
+
const resolvedConfig = _optionalChain([farmApp, 'optionalAccess', _342 => _342.getConfig, 'call', _343 => _343()]);
|
|
4332
|
+
const renderer = _optionalChain([resolvedConfig, 'optionalAccess', _344 => _344.renderer]) || _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, options.renderer);
|
|
4333
|
+
const integrations = _optionalChain([resolvedConfig, 'optionalAccess', _345 => _345.integrations]) || options.integrations;
|
|
4334
|
+
const root = _optionalChain([resolvedConfig, 'optionalAccess', _346 => _346.root]) || _optionalChain([server, 'optionalAccess', _347 => _347.config, 'access', _348 => _348.root]) || process.cwd();
|
|
4335
|
+
const docs = _optionalChain([resolvedConfig, 'optionalAccess', _349 => _349.docs]);
|
|
4249
4336
|
const adapterOwnsDocsRuntime = Boolean(
|
|
4250
|
-
_chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([docs, 'optionalAccess',
|
|
4337
|
+
_chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([docs, 'optionalAccess', _350 => _350.adapter, 'optionalAccess', _351 => _351.server]) && docs.adapter.react
|
|
4251
4338
|
);
|
|
4252
|
-
const devtools = _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess',
|
|
4339
|
+
const devtools = _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _352 => _352.devtools]), () => ( _chunkSTF6VDYQcjs.resolveFarmDevtoolsConfig.call(void 0, false, "production")));
|
|
4253
4340
|
const [docsRuntime, docsSearchRuntime, devtoolsClientRuntime] = await Promise.all([
|
|
4254
|
-
_optionalChain([docs, 'optionalAccess',
|
|
4255
|
-
_optionalChain([docs, 'optionalAccess',
|
|
4341
|
+
_optionalChain([docs, 'optionalAccess', _353 => _353.enabled]) ? loadFarmDocsDevRuntime() : null,
|
|
4342
|
+
_optionalChain([docs, 'optionalAccess', _354 => _354.enabled]) && !adapterOwnsDocsRuntime ? loadFarmDocsSearchDevRuntime() : null,
|
|
4256
4343
|
devtools.enabled ? loadFarmDevtoolsClientRuntime() : null
|
|
4257
4344
|
]);
|
|
4258
|
-
const docsSearchEnabled = _nullishCoalesce(_optionalChain([docsSearchRuntime, 'optionalAccess',
|
|
4345
|
+
const docsSearchEnabled = _nullishCoalesce(_optionalChain([docsSearchRuntime, 'optionalAccess', _355 => _355.isFarmDocsSearchEnabled, 'call', _356 => _356(docs)]), () => ( false));
|
|
4259
4346
|
const generatedDocsSearchRuntime = docsSearchRuntime ? docsSearchRuntime.generateFarmDocsSearchClientRuntime(
|
|
4260
4347
|
docsSearchEnabled,
|
|
4261
4348
|
docsSearchEnabled ? docsSearchRuntime.resolveFarmDocsSearchClientModule(root) : void 0
|
|
@@ -4263,10 +4350,10 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4263
4350
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4264
4351
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkUVV3I5QAcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
4265
4352
|
const integrationProviders = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? _chunkBDYM2TN3cjs.getIntegrationProviders.call(void 0, integrations) : [];
|
|
4266
|
-
const isolatedHydrationMode =
|
|
4267
|
-
_optionalChain([resolvedConfig, 'optionalAccess',
|
|
4353
|
+
const isolatedHydrationMode = _chunkMZ4CRSY7cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
4354
|
+
_optionalChain([resolvedConfig, 'optionalAccess', _357 => _357.experimental, 'optionalAccess', _358 => _358.isolatedClientHydration]),
|
|
4268
4355
|
{
|
|
4269
|
-
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess',
|
|
4356
|
+
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _359 => _359.experimental, 'optionalAccess', _360 => _360.serverComponents])) === "rsc",
|
|
4270
4357
|
hasUnsupportedIntegrationProvider: integrationProviders.filter((provider) => provider.component || provider.type === "clerk").some((provider) => provider.supportsIsolatedHydration !== true)
|
|
4271
4358
|
}
|
|
4272
4359
|
);
|
|
@@ -4274,32 +4361,32 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
4274
4361
|
integrationProviders,
|
|
4275
4362
|
[
|
|
4276
4363
|
..._chunkBDYM2TN3cjs.getIntegrationDocumentNavigationMatchers.call(void 0, integrations),
|
|
4277
|
-
..._nullishCoalesce(_optionalChain([docsRuntime, 'optionalAccess',
|
|
4364
|
+
..._nullishCoalesce(_optionalChain([docsRuntime, 'optionalAccess', _361 => _361.getFarmDocsDocumentNavigationMatchers, 'call', _362 => _362(docs)]), () => ( []))
|
|
4278
4365
|
],
|
|
4279
4366
|
generatedDocsSearchRuntime,
|
|
4280
4367
|
`${generatedDevtoolsClientRuntime}
|
|
4281
4368
|
${generatedDevIndicatorsClientRuntime}`,
|
|
4282
|
-
_optionalChain([resolvedConfig, 'optionalAccess',
|
|
4369
|
+
_optionalChain([resolvedConfig, 'optionalAccess', _363 => _363.plugins]) || [],
|
|
4283
4370
|
root,
|
|
4284
|
-
_optionalChain([resolvedConfig, 'optionalAccess',
|
|
4285
|
-
_optionalChain([resolvedConfig, 'optionalAccess',
|
|
4286
|
-
_chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? _optionalChain([docs, 'optionalAccess',
|
|
4371
|
+
_optionalChain([resolvedConfig, 'optionalAccess', _364 => _364.srcDir]) || options.srcDir || "src",
|
|
4372
|
+
_optionalChain([resolvedConfig, 'optionalAccess', _365 => _365.publicRuntimeConfig]) || options.publicRuntimeConfig,
|
|
4373
|
+
_chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? _optionalChain([docs, 'optionalAccess', _366 => _366.adapter, 'optionalAccess', _367 => _367.react]) : void 0,
|
|
4287
4374
|
renderer,
|
|
4288
|
-
isolatedHydrationMode === "enabled" || _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess',
|
|
4289
|
-
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess',
|
|
4290
|
-
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess',
|
|
4291
|
-
|
|
4292
|
-
|
|
4375
|
+
isolatedHydrationMode === "enabled" || _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _368 => _368.getRouteManager, 'call', _369 => _369(), 'access', _370 => _370.getIsolatedClientBoundaryModules, 'call', _371 => _371(root)])))), 'optionalAccess', _372 => _372.size]) > 0,
|
|
4376
|
+
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _373 => _373.trailingSlash]), () => ( false)),
|
|
4377
|
+
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _374 => _374.basePath]), () => ( "/")),
|
|
4378
|
+
_chunkF36LS2C7cjs.generateClientCachePersistenceCode.call(void 0,
|
|
4379
|
+
_chunkF36LS2C7cjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _375 => _375.cache]))
|
|
4293
4380
|
),
|
|
4294
4381
|
_chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
4295
|
-
_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess',
|
|
4382
|
+
_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _376 => _376.experimental, 'optionalAccess', _377 => _377.serverComponents])) === "islands"
|
|
4296
4383
|
);
|
|
4297
4384
|
}
|
|
4298
4385
|
if (id === "/@farm/server") {
|
|
4299
4386
|
return generateServerCode();
|
|
4300
4387
|
}
|
|
4301
4388
|
if (id === "/@farm/manifest") {
|
|
4302
|
-
const routeManager = _optionalChain([farmApp, 'optionalAccess',
|
|
4389
|
+
const routeManager = _optionalChain([farmApp, 'optionalAccess', _378 => _378.getRouteManager, 'call', _379 => _379()]);
|
|
4303
4390
|
if (!routeManager) {
|
|
4304
4391
|
return `
|
|
4305
4392
|
export const getManifest = () => ({
|
|
@@ -4312,9 +4399,9 @@ export const getManifest = () => ({
|
|
|
4312
4399
|
`;
|
|
4313
4400
|
}
|
|
4314
4401
|
const manifest = routeManager.generateClientManifest(server.config.root);
|
|
4315
|
-
const globalStylesheetHref =
|
|
4402
|
+
const globalStylesheetHref = _chunkF36LS2C7cjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
4316
4403
|
server.config.root,
|
|
4317
|
-
_optionalChain([farmApp, 'optionalAccess',
|
|
4404
|
+
_optionalChain([farmApp, 'optionalAccess', _380 => _380.getConfig, 'call', _381 => _381(), 'access', _382 => _382.srcDir])
|
|
4318
4405
|
);
|
|
4319
4406
|
const fullManifest = {
|
|
4320
4407
|
clientEntry: "/@farm/client.js",
|
|
@@ -4370,54 +4457,54 @@ export const manifest = getManifest();
|
|
|
4370
4457
|
}
|
|
4371
4458
|
},
|
|
4372
4459
|
async transform(code, id, transformOptions) {
|
|
4373
|
-
if (pendingClientSetup && !_optionalChain([transformOptions, 'optionalAccess',
|
|
4460
|
+
if (pendingClientSetup && !_optionalChain([transformOptions, 'optionalAccess', _383 => _383.ssr]) && !farmSetupContext.getStore()) {
|
|
4374
4461
|
await pendingClientSetup;
|
|
4375
4462
|
}
|
|
4376
|
-
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess',
|
|
4463
|
+
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _384 => _384.getConfig, 'call', _385 => _385()]), () => ( options));
|
|
4377
4464
|
let rewrotePackageImports = false;
|
|
4378
|
-
if (_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access',
|
|
4465
|
+
if (_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _386 => _386.experimental, 'optionalAccess', _387 => _387.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _388 => _388.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunkMZ4CRSY7cjs.hasUseClientDirective.call(void 0, code)) {
|
|
4379
4466
|
const file = id.split("?", 1)[0];
|
|
4380
|
-
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess',
|
|
4381
|
-
if (_optionalChain([transformOptions, 'optionalAccess',
|
|
4467
|
+
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _389 => _389.config, 'access', _390 => _390.root]) || process.cwd();
|
|
4468
|
+
if (_optionalChain([transformOptions, 'optionalAccess', _391 => _391.ssr]) === true) {
|
|
4382
4469
|
if (farmReactServerFiles.has(file)) {
|
|
4383
|
-
for (const child of
|
|
4470
|
+
for (const child of _chunkMZ4CRSY7cjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
4384
4471
|
farmReactServerFiles.add(child);
|
|
4385
4472
|
}
|
|
4386
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
4473
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunkMZ4CRSY7cjs.getFarmClientReachableModules.call(void 0,
|
|
4387
4474
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
4388
4475
|
projectRoot
|
|
4389
4476
|
).has(path6.resolve(file));
|
|
4390
|
-
const reactServer = !serverModule ? null :
|
|
4477
|
+
const reactServer = !serverModule ? null : _chunkMZ4CRSY7cjs.rewriteFarmReactServerImports.call(void 0, {
|
|
4391
4478
|
code,
|
|
4392
4479
|
file,
|
|
4393
|
-
reference: (specifier, exportName) =>
|
|
4480
|
+
reference: (specifier, exportName) => _chunkMZ4CRSY7cjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
|
|
4394
4481
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
4395
4482
|
});
|
|
4396
4483
|
if (reactServer !== null) {
|
|
4397
4484
|
code = reactServer;
|
|
4398
4485
|
rewrotePackageImports = true;
|
|
4399
4486
|
}
|
|
4400
|
-
const internal = farmReactServerFiles.has(file) ?
|
|
4487
|
+
const internal = farmReactServerFiles.has(file) ? _chunkMZ4CRSY7cjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
|
|
4401
4488
|
code,
|
|
4402
4489
|
file,
|
|
4403
|
-
reference: (clientFile) =>
|
|
4490
|
+
reference: (clientFile) => _chunkMZ4CRSY7cjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
|
|
4404
4491
|
}) : null;
|
|
4405
4492
|
if (internal !== null) {
|
|
4406
4493
|
code = internal;
|
|
4407
4494
|
rewrotePackageImports = true;
|
|
4408
4495
|
}
|
|
4409
4496
|
}
|
|
4410
|
-
const referenced =
|
|
4497
|
+
const referenced = _chunkMZ4CRSY7cjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
4411
4498
|
code,
|
|
4412
4499
|
file,
|
|
4413
4500
|
root: projectRoot,
|
|
4414
|
-
isClientPackage: (specifier) =>
|
|
4501
|
+
isClientPackage: (specifier) => _chunkMZ4CRSY7cjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
4415
4502
|
});
|
|
4416
4503
|
if (referenced !== null) {
|
|
4417
4504
|
code = referenced;
|
|
4418
4505
|
rewrotePackageImports = true;
|
|
4419
4506
|
}
|
|
4420
|
-
if (_optionalChain([transformOptions, 'optionalAccess',
|
|
4507
|
+
if (_optionalChain([transformOptions, 'optionalAccess', _392 => _392.ssr]) === true) {
|
|
4421
4508
|
const cached = rewriteFarmReactCacheImport(code, file);
|
|
4422
4509
|
if (cached !== null) {
|
|
4423
4510
|
code = cached;
|
|
@@ -4427,43 +4514,43 @@ export const manifest = getManifest();
|
|
|
4427
4514
|
}
|
|
4428
4515
|
if (islandsServerFns() && !_chunkPIUTGRDIcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
4429
4516
|
const serverFns = _chunkPIUTGRDIcjs.transformFarmServerFns.call(void 0, code, id, {
|
|
4430
|
-
environment: _optionalChain([transformOptions, 'optionalAccess',
|
|
4517
|
+
environment: _optionalChain([transformOptions, 'optionalAccess', _393 => _393.ssr]) === true ? "rsc" : "client"
|
|
4431
4518
|
});
|
|
4432
4519
|
if (serverFns) {
|
|
4433
4520
|
if (!serverFns.code.includes("use server")) return { code: serverFns.code, map: null };
|
|
4434
4521
|
code = serverFns.code;
|
|
4435
4522
|
}
|
|
4436
4523
|
}
|
|
4437
|
-
if (_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access',
|
|
4524
|
+
if (_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _394 => _394.experimental, 'optionalAccess', _395 => _395.serverComponents])) === "islands" && code.includes("use server") && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
4438
4525
|
const file = id.split("?", 1)[0];
|
|
4439
4526
|
const actionModule = transformFarmFormActionModule({
|
|
4440
4527
|
code,
|
|
4441
4528
|
id,
|
|
4442
|
-
root: actionConfig.root || _optionalChain([server, 'optionalAccess',
|
|
4443
|
-
ssr: _optionalChain([transformOptions, 'optionalAccess',
|
|
4529
|
+
root: actionConfig.root || _optionalChain([server, 'optionalAccess', _396 => _396.config, 'access', _397 => _397.root]) || process.cwd(),
|
|
4530
|
+
ssr: _optionalChain([transformOptions, 'optionalAccess', _398 => _398.ssr]) === true,
|
|
4444
4531
|
// Parsed by file type: page components are TSX.
|
|
4445
4532
|
parse: (source) => _vite.parseSync.call(void 0, file, source).program
|
|
4446
4533
|
});
|
|
4447
4534
|
if (actionModule) return { code: actionModule, map: null };
|
|
4448
4535
|
}
|
|
4449
|
-
if (!_optionalChain([transformOptions, 'optionalAccess',
|
|
4450
|
-
const docsConfigModule = _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess',
|
|
4451
|
-
if (
|
|
4452
|
-
const redacted =
|
|
4536
|
+
if (!_optionalChain([transformOptions, 'optionalAccess', _399 => _399.ssr])) {
|
|
4537
|
+
const docsConfigModule = _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _400 => _400.getConfig, 'call', _401 => _401(), 'optionalAccess', _402 => _402.docs]));
|
|
4538
|
+
if (_chunkF36LS2C7cjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
4539
|
+
const redacted = _chunkF36LS2C7cjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
4453
4540
|
if (redacted !== null) return { code: redacted, map: null };
|
|
4454
4541
|
}
|
|
4455
4542
|
}
|
|
4456
|
-
if (!_optionalChain([transformOptions, 'optionalAccess',
|
|
4457
|
-
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess',
|
|
4458
|
-
if ((_optionalChain([currentConfig, 'access',
|
|
4543
|
+
if (!_optionalChain([transformOptions, 'optionalAccess', _403 => _403.ssr])) {
|
|
4544
|
+
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _404 => _404.getConfig, 'call', _405 => _405()]), () => ( options));
|
|
4545
|
+
if ((_optionalChain([currentConfig, 'access', _406 => _406.experimental, 'optionalAccess', _407 => _407.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
|
|
4459
4546
|
const violation = findClientServerFnViolation(code, id);
|
|
4460
4547
|
if (violation) {
|
|
4461
4548
|
this.error(formatServerFnBoundaryError(violation, id));
|
|
4462
4549
|
}
|
|
4463
4550
|
}
|
|
4464
4551
|
}
|
|
4465
|
-
if (!_optionalChain([transformOptions, 'optionalAccess',
|
|
4466
|
-
warnClientBoundaryOnce(this, id, code, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess',
|
|
4552
|
+
if (!_optionalChain([transformOptions, 'optionalAccess', _408 => _408.ssr]) && shouldInspectClientBoundary(id, code)) {
|
|
4553
|
+
warnClientBoundaryOnce(this, id, code, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _409 => _409.getConfig, 'call', _410 => _410()]), () => ( options)));
|
|
4467
4554
|
}
|
|
4468
4555
|
if (typeof imageImports.transform === "function") {
|
|
4469
4556
|
const imageModule = await imageImports.transform.call(this, code, id, transformOptions);
|
|
@@ -4478,13 +4565,13 @@ export const manifest = getManifest();
|
|
|
4478
4565
|
id,
|
|
4479
4566
|
transformOptions
|
|
4480
4567
|
);
|
|
4481
|
-
const fontCode = typeof fontResult === "string" ? fontResult : _optionalChain([fontResult, 'optionalAccess',
|
|
4568
|
+
const fontCode = typeof fontResult === "string" ? fontResult : _optionalChain([fontResult, 'optionalAccess', _411 => _411.code, 'optionalAccess', _412 => _412.toString, 'call', _413 => _413()]);
|
|
4482
4569
|
if (fontCode) {
|
|
4483
4570
|
transformedCode = fontCode;
|
|
4484
4571
|
transformed = true;
|
|
4485
4572
|
}
|
|
4486
4573
|
}
|
|
4487
|
-
if (_optionalChain([transformOptions, 'optionalAccess',
|
|
4574
|
+
if (_optionalChain([transformOptions, 'optionalAccess', _414 => _414.ssr]) && server) {
|
|
4488
4575
|
const rewrittenImports = rewriteEarlySsrRelativeImports({
|
|
4489
4576
|
code: transformedCode,
|
|
4490
4577
|
id,
|
|
@@ -4496,26 +4583,26 @@ export const manifest = getManifest();
|
|
|
4496
4583
|
transformed = true;
|
|
4497
4584
|
}
|
|
4498
4585
|
}
|
|
4499
|
-
if (
|
|
4586
|
+
if (_chunkMZ4CRSY7cjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
4500
4587
|
const clientBoundarySource = transformedCode;
|
|
4501
4588
|
const moduleInfo = this.getModuleInfo(id);
|
|
4502
4589
|
if (moduleInfo) {
|
|
4503
4590
|
moduleInfo.isClientComponent = true;
|
|
4504
4591
|
}
|
|
4505
|
-
transformedCode =
|
|
4592
|
+
transformedCode = _chunkMZ4CRSY7cjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
4506
4593
|
transformed = true;
|
|
4507
|
-
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess',
|
|
4594
|
+
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _415 => _415.getConfig, 'call', _416 => _416()]), () => ( options));
|
|
4508
4595
|
let isolatedModuleReference = null;
|
|
4509
|
-
const root = currentConfig.root || _optionalChain([server, 'optionalAccess',
|
|
4596
|
+
const root = currentConfig.root || _optionalChain([server, 'optionalAccess', _417 => _417.config, 'access', _418 => _418.root]) || process.cwd();
|
|
4510
4597
|
const cleanId = id.split("?", 1)[0];
|
|
4511
|
-
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess',
|
|
4512
|
-
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess',
|
|
4513
|
-
if (_chunk67MZTLTFcjs.isReactRenderer.call(void 0, _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (
|
|
4514
|
-
cleanId.replace(/\\/g, "/").includes(
|
|
4598
|
+
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _419 => _419.getRouteManager, 'call', _420 => _420(), 'access', _421 => _421.getIsolatedClientBoundaryModules, 'call', _422 => _422(root)])));
|
|
4599
|
+
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _423 => _423.has, 'call', _424 => _424(path6.resolve(cleanId))]) === true;
|
|
4600
|
+
if (_chunk67MZTLTFcjs.isReactRenderer.call(void 0, _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunkMZ4CRSY7cjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
|
|
4601
|
+
cleanId.replace(/\\/g, "/").includes(_chunkMZ4CRSY7cjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
4515
4602
|
isolatedModuleReference = _chunkQMNWKQL4cjs.toViteModuleId.call(void 0, cleanId, root);
|
|
4516
|
-
const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access',
|
|
4517
|
-
const explicitStrategy =
|
|
4518
|
-
const inference = islandsMode && explicitStrategy === null ?
|
|
4603
|
+
const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access', _425 => _425.experimental, 'optionalAccess', _426 => _426.serverComponents])) === "islands";
|
|
4604
|
+
const explicitStrategy = _chunkMZ4CRSY7cjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
|
|
4605
|
+
const inference = islandsMode && explicitStrategy === null ? _chunkF36LS2C7cjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
|
|
4519
4606
|
if (inference) {
|
|
4520
4607
|
for (const file of inference.files) {
|
|
4521
4608
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -4528,8 +4615,8 @@ export const manifest = getManifest();
|
|
|
4528
4615
|
islandStrategy: _nullishCoalesce(explicitStrategy, () => ( "load")),
|
|
4529
4616
|
parse: (source) => this.parse(source),
|
|
4530
4617
|
slots: islandsMode,
|
|
4531
|
-
browser: _optionalChain([transformOptions, 'optionalAccess',
|
|
4532
|
-
inferredInteraction: _optionalChain([inference, 'optionalAccess',
|
|
4618
|
+
browser: _optionalChain([transformOptions, 'optionalAccess', _427 => _427.ssr]) !== true,
|
|
4619
|
+
inferredInteraction: _optionalChain([inference, 'optionalAccess', _428 => _428.strategy]) === "interaction"
|
|
4533
4620
|
});
|
|
4534
4621
|
if (!transformedBoundary) {
|
|
4535
4622
|
this.error(
|
|
@@ -4559,7 +4646,7 @@ export const manifest = getManifest();
|
|
|
4559
4646
|
);
|
|
4560
4647
|
return;
|
|
4561
4648
|
}` : "";
|
|
4562
|
-
const hmrCode = _optionalChain([transformOptions, 'optionalAccess',
|
|
4649
|
+
const hmrCode = _optionalChain([transformOptions, 'optionalAccess', _429 => _429.ssr]) || reactRefreshActive || !shouldEmitFarmClientRootHmr(currentConfig.renderer) ? "" : `
|
|
4563
4650
|
if (import.meta.hot) {
|
|
4564
4651
|
import.meta.hot.accept((newModule) => {
|
|
4565
4652
|
${isolatedHmrUpdate}
|
|
@@ -4615,14 +4702,14 @@ if (import.meta.hot) {
|
|
|
4615
4702
|
}
|
|
4616
4703
|
_chunkQMNWKQL4cjs.logger.info(`Found ${ssgPages.length} SSG pages, ${ssrRoutes.length} SSR routes`);
|
|
4617
4704
|
_chunkQMNWKQL4cjs.logger.info("Pre-rendering SSG pages...");
|
|
4618
|
-
const outDir = path6.join(_optionalChain([server, 'optionalAccess',
|
|
4705
|
+
const outDir = path6.join(_optionalChain([server, 'optionalAccess', _430 => _430.config, 'access', _431 => _431.root]) || process.cwd(), options.outDir || "dist");
|
|
4619
4706
|
const clientDir = path6.join(outDir, "client");
|
|
4620
4707
|
for (const page of ssgPages) {
|
|
4621
4708
|
try {
|
|
4622
4709
|
const staticRequest = new Request(new URL(page.urlPath, "http://farm.static"));
|
|
4623
4710
|
await farmApp.getServerRenderer().runWithRequestContext(staticRequest, async () => {
|
|
4624
4711
|
const mod = await routeManager.loadRouteModule(page.filePath);
|
|
4625
|
-
if (!_optionalChain([mod, 'optionalAccess',
|
|
4712
|
+
if (!_optionalChain([mod, 'optionalAccess', _432 => _432.default])) return;
|
|
4626
4713
|
const { layouts } = routeManager.matchRoute(page.urlPath);
|
|
4627
4714
|
const layoutModules = await Promise.all(
|
|
4628
4715
|
layouts.map((l) => routeManager.loadLayoutModule(l.modulePath))
|
|
@@ -4654,7 +4741,7 @@ if (import.meta.hot) {
|
|
|
4654
4741
|
const i18nSnapshot = _chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0, );
|
|
4655
4742
|
const i18nHead = renderFarmI18nStaticHead(page.urlPath, i18nSnapshot);
|
|
4656
4743
|
const fullHtml = `<!DOCTYPE html>
|
|
4657
|
-
<html lang="${escapeFarmHtmlAttribute(_optionalChain([i18nSnapshot, 'optionalAccess',
|
|
4744
|
+
<html lang="${escapeFarmHtmlAttribute(_optionalChain([i18nSnapshot, 'optionalAccess', _433 => _433.locale]) || "en")}"${i18nSnapshot ? ` dir="${i18nSnapshot.direction}"` : ""}>
|
|
4658
4745
|
<head>
|
|
4659
4746
|
<meta charset="utf-8">
|
|
4660
4747
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
@@ -4697,8 +4784,8 @@ if (import.meta.hot) {
|
|
|
4697
4784
|
}
|
|
4698
4785
|
},
|
|
4699
4786
|
watchChange() {
|
|
4700
|
-
|
|
4701
|
-
|
|
4787
|
+
_chunkMZ4CRSY7cjs.invalidateFarmClientReachableModules.call(void 0, );
|
|
4788
|
+
_chunkMZ4CRSY7cjs.invalidateFarmClientOnlyScan.call(void 0, );
|
|
4702
4789
|
},
|
|
4703
4790
|
async handleHotUpdate(ctx) {
|
|
4704
4791
|
if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
|
|
@@ -4723,23 +4810,23 @@ if (import.meta.hot) {
|
|
|
4723
4810
|
server2.moduleGraph.invalidateModule(mod);
|
|
4724
4811
|
}
|
|
4725
4812
|
}
|
|
4726
|
-
const currentFarmConfig = _optionalChain([farmApp, 'optionalAccess',
|
|
4813
|
+
const currentFarmConfig = _optionalChain([farmApp, 'optionalAccess', _434 => _434.getConfig, 'call', _435 => _435()]);
|
|
4727
4814
|
const normalizedFile = file.replace(/\\/g, "/");
|
|
4728
|
-
if (currentFarmConfig && /\/route\.(?:ts|tsx|js|jsx)$/.test(normalizedFile) &&
|
|
4815
|
+
if (currentFarmConfig && /\/route\.(?:ts|tsx|js|jsx)$/.test(normalizedFile) && _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, currentFarmConfig).some(
|
|
4729
4816
|
(appDir) => normalizedFile.startsWith(`${_chunkQMNWKQL4cjs.toPosixPath.call(void 0, appDir)}/api/`)
|
|
4730
4817
|
)) {
|
|
4731
4818
|
for (const mod of modules) server2.moduleGraph.invalidateModule(mod);
|
|
4732
|
-
await _optionalChain([refreshRouteDiscovery, 'optionalCall',
|
|
4819
|
+
await _optionalChain([refreshRouteDiscovery, 'optionalCall', _436 => _436(`updated ${file}`)]);
|
|
4733
4820
|
server2.ws.send({ type: "full-reload", path: "*" });
|
|
4734
4821
|
return [];
|
|
4735
4822
|
}
|
|
4736
|
-
const currentSrcRoot = currentFarmConfig ?
|
|
4823
|
+
const currentSrcRoot = currentFarmConfig ? _chunkMTBDJ326cjs.getFarmSourceRoots.call(void 0, currentFarmConfig).map((source) => path6.join(source.root, source.srcDir).replace(/\\/g, "/")).find((sourceRoot) => normalizedFile.startsWith(`${sourceRoot}/`)) || null : null;
|
|
4737
4824
|
if (currentSrcRoot && normalizedFile.startsWith(`${currentSrcRoot}/`) && _chunkE7QOEV5Zcjs.isProgrammaticRoutesFileName.call(void 0, normalizedFile)) {
|
|
4738
4825
|
logUpdate("PAGE", `updated ${path6.basename(file)}`);
|
|
4739
4826
|
for (const mod of modules) {
|
|
4740
4827
|
server2.moduleGraph.invalidateModule(mod);
|
|
4741
4828
|
}
|
|
4742
|
-
await _optionalChain([refreshRouteDiscovery, 'optionalCall',
|
|
4829
|
+
await _optionalChain([refreshRouteDiscovery, 'optionalCall', _437 => _437(`updated ${file}`)]);
|
|
4743
4830
|
server2.ws.send({
|
|
4744
4831
|
type: "full-reload",
|
|
4745
4832
|
path: "*"
|
|
@@ -4752,7 +4839,7 @@ if (import.meta.hot) {
|
|
|
4752
4839
|
for (const mod of modules) {
|
|
4753
4840
|
server2.moduleGraph.invalidateModule(mod);
|
|
4754
4841
|
}
|
|
4755
|
-
await _optionalChain([refreshRouteDiscovery, 'optionalCall',
|
|
4842
|
+
await _optionalChain([refreshRouteDiscovery, 'optionalCall', _438 => _438(`updated ${file}`)]);
|
|
4756
4843
|
server2.ws.send({
|
|
4757
4844
|
type: "full-reload",
|
|
4758
4845
|
path: "*"
|
|
@@ -4760,12 +4847,13 @@ if (import.meta.hot) {
|
|
|
4760
4847
|
return [];
|
|
4761
4848
|
}
|
|
4762
4849
|
if (apiRouteManager && _chunkJYNNIGQOcjs.invalidateFarmDevDependents.call(void 0, server2, file, apiRouteManager.getSourceFiles()).length > 0) {
|
|
4763
|
-
await _optionalChain([refreshRouteDiscovery, 'optionalCall',
|
|
4850
|
+
await _optionalChain([refreshRouteDiscovery, 'optionalCall', _439 => _439(`updated ${file}`)]);
|
|
4764
4851
|
}
|
|
4765
|
-
const isolatedHydrationMode = _optionalChain([currentFarmConfig, 'optionalAccess',
|
|
4766
|
-
const planRouteManager = _optionalChain([farmApp, 'optionalAccess',
|
|
4852
|
+
const isolatedHydrationMode = _optionalChain([currentFarmConfig, 'optionalAccess', _440 => _440.experimental, 'optionalAccess', _441 => _441.isolatedClientHydration]);
|
|
4853
|
+
const planRouteManager = _optionalChain([farmApp, 'optionalAccess', _442 => _442.getRouteManager, 'call', _443 => _443()]);
|
|
4767
4854
|
const isHydrationPlanSource = currentSrcRoot !== null && normalizedFile.startsWith(`${currentSrcRoot}/`) && /\.[cm]?[jt]sx?$/.test(normalizedFile);
|
|
4768
|
-
const tracksAsyncOwnerIslands = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess',
|
|
4855
|
+
const tracksAsyncOwnerIslands = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _444 => _444.renderer])) && planRouteManager !== void 0;
|
|
4856
|
+
let clientPlanCurrent = false;
|
|
4769
4857
|
if (isHydrationPlanSource && (isolatedHydrationMode === "enabled" || isolatedHydrationMode === "analyze" || tracksAsyncOwnerIslands)) {
|
|
4770
4858
|
const routeManager = planRouteManager;
|
|
4771
4859
|
if (routeManager) {
|
|
@@ -4800,6 +4888,7 @@ if (import.meta.hot) {
|
|
|
4800
4888
|
server2.ws.send({ type: "full-reload", path: "*" });
|
|
4801
4889
|
return [];
|
|
4802
4890
|
}
|
|
4891
|
+
clientPlanCurrent = true;
|
|
4803
4892
|
} catch (error) {
|
|
4804
4893
|
_chunkQMNWKQL4cjs.logger.warn(
|
|
4805
4894
|
`[Farm.js] Could not refresh the client hydration plan after ${file}: ${error instanceof Error ? error.message : String(error)}`
|
|
@@ -4825,7 +4914,7 @@ if (import.meta.hot) {
|
|
|
4825
4914
|
}
|
|
4826
4915
|
return [];
|
|
4827
4916
|
}
|
|
4828
|
-
_optionalChain([farmApp, 'optionalAccess',
|
|
4917
|
+
if (!clientPlanCurrent) _optionalChain([farmApp, 'optionalAccess', _445 => _445.getRouteManager, 'call', _446 => _446(), 'access', _447 => _447.invalidateClientManifest, 'call', _448 => _448()]);
|
|
4829
4918
|
const manifestModule = server2.moduleGraph.getModuleById("/@farm/manifest");
|
|
4830
4919
|
if (manifestModule) {
|
|
4831
4920
|
server2.moduleGraph.invalidateModule(manifestModule);
|
|
@@ -4929,7 +5018,7 @@ function createPageDataMiddlewareResponse(res) {
|
|
|
4929
5018
|
return (...args) => {
|
|
4930
5019
|
if (captures(target.statusCode, target.getHeader("location"))) {
|
|
4931
5020
|
const callback = args.find((arg) => typeof arg === "function");
|
|
4932
|
-
_optionalChain([callback, 'optionalCall',
|
|
5021
|
+
_optionalChain([callback, 'optionalCall', _449 => _449()]);
|
|
4933
5022
|
return property === "write" ? true : response;
|
|
4934
5023
|
}
|
|
4935
5024
|
return target[property](...args);
|
|
@@ -4964,7 +5053,7 @@ async function sendFarmPageDataRedirect(res, redirect, deploymentId) {
|
|
|
4964
5053
|
for (const name of ["location", "content-length", "content-type"]) res.removeHeader(name);
|
|
4965
5054
|
await _chunkYIHRZBD7cjs.sendWebResponse.call(void 0,
|
|
4966
5055
|
res,
|
|
4967
|
-
|
|
5056
|
+
_chunkI7J5RLGOcjs.withFarmDeploymentResponse.call(void 0, _chunkRWR7SMD7cjs.createFarmPageDataRedirectResponse.call(void 0, redirect), deploymentId)
|
|
4968
5057
|
);
|
|
4969
5058
|
}
|
|
4970
5059
|
function resolveDevelopmentRoot(farmRoot, viteRoot) {
|
|
@@ -4974,7 +5063,7 @@ function resolveDevelopmentRoot(farmRoot, viteRoot) {
|
|
|
4974
5063
|
if (fs2.realpathSync(farmRoot) === fs2.realpathSync(viteRoot)) {
|
|
4975
5064
|
return path6.resolve(viteRoot);
|
|
4976
5065
|
}
|
|
4977
|
-
} catch (
|
|
5066
|
+
} catch (e27) {
|
|
4978
5067
|
}
|
|
4979
5068
|
return farmRoot;
|
|
4980
5069
|
}
|
|
@@ -4993,12 +5082,12 @@ function isFarmClientVirtualId(id) {
|
|
|
4993
5082
|
}
|
|
4994
5083
|
function isClientEnvironment(context, loadOptions) {
|
|
4995
5084
|
const environment = context.environment;
|
|
4996
|
-
if (_optionalChain([environment, 'optionalAccess',
|
|
4997
|
-
if (_optionalChain([environment, 'optionalAccess',
|
|
4998
|
-
return _optionalChain([loadOptions, 'optionalAccess',
|
|
5085
|
+
if (_optionalChain([environment, 'optionalAccess', _450 => _450.config, 'optionalAccess', _451 => _451.consumer])) return environment.config.consumer === "client";
|
|
5086
|
+
if (_optionalChain([environment, 'optionalAccess', _452 => _452.name])) return environment.name === "client";
|
|
5087
|
+
return _optionalChain([loadOptions, 'optionalAccess', _453 => _453.ssr]) !== true;
|
|
4999
5088
|
}
|
|
5000
5089
|
function invalidateProgrammaticClientRouteModules(server) {
|
|
5001
|
-
const graph = _optionalChain([server, 'access',
|
|
5090
|
+
const graph = _optionalChain([server, 'access', _454 => _454.environments, 'optionalAccess', _455 => _455.client, 'optionalAccess', _456 => _456.moduleGraph]);
|
|
5002
5091
|
if (!graph) return;
|
|
5003
5092
|
for (const [id, module] of graph.idToModuleMap) {
|
|
5004
5093
|
if (_chunkE7QOEV5Zcjs.parseProgrammaticRouteModuleId.call(void 0, id)) graph.invalidateModule(module);
|
|
@@ -5008,22 +5097,22 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5008
5097
|
const parsed = _chunkE7QOEV5Zcjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
5009
5098
|
const routesFile = resolveRealModuleFile(parsed.filePath, root);
|
|
5010
5099
|
watchFile(routesFile);
|
|
5011
|
-
return
|
|
5100
|
+
return _chunkMZ4CRSY7cjs.generateProgrammaticClientRouteModule.call(void 0, {
|
|
5012
5101
|
kind: parsed.kind,
|
|
5013
5102
|
routePath: parsed.routePath,
|
|
5014
5103
|
routesFile,
|
|
5015
|
-
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess',
|
|
5016
|
-
|
|
5104
|
+
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _457 => _457.routes, 'access', _458 => _458.get, 'call', _459 => _459(
|
|
5105
|
+
_chunkMZ4CRSY7cjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
|
|
5017
5106
|
)]),
|
|
5018
5107
|
rendererServer: renderer.server,
|
|
5019
5108
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
5020
5109
|
});
|
|
5021
5110
|
}
|
|
5022
5111
|
function resolveRealModuleFile(filePath, root) {
|
|
5023
|
-
const resolved = _nullishCoalesce(
|
|
5112
|
+
const resolved = _nullishCoalesce(_chunkMZ4CRSY7cjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
5024
5113
|
try {
|
|
5025
5114
|
return _chunkQMNWKQL4cjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
5026
|
-
} catch (
|
|
5115
|
+
} catch (e28) {
|
|
5027
5116
|
return _chunkQMNWKQL4cjs.toPosixPath.call(void 0, resolved);
|
|
5028
5117
|
}
|
|
5029
5118
|
}
|
|
@@ -5334,12 +5423,12 @@ async function parseRouteModuleProps(routeModule, input) {
|
|
|
5334
5423
|
}
|
|
5335
5424
|
const schemas = routeModule.__farmRouteSchemas;
|
|
5336
5425
|
const params = parseRouteModuleSchema(
|
|
5337
|
-
_optionalChain([schemas, 'optionalAccess',
|
|
5426
|
+
_optionalChain([schemas, 'optionalAccess', _460 => _460.params]),
|
|
5338
5427
|
input.props.params,
|
|
5339
5428
|
"params",
|
|
5340
5429
|
input.routePath
|
|
5341
5430
|
);
|
|
5342
|
-
const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess',
|
|
5431
|
+
const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess', _461 => _461.search]), input.search, "search", input.routePath);
|
|
5343
5432
|
return {
|
|
5344
5433
|
...input.props,
|
|
5345
5434
|
params,
|
|
@@ -5359,7 +5448,7 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
5359
5448
|
}
|
|
5360
5449
|
}
|
|
5361
5450
|
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterReact, renderer = _chunk67MZTLTFcjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
5362
|
-
const providerClientCode =
|
|
5451
|
+
const providerClientCode = _chunkF36LS2C7cjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
5363
5452
|
integrationProviders,
|
|
5364
5453
|
root,
|
|
5365
5454
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -5412,7 +5501,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
5412
5501
|
return null;
|
|
5413
5502
|
}
|
|
5414
5503
|
}
|
|
5415
|
-
${islandValues ? `${
|
|
5504
|
+
${islandValues ? `${_chunkF36LS2C7cjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
5416
5505
|
let farmLastRouteState = null;
|
|
5417
5506
|
|
|
5418
5507
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -6223,7 +6312,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
6223
6312
|
return loadedLayouts;
|
|
6224
6313
|
}
|
|
6225
6314
|
|
|
6226
|
-
${
|
|
6315
|
+
${_chunkF36LS2C7cjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
6227
6316
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
6228
6317
|
let wrapped = element;
|
|
6229
6318
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -6508,14 +6597,11 @@ function readActiveLayoutPatterns() {
|
|
|
6508
6597
|
.filter(Boolean);
|
|
6509
6598
|
}
|
|
6510
6599
|
|
|
6600
|
+
${_chunkF36LS2C7cjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
6601
|
+
|
|
6511
6602
|
function activateFragmentScripts(root) {
|
|
6512
6603
|
for (const script of Array.from(root.querySelectorAll?.('script') || [])) {
|
|
6513
|
-
|
|
6514
|
-
for (const attribute of Array.from(script.attributes)) {
|
|
6515
|
-
freshScript.setAttribute(attribute.name, attribute.value);
|
|
6516
|
-
}
|
|
6517
|
-
freshScript.textContent = script.textContent || '';
|
|
6518
|
-
script.replaceWith(freshScript);
|
|
6604
|
+
script.replaceWith(createFarmNavigationScript(script));
|
|
6519
6605
|
}
|
|
6520
6606
|
}
|
|
6521
6607
|
|
|
@@ -6556,7 +6642,13 @@ function getLayoutShell(root, patterns, index, find) {
|
|
|
6556
6642
|
: shell.querySelector('#__farm_page__');
|
|
6557
6643
|
inner?.replaceChildren();
|
|
6558
6644
|
removeSuspenseContent(shell);
|
|
6559
|
-
|
|
6645
|
+
// Each island's props stay, without its id, so new props count as a change.
|
|
6646
|
+
shell.querySelectorAll('script').forEach((script) => {
|
|
6647
|
+
if (script.type !== 'f/props') return script.remove();
|
|
6648
|
+
Array.from(script.attributes).forEach((attribute) => {
|
|
6649
|
+
if (attribute.name !== 'type') script.removeAttribute(attribute.name);
|
|
6650
|
+
});
|
|
6651
|
+
});
|
|
6560
6652
|
shell.querySelectorAll('f-island').forEach((island) => {
|
|
6561
6653
|
island.replaceChildren();
|
|
6562
6654
|
Array.from(island.attributes).forEach((attribute) => island.removeAttribute(attribute.name));
|
|
@@ -6564,7 +6656,7 @@ function getLayoutShell(root, patterns, index, find) {
|
|
|
6564
6656
|
return shell.innerHTML;
|
|
6565
6657
|
}
|
|
6566
6658
|
|
|
6567
|
-
function replaceNavigationBoundary(
|
|
6659
|
+
${islandValues ? _chunkF36LS2C7cjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
|
|
6568
6660
|
container,
|
|
6569
6661
|
fragment,
|
|
6570
6662
|
currentPatterns,
|
|
@@ -6572,6 +6664,8 @@ function replaceNavigationBoundary(
|
|
|
6572
6664
|
refresh = false,
|
|
6573
6665
|
find = findLayoutBoundary,
|
|
6574
6666
|
) {
|
|
6667
|
+
// A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
|
|
6668
|
+
if (refresh) revealFarmStreamedContent(fragment);
|
|
6575
6669
|
let sharedCount = 0;
|
|
6576
6670
|
while (
|
|
6577
6671
|
sharedCount < currentPatterns.length &&
|
|
@@ -6601,11 +6695,13 @@ function replaceNavigationBoundary(
|
|
|
6601
6695
|
activateFragmentScripts(container);
|
|
6602
6696
|
return container;
|
|
6603
6697
|
}
|
|
6604
|
-
|
|
6698
|
+
${islandValues ? `
|
|
6699
|
+
// A refresh renders the same layouts again: their fields keep what was typed, and the focus.
|
|
6700
|
+
const fields = refresh ? captureFarmServerFields(currentTarget) : null;` : ""}
|
|
6605
6701
|
${isolatedHydrationEnabled ? `${islandValues ? `// A refresh keeps the islands still on the page, with their state and new props.
|
|
6606
6702
|
if (refresh) farmIsolatedHydrationRuntime.carryOver(currentTarget, nextTarget);
|
|
6607
6703
|
` : ""}disposeFarmIsolatedClientBoundaries(currentTarget);` : ""}
|
|
6608
|
-
currentTarget.replaceWith(nextTarget);
|
|
6704
|
+
currentTarget.replaceWith(nextTarget);${islandValues ? "\n if (fields) restoreFarmServerFields(fields, nextTarget);" : ""}
|
|
6609
6705
|
activateFragmentScripts(nextTarget);
|
|
6610
6706
|
if (fragmentTreeRoot && fragmentTreeRoot !== nextTarget) fragmentTreeRoot.remove();
|
|
6611
6707
|
|
|
@@ -6615,7 +6711,17 @@ function replaceNavigationBoundary(
|
|
|
6615
6711
|
const support = document.createElement('div');
|
|
6616
6712
|
support.hidden = true;
|
|
6617
6713
|
support.dataset.farmFragmentSupport = 'true';
|
|
6618
|
-
|
|
6714
|
+
while (fragment.firstChild) {
|
|
6715
|
+
const node = fragment.firstChild;
|
|
6716
|
+
// React's staged Suspense content stays in the root, where a later flush of a streamed
|
|
6717
|
+
// navigation reveals it; React removes it then.
|
|
6718
|
+
if (node.nodeType === 1 && node.matches('div[hidden][id^="S:"]')) {
|
|
6719
|
+
container.appendChild(node);
|
|
6720
|
+
activateFragmentScripts(node);
|
|
6721
|
+
} else {
|
|
6722
|
+
support.appendChild(node);
|
|
6723
|
+
}
|
|
6724
|
+
}
|
|
6619
6725
|
document.body.appendChild(support);
|
|
6620
6726
|
activateFragmentScripts(support);
|
|
6621
6727
|
setTimeout(() => support.remove(), 0);
|
|
@@ -6623,7 +6729,7 @@ function replaceNavigationBoundary(
|
|
|
6623
6729
|
return nextTarget;
|
|
6624
6730
|
}
|
|
6625
6731
|
|
|
6626
|
-
${islandValues ? `${
|
|
6732
|
+
${islandValues ? `${_chunkF36LS2C7cjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
6627
6733
|
|
|
6628
6734
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
6629
6735
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -6700,7 +6806,8 @@ async function fetchFarmNavigationDocument(path, context) {
|
|
|
6700
6806
|
redirect: 'manual',
|
|
6701
6807
|
headers: createFarmDeploymentRequestHeaders(deploymentId, {
|
|
6702
6808
|
Accept: 'text/html',
|
|
6703
|
-
|
|
6809
|
+
// A refresh arrives whole, like a transition: the islands it keeps are all in it.
|
|
6810
|
+
...(context.prefetch || context.refresh ? {} : { 'F-Stream': 'flush' }),
|
|
6704
6811
|
...getFarmIslandValueHeaders(),
|
|
6705
6812
|
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
6706
6813
|
// which the server answers without loading.tsx.
|
|
@@ -7319,8 +7426,8 @@ function generateClientManifest(bundle) {
|
|
|
7319
7426
|
async function defineConfig(config = {}) {
|
|
7320
7427
|
const tailwindVitePlugin = await _chunkJSOCDYERcjs.loadTailwindVitePlugin.call(void 0, );
|
|
7321
7428
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
7322
|
-
if (_optionalChain([config, 'access',
|
|
7323
|
-
const { config: layeredConfig } = await import("./layers-
|
|
7429
|
+
if (_optionalChain([config, 'access', _462 => _462.extends, 'optionalAccess', _463 => _463.length])) {
|
|
7430
|
+
const { config: layeredConfig } = await import("./layers-7P4RLKVX.cjs").then(
|
|
7324
7431
|
({ resolveFarmLayers }) => resolveFarmLayers(config, {
|
|
7325
7432
|
root: appRoot,
|
|
7326
7433
|
mode: process.env.NODE_ENV === "production" ? "production" : "development"
|
|
@@ -7329,7 +7436,7 @@ async function defineConfig(config = {}) {
|
|
|
7329
7436
|
config = layeredConfig;
|
|
7330
7437
|
}
|
|
7331
7438
|
config.renderer = _chunk67MZTLTFcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
7332
|
-
config.images =
|
|
7439
|
+
config.images = _chunkF36LS2C7cjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
7333
7440
|
const rendererVitePlugins = await _chunk67MZTLTFcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
7334
7441
|
ssr: true
|
|
7335
7442
|
});
|
|
@@ -7421,13 +7528,13 @@ async function defineConfig(config = {}) {
|
|
|
7421
7528
|
if (!serverStarted) {
|
|
7422
7529
|
serverStarted = true;
|
|
7423
7530
|
const elapsed = Date.now() - startTime;
|
|
7424
|
-
const address = _optionalChain([server, 'access',
|
|
7531
|
+
const address = _optionalChain([server, 'access', _464 => _464.httpServer, 'optionalAccess', _465 => _465.address, 'call', _466 => _466()]);
|
|
7425
7532
|
const resolvedPort = typeof address === "object" && address ? address.port : server.config.server.port || port || 3e3;
|
|
7426
7533
|
const hostConfig = server.config.server.host;
|
|
7427
7534
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
7428
7535
|
console.log("");
|
|
7429
7536
|
console.log(
|
|
7430
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
7537
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkSQ6IWJ3Hcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
7431
7538
|
);
|
|
7432
7539
|
console.log("");
|
|
7433
7540
|
console.log(
|
|
@@ -7461,7 +7568,7 @@ async function defineConfig(config = {}) {
|
|
|
7461
7568
|
plugins: [
|
|
7462
7569
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
7463
7570
|
_chunk65Y5SIBHcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
7464
|
-
|
|
7571
|
+
_chunkF36LS2C7cjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
7465
7572
|
tailwindVitePlugin,
|
|
7466
7573
|
...rendererVitePlugins,
|
|
7467
7574
|
...reactRefreshPlugins,
|
|
@@ -7469,16 +7576,16 @@ async function defineConfig(config = {}) {
|
|
|
7469
7576
|
farmI18nClientBridgePlugin(),
|
|
7470
7577
|
farmServerOnlyEntriesPlugin(),
|
|
7471
7578
|
farmPlugin(config),
|
|
7472
|
-
|
|
7579
|
+
_chunkMZ4CRSY7cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
7473
7580
|
farmBrandingPlugin
|
|
7474
7581
|
],
|
|
7475
7582
|
customLogger: farmLogger,
|
|
7476
7583
|
clearScreen: false,
|
|
7477
7584
|
optimizeDeps: {
|
|
7478
|
-
...
|
|
7479
|
-
|
|
7585
|
+
..._chunkF36LS2C7cjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
7586
|
+
_chunkF36LS2C7cjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
7480
7587
|
appRoot,
|
|
7481
|
-
|
|
7588
|
+
_chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
7482
7589
|
),
|
|
7483
7590
|
config.renderer
|
|
7484
7591
|
),
|
|
@@ -7518,8 +7625,8 @@ async function defineConfig(config = {}) {
|
|
|
7518
7625
|
dedupe: [...config.renderer.dedupe || []],
|
|
7519
7626
|
// Stub out problematic server-only modules during dev mode
|
|
7520
7627
|
alias: {
|
|
7521
|
-
...
|
|
7522
|
-
...
|
|
7628
|
+
..._chunkMTBDJ326cjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
7629
|
+
..._chunkF36LS2C7cjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
7523
7630
|
// Nitro internals that should not be resolved in browser
|
|
7524
7631
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
7525
7632
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|