@farm.js/core 0.2.1 → 0.2.2
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--uQgDp_Q.d.ts → agent-mcp.d-DuZjglYX.d.ts} +1 -1
- package/dist/{agent-mcp.d-DpthRhqr.d.mts → agent-mcp.d-gI3ahrF6.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/analyzer-ENHO4SA5.cjs +17 -0
- package/dist/{analyzer-GLFRODYV.mjs → analyzer-UXWYUTBK.mjs} +2 -2
- package/dist/api/node.d.mts +3 -3
- package/dist/api/node.d.ts +3 -3
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/{app-manifest.d-DMgcFuXQ.d.ts → app-manifest.d-B3h89j6a.d.ts} +1 -1
- package/dist/{app-manifest.d-DXAvPjMw.d.mts → app-manifest.d-bHK9EGPI.d.mts} +1 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{app.d-htfGqq-d.d.ts → app.d-C3uyET_L.d.ts} +4 -4
- package/dist/{app.d-DG_-nN5y.d.mts → app.d-Cr7fXGvJ.d.mts} +4 -4
- package/dist/{chunk-HENYWY5J.cjs → chunk-2T4GGCQT.cjs} +2 -2
- package/dist/{chunk-PGU4SCIU.cjs → chunk-56F4CDKE.cjs} +124 -124
- package/dist/{chunk-V6ACETKR.cjs → chunk-5AOARZJT.cjs} +4 -4
- package/dist/{chunk-YQXLBYY2.cjs → chunk-5B2Y4EVS.cjs} +32 -8
- package/dist/{chunk-QI3UYN3P.cjs → chunk-5CG2UD6B.cjs} +12 -12
- package/dist/{chunk-QCVP22KW.cjs → chunk-5RYBQKBY.cjs} +3 -3
- package/dist/{chunk-BOHBFBRA.mjs → chunk-6VMBLDWY.mjs} +1 -1
- package/dist/{chunk-DVL3UVYT.mjs → chunk-6XABTMXR.mjs} +2 -2
- package/dist/chunk-7QGA6UX6.cjs +26 -0
- package/dist/{chunk-JZAGIXMB.cjs → chunk-A4AYTO2E.cjs} +1 -1
- package/dist/{chunk-V36K4TSU.mjs → chunk-ADKPJZPP.mjs} +1 -1
- package/dist/{chunk-OKZHPPBX.mjs → chunk-ALGAGXWB.mjs} +1 -1
- package/dist/{chunk-XSE4XJKY.cjs → chunk-B7CZ7T2I.cjs} +2 -2
- package/dist/{chunk-PVB5UYJT.cjs → chunk-BEAQVRMQ.cjs} +51 -51
- package/dist/{chunk-GEZ76JXD.cjs → chunk-FDS6U2NT.cjs} +3 -3
- package/dist/{chunk-P2THJDLH.mjs → chunk-FEWGKBMM.mjs} +16 -11
- package/dist/chunk-G7LNCHTS.mjs +21 -0
- package/dist/{chunk-L2KGQXFU.mjs → chunk-GKDOKES3.mjs} +1 -1
- package/dist/{chunk-XYCB3CXM.mjs → chunk-IEXZMDF4.mjs} +2 -2
- package/dist/{chunk-HBZQIRRM.mjs → chunk-JCERO6YF.mjs} +1 -1
- package/dist/{chunk-JJ22OI7J.cjs → chunk-JM5VSEYC.cjs} +2 -2
- package/dist/{chunk-MR64FNW6.cjs → chunk-L7Z6OAE2.cjs} +4 -4
- package/dist/{chunk-D5GFVHBV.mjs → chunk-MEXGQE4T.mjs} +5 -5
- package/dist/{chunk-RCJAOQWW.mjs → chunk-NPR6SCEV.mjs} +1 -1
- package/dist/{chunk-QJKGRUBR.mjs → chunk-Q4CPBKPT.mjs} +4 -4
- package/dist/{chunk-D2OU4CX2.cjs → chunk-SJQ24IB5.cjs} +6 -6
- package/dist/{chunk-SIJ3DREB.mjs → chunk-ST3U7XVO.mjs} +1 -1
- package/dist/{chunk-TI4BJFYX.mjs → chunk-TK2JJCP5.mjs} +10 -10
- package/dist/{chunk-LO5BNR6Y.mjs → chunk-W5T3ZAFU.mjs} +25 -1
- package/dist/{chunk-ADCVSTFV.cjs → chunk-WAQIO2VD.cjs} +2 -2
- package/dist/{chunk-W34OS5CK.cjs → chunk-ZND5D4IC.cjs} +142 -137
- package/dist/{chunk-E7ISZK3R.mjs → chunk-ZVT2F3JU.mjs} +1 -1
- package/dist/{client-component.d-DDbDw2yP.d.ts → client-component.d-BavTzqsn.d.ts} +1 -1
- package/dist/{client-component.d-D5JVDeQf.d.mts → client-component.d-X3j9FOZ2.d.mts} +1 -1
- package/dist/{client-plugins.d-BHqfH3DQ.d.ts → client-plugins.d-CqTr5IrQ.d.ts} +61 -1
- package/dist/{client-plugins.d-9jr2yWR3.d.mts → client-plugins.d-DnnAopKG.d.mts} +61 -1
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.cjs +5 -1
- package/dist/desktop.d.mts +8 -4
- package/dist/desktop.d.ts +8 -4
- package/dist/desktop.mjs +4 -0
- package/dist/{dev-guard-M3ZCDWCK.cjs → dev-guard-5NUIX6IZ.cjs} +4 -3
- package/dist/{dev-guard-TFVWJNIB.mjs → dev-guard-L42ZZRCZ.mjs} +2 -1
- package/dist/{devtools-F6Z436WU.cjs → devtools-4LMM3DDJ.cjs} +2 -2
- package/dist/{devtools-ZDBCJI44.mjs → devtools-RFVGDHXH.mjs} +1 -1
- package/dist/docs.cjs +3 -3
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/{handler.d-EtTSPkeO.d.mts → handler.d-BSlpYCDB.d.mts} +1 -1
- package/dist/{handler.d-Dq_bSEKC.d.ts → handler.d-DgX7gPO6.d.ts} +1 -1
- package/dist/{headers.d-BKwGD_uC.d.mts → headers.d-Cf8l5LMo.d.mts} +1 -1
- package/dist/{headers.d-CpIHLCEk.d.ts → headers.d-CmxW42R2.d.ts} +1 -1
- package/dist/index.cjs +15 -14
- package/dist/{index.d-DXtaU9OU.d.mts → index.d-7xoJqKRZ.d.mts} +1 -1
- package/dist/{index.d-CoRZKiHA.d.ts → index.d-BZZt7kxO.d.ts} +1 -1
- package/dist/index.d.mts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.mjs +14 -13
- package/dist/integrations/orm.d.mts +1 -1
- package/dist/integrations/orm.d.ts +1 -1
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +17 -16
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +16 -15
- package/dist/internal/cli-runtime.cjs +2 -2
- package/dist/internal/cli-runtime.d.mts +7 -7
- package/dist/internal/cli-runtime.d.ts +7 -7
- package/dist/internal/cli-runtime.mjs +1 -1
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +5 -4
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +4 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +1 -1
- package/dist/internal/start-manifest.d.ts +1 -1
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/{mount.d-BzK2Z1pR.d.ts → mount.d-CD-xVBu7.d.ts} +1 -1
- package/dist/{mount.d-D-ynBlxU.d.mts → mount.d-Dd0xeRMl.d.mts} +1 -1
- package/dist/{navigation-delegate.d-DtsnFnNF.d.ts → navigation-delegate.d-Bses_F-y.d.ts} +1 -1
- package/dist/{navigation-delegate.d-aJh3ZmTY.d.mts → navigation-delegate.d-dBNg976E.d.mts} +1 -1
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +12 -11
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.mjs +11 -10
- package/dist/{render-plan.d-h8bkOQyh.d.ts → render-plan.d-DaIwnRK2.d.ts} +1 -1
- package/dist/{render-plan.d-C6nUIU2m.d.mts → render-plan.d-vOdZHHLI.d.mts} +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/{request.d-CBEdJD5R.d.mts → request.d-B8U4pVFP.d.mts} +1 -1
- package/dist/{request.d-CrriEvxy.d.ts → request.d-CgXp3EEc.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-DgXpNk_c.d.mts → route-rendering.d-BQvNYQqu.d.mts} +1 -1
- package/dist/{route-rendering.d-C-ivf31T.d.ts → route-rendering.d-Di0AxFix.d.ts} +1 -1
- package/dist/{router.d-BRRPd5dE.d.ts → router.d-BJVGhSAJ.d.ts} +1 -1
- package/dist/{router.d-O5LrW9mZ.d.mts → router.d-hNedVdoB.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{rsc-pipeline-2DNM7UDA.cjs → rsc-pipeline-HT4G3QGT.cjs} +7 -6
- package/dist/{rsc-pipeline-HYINQPMW.mjs → rsc-pipeline-NCJ3NIE5.mjs} +6 -5
- package/dist/{runtime-M6GLD4CR.cjs → runtime-6UF5XKUP.cjs} +4 -4
- package/dist/{runtime-JP7L5KI7.mjs → runtime-VHXIEXL7.mjs} +2 -2
- package/dist/{runtime.d-DW_1avVi.d.ts → runtime.d-0R8nHCM6.d.ts} +1 -1
- package/dist/{runtime.d-DP8Sk9PM.d.mts → runtime.d-DpeuF_T-.d.mts} +1 -1
- package/dist/{schema-dependencies.d-Cedd7QUf.d.mts → schema-dependencies.d-_Wyey4Wv.d.mts} +1 -1
- package/dist/{schema-dependencies.d-C__RyTvW.d.ts → schema-dependencies.d-tkUHREqz.d.ts} +1 -1
- package/dist/{server-components-status.d-CdsEQbeM.d.ts → server-components-status.d-B2Z5WvO5.d.ts} +1 -1
- package/dist/{server-components-status.d-DN98yOT4.d.mts → server-components-status.d-sN7ju-ie.d.mts} +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +37 -36
- package/dist/server.d.mts +11 -11
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +13 -12
- package/dist/{spa-router.d-FcDbBCrK.d.mts → spa-router.d-D3AtR2Bc.d.mts} +2 -2
- package/dist/{spa-router.d-BJWZAdrV.d.ts → spa-router.d-MjT6sGb9.d.ts} +2 -2
- package/dist/{ssg.d--uut8Gya.d.mts → ssg.d-B32Cp_XW.d.mts} +2 -2
- package/dist/{ssg.d-Cf9mC1rZ.d.ts → ssg.d-C1SNuPz5.d.ts} +2 -2
- package/dist/{store-core.d-h7o6V2kH.d.ts → store-core.d-BZ3YXs70.d.ts} +2 -2
- package/dist/{store-core.d-DgYlAo-e.d.mts → store-core.d-BbVdaoA0.d.mts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils.d-2lGEnyBc.d.ts → utils.d-Bjbm44fP.d.ts} +1 -1
- package/dist/{utils.d-DjFApBfE.d.mts → utils.d-CoLozp7-.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +12 -11
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +11 -10
- package/package.json +1 -1
- package/dist/analyzer-KBVOHASA.cjs +0 -17
- /package/dist/{chunk-EIAA4W3M.cjs → chunk-COXMHCIV.cjs} +0 -0
- /package/dist/{chunk-H6MYRZ2U.mjs → chunk-JL2HNLMC.mjs} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk5RYBQKBYcjs = require('./chunk-5RYBQKBY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -44,25 +44,25 @@ var _chunk6QWCFVGLcjs = require('./chunk-6QWCFVGL.cjs');
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkBEAQVRMQcjs = require('./chunk-BEAQVRMQ.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkWAQIO2VDcjs = require('./chunk-WAQIO2VD.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
var _chunkIGA3OTFYcjs = require('./chunk-IGA3OTFY.cjs');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunk5B2Y4EVScjs = require('./chunk-5B2Y4EVS.cjs');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
var _chunkGL4SPJTEcjs = require('./chunk-GL4SPJTE.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunk5AOARZJTcjs = require('./chunk-5AOARZJT.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -89,13 +89,13 @@ var _chunkXVD5Y6S4cjs = require('./chunk-XVD5Y6S4.cjs');
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunkL7Z6OAE2cjs = require('./chunk-L7Z6OAE2.cjs');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var _chunkR6GOH5CHcjs = require('./chunk-R6GOH5CH.cjs');
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunk2T4GGCQTcjs = require('./chunk-2T4GGCQT.cjs');
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
@@ -148,7 +148,7 @@ var _chunkSIQPXYBBcjs = require('./chunk-SIQPXYBB.cjs');
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
var
|
|
151
|
+
var _chunkSJQ24IB5cjs = require('./chunk-SJQ24IB5.cjs');
|
|
152
152
|
|
|
153
153
|
|
|
154
154
|
|
|
@@ -321,7 +321,7 @@ var _chunkK6LZMZNBcjs = require('./chunk-K6LZMZNB.cjs');
|
|
|
321
321
|
var _chunkRFKPIAOFcjs = require('./chunk-RFKPIAOF.cjs');
|
|
322
322
|
|
|
323
323
|
|
|
324
|
-
var
|
|
324
|
+
var _chunkA4AYTO2Ecjs = require('./chunk-A4AYTO2E.cjs');
|
|
325
325
|
|
|
326
326
|
|
|
327
327
|
var _chunkG5KGLMPNcjs = require('./chunk-G5KGLMPN.cjs');
|
|
@@ -738,7 +738,7 @@ function findClientServerFnViolation(code, id) {
|
|
|
738
738
|
return null;
|
|
739
739
|
}
|
|
740
740
|
function createServerFnBoundaryDiagnostic(violation, id, location) {
|
|
741
|
-
return
|
|
741
|
+
return _chunkSJQ24IB5cjs.createFarmDiagnostic.call(void 0,
|
|
742
742
|
"CLIENT_SERVER_FUNCTION",
|
|
743
743
|
id,
|
|
744
744
|
`${violation.factory} handlers run only on the server, but this module is bundled into the client, so the handler and its Node-only imports would run in the browser.`,
|
|
@@ -998,21 +998,21 @@ function readPropertyKey(property) {
|
|
|
998
998
|
function createClientBoundaryDiagnostic(file, finding, location) {
|
|
999
999
|
switch (finding.kind) {
|
|
1000
1000
|
case "server-env":
|
|
1001
|
-
return
|
|
1001
|
+
return _chunkSJQ24IB5cjs.createFarmDiagnostic.call(void 0,
|
|
1002
1002
|
"CLIENT_SERVER_ENV",
|
|
1003
1003
|
file,
|
|
1004
1004
|
`process.env.${finding.name} is read at module scope in a module compiled for the browser, where it is undefined.`,
|
|
1005
1005
|
location
|
|
1006
1006
|
);
|
|
1007
1007
|
case "public-env":
|
|
1008
|
-
return
|
|
1008
|
+
return _chunkSJQ24IB5cjs.createFarmDiagnostic.call(void 0,
|
|
1009
1009
|
"CLIENT_PROCESS_ENV_PUBLIC",
|
|
1010
1010
|
file,
|
|
1011
1011
|
`process.env.${finding.name} is declared public, but process.env is not populated in the browser, so this module-scope read is undefined there.`,
|
|
1012
1012
|
location
|
|
1013
1013
|
);
|
|
1014
1014
|
case "builtin":
|
|
1015
|
-
return
|
|
1015
|
+
return _chunkSJQ24IB5cjs.createFarmDiagnostic.call(void 0,
|
|
1016
1016
|
"CLIENT_NODE_BUILTIN",
|
|
1017
1017
|
file,
|
|
1018
1018
|
`"${finding.name}" is imported into a module compiled for the browser, which gets a stub whose exports without a Web API equivalent are undefined.`,
|
|
@@ -1319,7 +1319,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1319
1319
|
return import("./workflows.cjs");
|
|
1320
1320
|
}
|
|
1321
1321
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1322
|
-
return import("./devtools-
|
|
1322
|
+
return import("./devtools-4LMM3DDJ.cjs");
|
|
1323
1323
|
}
|
|
1324
1324
|
function loadFarmDevtoolsUIRuntime() {
|
|
1325
1325
|
return import("./devtools-ui-TPBPQEEB.cjs");
|
|
@@ -1369,16 +1369,16 @@ var FARM_SERVER_ONLY_PACKAGE_ID = "\0farm:server-only";
|
|
|
1369
1369
|
var FARM_PLATFORM_ENTRY = "@farm.js/core/platform";
|
|
1370
1370
|
var FARM_PLATFORM_CLIENT_ID = "\0farm:platform-client";
|
|
1371
1371
|
var FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER = [
|
|
1372
|
-
|
|
1373
|
-
new RegExp(`^${
|
|
1372
|
+
_chunkBEAQVRMQcjs.exactIdPattern.call(void 0, [FARM_PLATFORM_ENTRY, SERVER_ONLY_PACKAGE, ...FARM_SERVER_ONLY_ENTRIES]),
|
|
1373
|
+
new RegExp(`^${_chunkSJQ24IB5cjs.FARM_RESOLVE_FROM_PREFIX}`),
|
|
1374
1374
|
// What isBuiltin() accepts: `node:` ids and the builtin names, subpaths such as fs/promises
|
|
1375
1375
|
// included.
|
|
1376
1376
|
/^node:/,
|
|
1377
|
-
|
|
1377
|
+
_chunkBEAQVRMQcjs.exactIdPattern.call(void 0, _module.builtinModules)
|
|
1378
1378
|
];
|
|
1379
1379
|
var FARM_SERVER_ONLY_ENTRIES_LOAD_FILTER = [
|
|
1380
|
-
|
|
1381
|
-
new RegExp(`^${
|
|
1380
|
+
_chunkBEAQVRMQcjs.exactIdPattern.call(void 0, [FARM_SERVER_ONLY_PACKAGE_ID, FARM_PLATFORM_CLIENT_ID]),
|
|
1381
|
+
new RegExp(`^${_chunkSJQ24IB5cjs.FARM_BROWSER_BUILTIN_PREFIX}`)
|
|
1382
1382
|
];
|
|
1383
1383
|
function createFarmPlatformClientModule(platform) {
|
|
1384
1384
|
return `export function platform() { return ${JSON.stringify(platform)}; }
|
|
@@ -1414,7 +1414,7 @@ function farmIslandContainersPlugin(config) {
|
|
|
1414
1414
|
// without calling into JavaScript.
|
|
1415
1415
|
filter: {
|
|
1416
1416
|
id: { include: /\.[jt]sx(?:$|\?)/, exclude: /\/node_modules\// },
|
|
1417
|
-
code:
|
|
1417
|
+
code: _chunkSJQ24IB5cjs.FARM_ISLAND_CONTAINER_TAG
|
|
1418
1418
|
},
|
|
1419
1419
|
handler(code, id) {
|
|
1420
1420
|
if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) !== "islands") {
|
|
@@ -1423,20 +1423,20 @@ function farmIslandContainersPlugin(config) {
|
|
|
1423
1423
|
if (id.startsWith("\0") || id.includes("/node_modules/") || !/\.[jt]sx(?:$|\?)/.test(id)) {
|
|
1424
1424
|
return null;
|
|
1425
1425
|
}
|
|
1426
|
-
if (
|
|
1427
|
-
if (!
|
|
1426
|
+
if (_chunkSJQ24IB5cjs.hasUseClientDirective.call(void 0, code)) return null;
|
|
1427
|
+
if (!_chunkSJQ24IB5cjs.FARM_ISLAND_CONTAINER_TAG.test(code)) return null;
|
|
1428
1428
|
const file = id.split("?", 1)[0];
|
|
1429
|
-
const inspect = () =>
|
|
1429
|
+
const inspect = () => _chunkSJQ24IB5cjs.getFarmClientRenderingBindings.call(void 0, code, file, root);
|
|
1430
1430
|
const bindings = farmApi ? farmApi.inspectPackages(inspect) : inspect();
|
|
1431
1431
|
if (bindings.length === 0) return null;
|
|
1432
|
-
const grown =
|
|
1432
|
+
const grown = _chunkSJQ24IB5cjs.wrapFarmIslandContainers.call(void 0, {
|
|
1433
1433
|
code,
|
|
1434
1434
|
file,
|
|
1435
1435
|
bindings,
|
|
1436
|
-
reference:
|
|
1436
|
+
reference: _chunkSJQ24IB5cjs.farmIslandContainerReferencePath.call(void 0, root)
|
|
1437
1437
|
});
|
|
1438
1438
|
if (grown === null) return null;
|
|
1439
|
-
|
|
1439
|
+
_chunkSJQ24IB5cjs.ensureFarmIslandContainerReference.call(void 0, root);
|
|
1440
1440
|
return { code: grown, map: null };
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
@@ -1451,18 +1451,18 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1451
1451
|
config(config) {
|
|
1452
1452
|
const appRoot = path6.resolve(_nullishCoalesce(config.root, () => ( process.cwd())));
|
|
1453
1453
|
if (options.distDir) {
|
|
1454
|
-
|
|
1454
|
+
_chunkSJQ24IB5cjs.usePackageScanCacheFile.call(void 0,
|
|
1455
1455
|
path6.resolve(appRoot, options.distDir, "cache", "package-scans.json")
|
|
1456
1456
|
);
|
|
1457
1457
|
}
|
|
1458
|
-
const bundledPackages =
|
|
1458
|
+
const bundledPackages = _chunkSJQ24IB5cjs.collectFarmServerBundledPackageInfo.call(void 0, appRoot);
|
|
1459
1459
|
const prebundle = options.prebundleServerPackages ? createFarmServerPrebundleConfig(bundledPackages) : {};
|
|
1460
|
-
|
|
1460
|
+
_chunkSJQ24IB5cjs.persistPackageScanCache.call(void 0, );
|
|
1461
1461
|
return {
|
|
1462
1462
|
optimizeDeps: {
|
|
1463
1463
|
// A package that defines fonts is served unbundled, so Farm's font compiler sees it.
|
|
1464
1464
|
exclude: bundledPackages.filter(({ fonts }) => fonts).map(({ name }) => name),
|
|
1465
|
-
rolldownOptions: { plugins: [
|
|
1465
|
+
rolldownOptions: { plugins: [_chunkSJQ24IB5cjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] }
|
|
1466
1466
|
},
|
|
1467
1467
|
ssr: {
|
|
1468
1468
|
noExternal: [
|
|
@@ -1488,8 +1488,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1488
1488
|
return FARM_SERVER_ONLY_PACKAGE_ID;
|
|
1489
1489
|
}
|
|
1490
1490
|
this.error(
|
|
1491
|
-
|
|
1492
|
-
|
|
1491
|
+
_chunkSJQ24IB5cjs.formatFarmDiagnostic.call(void 0,
|
|
1492
|
+
_chunkSJQ24IB5cjs.createFarmDiagnostic.call(void 0,
|
|
1493
1493
|
"CLIENT_SERVER_ONLY_IMPORT",
|
|
1494
1494
|
_nullishCoalesce(importer, () => ( "<unknown module>")),
|
|
1495
1495
|
`${importer ? "This module" : "A module"} imports "server-only", so it must not reach the browser, but client code imports it.`
|
|
@@ -1499,9 +1499,9 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1499
1499
|
);
|
|
1500
1500
|
}
|
|
1501
1501
|
if (!_optionalChain([options2, 'optionalAccess', _77 => _77.ssr]) && _module.isBuiltin.call(void 0, id)) {
|
|
1502
|
-
return
|
|
1502
|
+
return _chunkSJQ24IB5cjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
|
|
1503
1503
|
}
|
|
1504
|
-
const resolveFrom = importer ?
|
|
1504
|
+
const resolveFrom = importer ? _chunkSJQ24IB5cjs.parseFarmResolveFrom.call(void 0, id, importer.split("?", 1)[0]) : null;
|
|
1505
1505
|
if (resolveFrom) {
|
|
1506
1506
|
const directory = path6.dirname(resolveFrom.importer);
|
|
1507
1507
|
return this.resolve(resolveFrom.specifier, resolveFrom.importer, {
|
|
@@ -1518,8 +1518,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1518
1518
|
const importedBy = importer ? ` (imported by ${importer})` : "";
|
|
1519
1519
|
if (!_optionalChain([options2, 'optionalAccess', _78 => _78.ssr])) {
|
|
1520
1520
|
this.error(
|
|
1521
|
-
|
|
1522
|
-
|
|
1521
|
+
_chunkSJQ24IB5cjs.formatFarmDiagnostic.call(void 0,
|
|
1522
|
+
_chunkSJQ24IB5cjs.createFarmDiagnostic.call(void 0,
|
|
1523
1523
|
"CLIENT_SERVER_ONLY_ENTRY",
|
|
1524
1524
|
_nullishCoalesce(importer, () => ( id)),
|
|
1525
1525
|
`${id} is server-only and cannot be imported into client code.`
|
|
@@ -1542,9 +1542,9 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1542
1542
|
handler(id) {
|
|
1543
1543
|
if (id === FARM_SERVER_ONLY_PACKAGE_ID) return "export {};";
|
|
1544
1544
|
if (id === FARM_PLATFORM_CLIENT_ID) {
|
|
1545
|
-
return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => (
|
|
1545
|
+
return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunk5B2Y4EVScjs.resolveFarmPlatform.call(void 0, ))));
|
|
1546
1546
|
}
|
|
1547
|
-
return _nullishCoalesce(
|
|
1547
|
+
return _nullishCoalesce(_chunkSJQ24IB5cjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
1550
|
};
|
|
@@ -1650,7 +1650,7 @@ function sendFarmDevRuntimeHookError(res, json) {
|
|
|
1650
1650
|
res.end(json ? _chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY : "Internal Server Error");
|
|
1651
1651
|
}
|
|
1652
1652
|
function opensFarmDevRuntimeSession(pm) {
|
|
1653
|
-
return pm.hasRuntimeRequestHooks() ||
|
|
1653
|
+
return pm.hasRuntimeRequestHooks() || _chunkWAQIO2VDcjs.hasFarmServerRuntimePlugins.call(void 0, pm.getPlugins());
|
|
1654
1654
|
}
|
|
1655
1655
|
var FARM_CONFIG_ROUTE_PLUGIN_NAMES = /* @__PURE__ */ new Set([
|
|
1656
1656
|
_chunkQBMMQS25cjs.FARM_CONFIG_HEADERS_PLUGIN_NAME,
|
|
@@ -2160,7 +2160,7 @@ function transformIsolatedClientBoundaryModule(options) {
|
|
|
2160
2160
|
return null;
|
|
2161
2161
|
}
|
|
2162
2162
|
const body = Array.isArray(ast.body) ? ast.body : [];
|
|
2163
|
-
const everyExportIsComponent = options.code.includes(
|
|
2163
|
+
const everyExportIsComponent = options.code.includes(_chunkSJQ24IB5cjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunkSJQ24IB5cjs.FARM_CLIENT_REFERENCE_DIRECTORY);
|
|
2164
2164
|
const replacements = [];
|
|
2165
2165
|
const wrapperStatements = [];
|
|
2166
2166
|
const originalEntries = [];
|
|
@@ -2315,16 +2315,16 @@ async function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
2315
2315
|
for (const finding of analyzeClientBoundary(program, publicKeys)) {
|
|
2316
2316
|
if (finding.kind === "builtin" && !finding.name.startsWith("node:")) {
|
|
2317
2317
|
const resolved = await context.resolve(finding.name, id).catch(() => null);
|
|
2318
|
-
if (!_optionalChain([resolved, 'optionalAccess', _105 => _105.id, 'access', _106 => _106.startsWith, 'call', _107 => _107(
|
|
2318
|
+
if (!_optionalChain([resolved, 'optionalAccess', _105 => _105.id, 'access', _106 => _106.startsWith, 'call', _107 => _107(_chunkSJQ24IB5cjs.FARM_BROWSER_BUILTIN_PREFIX)])) continue;
|
|
2319
2319
|
}
|
|
2320
2320
|
findings.push(finding);
|
|
2321
2321
|
}
|
|
2322
2322
|
if (findings.length === 0) return;
|
|
2323
2323
|
warnedClientBoundaryIds.add(id);
|
|
2324
|
-
const locate =
|
|
2324
|
+
const locate = _chunkSJQ24IB5cjs.createFarmSourceLocator.call(void 0, code, () => context.getCombinedSourcemap());
|
|
2325
2325
|
_chunk7ZDLE77Pcjs.logger.warn(
|
|
2326
2326
|
findings.map(
|
|
2327
|
-
(finding) =>
|
|
2327
|
+
(finding) => _chunkSJQ24IB5cjs.formatFarmDiagnostic.call(void 0,
|
|
2328
2328
|
createClientBoundaryDiagnostic(id, finding, locate(finding.start)),
|
|
2329
2329
|
config.root
|
|
2330
2330
|
)
|
|
@@ -2366,6 +2366,11 @@ function toFarmRuntimeModuleId(specifier) {
|
|
|
2366
2366
|
function getFarmCoreFile() {
|
|
2367
2367
|
return typeof __filename === "string" ? __filename : _url.fileURLToPath.call(void 0, _chunkUGL4BDNBcjs.define_import_meta_default.url);
|
|
2368
2368
|
}
|
|
2369
|
+
var farmCoreModuleDirectory;
|
|
2370
|
+
function isFarmCoreModule(id) {
|
|
2371
|
+
_nullishCoalesce(farmCoreModuleDirectory, () => ( (farmCoreModuleDirectory = `${_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, path6.dirname(getFarmCoreFile()))}/`)));
|
|
2372
|
+
return _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, id.split("?", 1)[0]).startsWith(farmCoreModuleDirectory);
|
|
2373
|
+
}
|
|
2369
2374
|
var FARM_SOURCE_ALIAS_PROBES = [
|
|
2370
2375
|
"@/x",
|
|
2371
2376
|
"@/index.ts",
|
|
@@ -2390,12 +2395,12 @@ function hasFarmSourceAliasOverride(alias) {
|
|
|
2390
2395
|
function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
2391
2396
|
const rendererDisabled = _chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, options.renderer);
|
|
2392
2397
|
const imageImports = farmImageImportsPlugin();
|
|
2393
|
-
const fontImports =
|
|
2398
|
+
const fontImports = _chunkBEAQVRMQcjs.farmFontImportsPlugin.call(void 0, {
|
|
2394
2399
|
root: options.root,
|
|
2395
2400
|
basePath: options.basePath,
|
|
2396
2401
|
publicDir: options.publicDir,
|
|
2397
2402
|
// A production build never starts the app, so it reads the directories from these options.
|
|
2398
|
-
isLayoutModule: (id) =>
|
|
2403
|
+
isLayoutModule: (id) => _chunkBEAQVRMQcjs.isFarmLayoutModule.call(void 0, id, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _110 => _110.getConfig, 'call', _111 => _111()]), () => ( options))))
|
|
2399
2404
|
});
|
|
2400
2405
|
let farmApp;
|
|
2401
2406
|
const isFarmGeneratedOutput = (file) => {
|
|
@@ -2426,8 +2431,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2426
2431
|
if (mdxComponents) files.add(mdxComponents);
|
|
2427
2432
|
return files;
|
|
2428
2433
|
};
|
|
2429
|
-
const islxActionsMode = () =>
|
|
2430
|
-
const islandsServerFns = () =>
|
|
2434
|
+
const islxActionsMode = () => _chunkBEAQVRMQcjs.resolveFarmIslxActionsMode.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _117 => _117.getConfig, 'call', _118 => _118()]), () => ( options)));
|
|
2435
|
+
const islandsServerFns = () => _chunkBEAQVRMQcjs.farmBrowserServerFnsEnabled.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _119 => _119.getConfig, 'call', _120 => _120()]), () => ( options)));
|
|
2431
2436
|
let reactRefreshActive = false;
|
|
2432
2437
|
let server;
|
|
2433
2438
|
let deferredGates;
|
|
@@ -2457,7 +2462,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2457
2462
|
console.log(log);
|
|
2458
2463
|
};
|
|
2459
2464
|
const getProgrammaticClientRoutes = () => _nullishCoalesce(options.programmaticClientRoutes, () => ( _optionalChain([farmApp, 'optionalAccess', _121 => _121.getRouteManager, 'call', _122 => _122(), 'access', _123 => _123.getProgrammaticClientRoutes, 'call', _124 => _124()])));
|
|
2460
|
-
const inBuildPackageCache =
|
|
2465
|
+
const inBuildPackageCache = _chunkSJQ24IB5cjs.bindPackageClientBoundaryCache.call(void 0, );
|
|
2461
2466
|
const inspectPackages = (operation) => {
|
|
2462
2467
|
const routeManager = _optionalChain([farmApp, 'optionalAccess', _125 => _125.getRouteManager, 'call', _126 => _126()]);
|
|
2463
2468
|
return inBuildPackageCache(
|
|
@@ -2480,11 +2485,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2480
2485
|
isBuild = configEnv.command === "build";
|
|
2481
2486
|
const farmAliases = {
|
|
2482
2487
|
..._chunkPFVNPOKNcjs.getFarmLayerAliases.call(void 0, options.layers),
|
|
2483
|
-
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _132 => _132.resolve, 'optionalAccess', _133 => _133.alias])) ? {} :
|
|
2488
|
+
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _132 => _132.resolve, 'optionalAccess', _133 => _133.alias])) ? {} : _chunkBEAQVRMQcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir)
|
|
2484
2489
|
};
|
|
2485
2490
|
if (Object.keys(farmAliases).length > 0) {
|
|
2486
2491
|
_nullishCoalesce(userConfig.resolve, () => ( (userConfig.resolve = {})));
|
|
2487
|
-
userConfig.resolve.alias =
|
|
2492
|
+
userConfig.resolve.alias = _chunkBEAQVRMQcjs.mergeFarmViteAlias.call(void 0, farmAliases, userConfig.resolve.alias);
|
|
2488
2493
|
}
|
|
2489
2494
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
2490
2495
|
farmOwnsDevCors = !isBuild && _optionalChain([userConfig, 'access', _134 => _134.server, 'optionalAccess', _135 => _135.cors]) === void 0;
|
|
@@ -2524,7 +2529,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2524
2529
|
serverFnTransformActive = config.plugins.some(
|
|
2525
2530
|
(plugin2) => plugin2.name === SERVER_FN_TRANSFORM_PLUGIN
|
|
2526
2531
|
);
|
|
2527
|
-
reactRefreshActive =
|
|
2532
|
+
reactRefreshActive = _chunk5RYBQKBYcjs.isFarmReactRefreshActive.call(void 0, config);
|
|
2528
2533
|
if (_optionalChain([options, 'access', _141 => _141.experimental, 'optionalAccess', _142 => _142.serverActions]) === true && !serverFnTransformActive && !islandsServerFns()) {
|
|
2529
2534
|
_chunk7ZDLE77Pcjs.logger.warn(
|
|
2530
2535
|
"experimental.serverActions has no effect without @farm.js/plugin/rsc in the Vite plugins. Server functions stay server-only, and importing one from client code is a build error."
|
|
@@ -2558,7 +2563,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2558
2563
|
} catch (e21) {
|
|
2559
2564
|
}
|
|
2560
2565
|
};
|
|
2561
|
-
farmApp = new (0,
|
|
2566
|
+
farmApp = new (0, _chunkBEAQVRMQcjs.FarmApp)(
|
|
2562
2567
|
{
|
|
2563
2568
|
...options,
|
|
2564
2569
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -2566,7 +2571,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2566
2571
|
server
|
|
2567
2572
|
);
|
|
2568
2573
|
farmApp.getRouteManager().usePackageClientBoundaryCacheFile(
|
|
2569
|
-
|
|
2574
|
+
_chunkSJQ24IB5cjs.resolvePackageClientBoundaryCacheFile.call(void 0,
|
|
2570
2575
|
farmApp.getConfig().root,
|
|
2571
2576
|
options.distDir || ".farm"
|
|
2572
2577
|
)
|
|
@@ -2577,7 +2582,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2577
2582
|
let farmAppPackages;
|
|
2578
2583
|
if (_optionalChain([farmConfig, 'access', _157 => _157.agent, 'optionalAccess', _158 => _158.noindexPreviews])) {
|
|
2579
2584
|
farmMiddlewares.use((_req, res, next) => {
|
|
2580
|
-
if (
|
|
2585
|
+
if (_chunk2T4GGCQTcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
2581
2586
|
res.setHeader("X-Robots-Tag", _chunkERSLQ4C7cjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
2582
2587
|
}
|
|
2583
2588
|
next();
|
|
@@ -2585,7 +2590,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2585
2590
|
}
|
|
2586
2591
|
const apiServerBasePath = _chunkH5AC3XSEcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
|
|
2587
2592
|
const devBuiltInRoutePaths = new Set(
|
|
2588
|
-
|
|
2593
|
+
_chunkL7Z6OAE2cjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
2589
2594
|
agent: {
|
|
2590
2595
|
apiCatalog: true,
|
|
2591
2596
|
mcp: true,
|
|
@@ -2942,7 +2947,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2942
2947
|
rendererServer: farmConfig.renderer.server,
|
|
2943
2948
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2944
2949
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2945
|
-
globalStylesheetHref:
|
|
2950
|
+
globalStylesheetHref: _chunkBEAQVRMQcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2946
2951
|
farmConfig.root,
|
|
2947
2952
|
farmConfig.srcDir
|
|
2948
2953
|
),
|
|
@@ -2973,7 +2978,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2973
2978
|
fontAssets: _chunkQTGYT2DFcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2974
2979
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2975
2980
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2976
|
-
globalStylesheetHref:
|
|
2981
|
+
globalStylesheetHref: _chunkBEAQVRMQcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2977
2982
|
farmConfig.root,
|
|
2978
2983
|
farmConfig.srcDir
|
|
2979
2984
|
),
|
|
@@ -3010,9 +3015,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3010
3015
|
}
|
|
3011
3016
|
const farmInfraAnalyticsPlugin = _optionalChain([pm, 'optionalAccess', _200 => _200.getPlugins, 'call', _201 => _201(), 'access', _202 => _202.find, 'call', _203 => _203((plugin2) => plugin2.name === "farm:infra-analytics")]);
|
|
3012
3017
|
if (farmInfraAnalyticsPlugin) {
|
|
3013
|
-
|
|
3018
|
+
_chunk5AOARZJTcjs._setFarmInfraAnalyticsWebMCPRoute.call(void 0, farmInfraAnalyticsPlugin, async (pathname) => {
|
|
3014
3019
|
if (farmDocsDevRuntime) {
|
|
3015
|
-
const label =
|
|
3020
|
+
const label = _chunkL7Z6OAE2cjs.resolveFarmDocsRouteLabel.call(void 0,
|
|
3016
3021
|
_chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, pathname, farmConfig.basePath),
|
|
3017
3022
|
{
|
|
3018
3023
|
path: _optionalChain([farmConfig, 'access', _204 => _204.docs, 'optionalAccess', _205 => _205.entry]) || "/docs",
|
|
@@ -3020,7 +3025,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3020
3025
|
pages: await getFarmDocsPagePaths()
|
|
3021
3026
|
}
|
|
3022
3027
|
);
|
|
3023
|
-
if (label) return
|
|
3028
|
+
if (label) return _chunkL7Z6OAE2cjs.setFarmRouteLabel.call(void 0, { pathname }, label);
|
|
3024
3029
|
}
|
|
3025
3030
|
const match = farmApp.getRouteManager().matchRoute(pathname);
|
|
3026
3031
|
return { pathname, pattern: _optionalChain([match, 'access', _210 => _210.route, 'optionalAccess', _211 => _211.pattern]) || null };
|
|
@@ -3184,7 +3189,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3184
3189
|
if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === _chunkO7B6LJWEcjs.FARM_VIDEO_PLAYER_PATH) {
|
|
3185
3190
|
res.statusCode = 200;
|
|
3186
3191
|
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
3187
|
-
res.end(requestMethod === "HEAD" ? void 0 :
|
|
3192
|
+
res.end(requestMethod === "HEAD" ? void 0 : _chunkBEAQVRMQcjs.FARM_VIDEO_PLAYER_HTML);
|
|
3188
3193
|
return;
|
|
3189
3194
|
}
|
|
3190
3195
|
const farmDocsFontPath = farmDocsFontAssets.get(requestPathname);
|
|
@@ -3464,9 +3469,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3464
3469
|
if (pm && opensFarmDevRuntimeSession(pm)) {
|
|
3465
3470
|
try {
|
|
3466
3471
|
const routePathname = _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
3467
|
-
const route =
|
|
3472
|
+
const route = _chunkL7Z6OAE2cjs.setFarmRouteLabel.call(void 0,
|
|
3468
3473
|
{ pathname: requestPathname },
|
|
3469
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
3474
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunkL7Z6OAE2cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
3470
3475
|
);
|
|
3471
3476
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
3472
3477
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
@@ -3555,7 +3560,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3555
3560
|
);
|
|
3556
3561
|
return;
|
|
3557
3562
|
}
|
|
3558
|
-
if (_optionalChain([options, 'access', _246 => _246.agent, 'optionalAccess', _247 => _247.manifest]) !== false &&
|
|
3563
|
+
if (_optionalChain([options, 'access', _246 => _246.agent, 'optionalAccess', _247 => _247.manifest]) !== false && _chunkL7Z6OAE2cjs.isFarmAppManifestPath.call(void 0, _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
3559
3564
|
const manifestGuardCoversPath = (path7) => _chunkIGBQSUT5cjs.farmPathGuardCoversEndpoint.call(void 0,
|
|
3560
3565
|
{
|
|
3561
3566
|
config: farmConfig,
|
|
@@ -3565,18 +3570,18 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3565
3570
|
apiServerBasePath
|
|
3566
3571
|
);
|
|
3567
3572
|
await serveBuiltInRoute(async () => {
|
|
3568
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
3569
|
-
const manifest = await
|
|
3573
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkBEAQVRMQcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
3574
|
+
const manifest = await _chunkL7Z6OAE2cjs.createFarmAppManifestResponse.call(void 0,
|
|
3570
3575
|
new Request(parsedRequestUrl, {
|
|
3571
3576
|
method: requestMethod,
|
|
3572
3577
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
3573
3578
|
}),
|
|
3574
3579
|
{
|
|
3575
|
-
...
|
|
3580
|
+
..._chunkL7Z6OAE2cjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
3576
3581
|
build: "development",
|
|
3577
3582
|
packages: farmAppPackages,
|
|
3578
3583
|
// Read again on each request; unchanged files come from a cache.
|
|
3579
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _248 => _248.plugins, 'optionalAccess', _249 => _249.some, 'call', _250 => _250(({ name }) => name === "farm:webmcp")]) ?
|
|
3584
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _248 => _248.plugins, 'optionalAccess', _249 => _249.some, 'call', _250 => _250(({ name }) => name === "farm:webmcp")]) ? _chunkBEAQVRMQcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
3580
3585
|
}),
|
|
3581
3586
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
3582
3587
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -3594,11 +3599,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3594
3599
|
});
|
|
3595
3600
|
return;
|
|
3596
3601
|
}
|
|
3597
|
-
if (_optionalChain([options, 'access', _251 => _251.agent, 'optionalAccess', _252 => _252.apiCatalog]) && _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
3602
|
+
if (_optionalChain([options, 'access', _251 => _251.agent, 'optionalAccess', _252 => _252.apiCatalog]) && _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunkL7Z6OAE2cjs.FARM_API_CATALOG_PATH) {
|
|
3598
3603
|
await serveBuiltInRoute(
|
|
3599
|
-
() =>
|
|
3604
|
+
() => _chunkL7Z6OAE2cjs.createFarmApiCatalogResponse.call(void 0,
|
|
3600
3605
|
requestMethod,
|
|
3601
|
-
|
|
3606
|
+
_chunkL7Z6OAE2cjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
3602
3607
|
new Request(parsedRequestUrl, {
|
|
3603
3608
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
3604
3609
|
})
|
|
@@ -3607,7 +3612,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3607
3612
|
return;
|
|
3608
3613
|
}
|
|
3609
3614
|
if (_optionalChain([options, 'access', _253 => _253.agent, 'optionalAccess', _254 => _254.aiCatalog]) !== false) {
|
|
3610
|
-
const aiCatalog =
|
|
3615
|
+
const aiCatalog = _chunkL7Z6OAE2cjs.createFarmAiCatalogResponse.call(void 0,
|
|
3611
3616
|
new Request(parsedRequestUrl, {
|
|
3612
3617
|
method: requestMethod,
|
|
3613
3618
|
headers: {
|
|
@@ -3694,7 +3699,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3694
3699
|
{
|
|
3695
3700
|
kind: "docs",
|
|
3696
3701
|
computed: docsResponse,
|
|
3697
|
-
label:
|
|
3702
|
+
label: _chunkL7Z6OAE2cjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
3698
3703
|
_chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
3699
3704
|
{
|
|
3700
3705
|
path: _optionalChain([farmConfig, 'access', _265 => _265.docs, 'optionalAccess', _266 => _266.entry]) || "/docs",
|
|
@@ -3731,7 +3736,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3731
3736
|
}
|
|
3732
3737
|
const markdownRouteLabel = () => (
|
|
3733
3738
|
// On the route path, as production labels it: /fr/index.md is /index.md.
|
|
3734
|
-
|
|
3739
|
+
_chunkL7Z6OAE2cjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
3735
3740
|
toRoutePathname(requestPathname),
|
|
3736
3741
|
(page) => _optionalChain([farmApp, 'access', _281 => _281.getRouteManager, 'call', _282 => _282(), 'access', _283 => _283.matchRoute, 'call', _284 => _284(page), 'access', _285 => _285.route, 'optionalAccess', _286 => _286.pattern])
|
|
3737
3742
|
)
|
|
@@ -3752,7 +3757,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3752
3757
|
return {
|
|
3753
3758
|
source: await fs2.promises.readFile(sourcePath, "utf8"),
|
|
3754
3759
|
// Project-relative, as production sends it: never the machine's path.
|
|
3755
|
-
filePath:
|
|
3760
|
+
filePath: _chunkBEAQVRMQcjs.toBakedMarkdownSourcePath.call(void 0, farmApp.getConfig().root, sourcePath)
|
|
3756
3761
|
};
|
|
3757
3762
|
},
|
|
3758
3763
|
// The anonymous check goes through this server, so its guards and
|
|
@@ -4095,9 +4100,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4095
4100
|
);
|
|
4096
4101
|
const docsRuntimeOptions = () => ({
|
|
4097
4102
|
kind: "docs",
|
|
4098
|
-
route:
|
|
4103
|
+
route: _chunkL7Z6OAE2cjs.setFarmRouteLabel.call(void 0,
|
|
4099
4104
|
{ pathname: pathname2, pattern: urlPath2 },
|
|
4100
|
-
|
|
4105
|
+
_chunkL7Z6OAE2cjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
4101
4106
|
path: _optionalChain([farmConfig, 'access', _298 => _298.docs, 'optionalAccess', _299 => _299.entry]) || "/docs",
|
|
4102
4107
|
roots: _optionalChain([farmConfig, 'access', _300 => _300.docs, 'optionalAccess', _301 => _301.roots, 'optionalAccess', _302 => _302.map, 'call', _303 => _303((root) => root.entry)])
|
|
4103
4108
|
})
|
|
@@ -4451,7 +4456,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4451
4456
|
);
|
|
4452
4457
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
4453
4458
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
4454
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
4459
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkSJQ24IB5cjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
4455
4460
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
4456
4461
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
4457
4462
|
let mergedMetadata = {};
|
|
@@ -4462,7 +4467,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4462
4467
|
(layout) => _nullishCoalesce(navigationManifest.layouts.find(
|
|
4463
4468
|
(entry) => entry.pattern === layout.pattern
|
|
4464
4469
|
), () => ( {
|
|
4465
|
-
...
|
|
4470
|
+
..._chunkSJQ24IB5cjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root),
|
|
4466
4471
|
serverTree: false
|
|
4467
4472
|
}))
|
|
4468
4473
|
);
|
|
@@ -4477,7 +4482,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4477
4482
|
];
|
|
4478
4483
|
const hydrationIslandStrategy = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0,
|
|
4479
4484
|
_chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _326 => _326.getConfig, 'call', _327 => _327()]), () => ( options)))
|
|
4480
|
-
) === "islands" ?
|
|
4485
|
+
) === "islands" ? _chunkBEAQVRMQcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
4481
4486
|
route,
|
|
4482
4487
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
4483
4488
|
layouts.map((layout, index) => ({
|
|
@@ -4543,7 +4548,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4543
4548
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
4544
4549
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
4545
4550
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
4546
|
-
), () => (
|
|
4551
|
+
), () => ( _chunkSJQ24IB5cjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
4547
4552
|
const slotContext = await _chunkYZMSJRM5cjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
4548
4553
|
request: targetRequest,
|
|
4549
4554
|
params: slot.params,
|
|
@@ -4728,7 +4733,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4728
4733
|
const hasRuntimeAfterHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _345 => _345.hasRuntimeHook, 'call', _346 => _346("after")]), () => ( false));
|
|
4729
4734
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
4730
4735
|
const routePathname = _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
4731
|
-
const mcpLabel =
|
|
4736
|
+
const mcpLabel = _chunkL7Z6OAE2cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
4732
4737
|
if (mcpLabel) return mcpLabel;
|
|
4733
4738
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
4734
4739
|
return routePathname === _chunkR6GOH5CHcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkR6GOH5CHcjs.FARM_DEFAULT_MCP_PATH : null;
|
|
@@ -4737,7 +4742,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4737
4742
|
const match = routeManager2.matchRoute(pathname2);
|
|
4738
4743
|
return {
|
|
4739
4744
|
kind: "page",
|
|
4740
|
-
route:
|
|
4745
|
+
route: _chunkL7Z6OAE2cjs.setFarmRouteLabel.call(void 0,
|
|
4741
4746
|
{
|
|
4742
4747
|
pathname: pathname2,
|
|
4743
4748
|
pattern: _optionalChain([match, 'optionalAccess', _347 => _347.route, 'optionalAccess', _348 => _348.pattern]) || null,
|
|
@@ -5001,7 +5006,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
5001
5006
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
5002
5007
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkVZ2P6GRCcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
5003
5008
|
const integrationProviders = _chunkN4AM7Q34cjs.getIntegrationProviders.call(void 0, integrations);
|
|
5004
|
-
const isolatedHydrationMode =
|
|
5009
|
+
const isolatedHydrationMode = _chunkSJQ24IB5cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
5005
5010
|
_optionalChain([resolvedConfig, 'optionalAccess', _391 => _391.experimental, 'optionalAccess', _392 => _392.isolatedClientHydration]),
|
|
5006
5011
|
{
|
|
5007
5012
|
serverComponents: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, resolvedConfig)) === "rsc",
|
|
@@ -5026,8 +5031,8 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
5026
5031
|
isolatedHydrationMode === "enabled" || _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _399 => _399.getRouteManager, 'call', _400 => _400(), 'access', _401 => _401.getIsolatedClientBoundaryModules, 'call', _402 => _402(root)])))), 'optionalAccess', _403 => _403.size]) > 0,
|
|
5027
5032
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _404 => _404.trailingSlash]), () => ( false)),
|
|
5028
5033
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _405 => _405.basePath]), () => ( "/")),
|
|
5029
|
-
|
|
5030
|
-
|
|
5034
|
+
_chunkBEAQVRMQcjs.generateClientCachePersistenceCode.call(void 0,
|
|
5035
|
+
_chunkBEAQVRMQcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _406 => _406.cache]))
|
|
5031
5036
|
),
|
|
5032
5037
|
adapterOwnsDocsRuntime ? _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
5033
5038
|
_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, resolvedConfig)) === "islands"
|
|
@@ -5049,11 +5054,11 @@ export const getManifest = () => ({
|
|
|
5049
5054
|
});
|
|
5050
5055
|
`;
|
|
5051
5056
|
}
|
|
5052
|
-
const globalStylesheetHref =
|
|
5057
|
+
const globalStylesheetHref = _chunkBEAQVRMQcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
5053
5058
|
server.config.root,
|
|
5054
5059
|
_optionalChain([farmApp, 'optionalAccess', _409 => _409.getConfig, 'call', _410 => _410(), 'access', _411 => _411.srcDir])
|
|
5055
5060
|
);
|
|
5056
|
-
const fullManifest =
|
|
5061
|
+
const fullManifest = _chunkBEAQVRMQcjs.createFarmDevClientManifest.call(void 0,
|
|
5057
5062
|
routeManager.generateClientManifest(server.config.root),
|
|
5058
5063
|
{
|
|
5059
5064
|
sharedAssets: globalStylesheetHref ? [{ tag: "link", attrs: { rel: "stylesheet", href: globalStylesheetHref } }] : []
|
|
@@ -5075,45 +5080,45 @@ export { manifest };
|
|
|
5075
5080
|
const runtimeModule = !isBuild && _optionalChain([transformOptions, 'optionalAccess', _413 => _413.ssr]) === true && isOutsideAppRoot(id) ? toFarmRuntimeModuleId : void 0;
|
|
5076
5081
|
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _414 => _414.getConfig, 'call', _415 => _415()]), () => ( options));
|
|
5077
5082
|
let rewrotePackageImports = false;
|
|
5078
|
-
if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, actionConfig)) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _416 => _416.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !
|
|
5083
|
+
if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, actionConfig)) === "islands" && (!id.includes("/node_modules/") && !isFarmCoreModule(id) || _optionalChain([transformOptions, 'optionalAccess', _416 => _416.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunkSJQ24IB5cjs.hasUseClientDirective.call(void 0, code)) {
|
|
5079
5084
|
const file = id.split("?", 1)[0];
|
|
5080
5085
|
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _417 => _417.config, 'access', _418 => _418.root]) || process.cwd();
|
|
5081
5086
|
const buildSnapshot = isBuild ? options.sourceSnapshot : void 0;
|
|
5082
5087
|
const rewrite = () => {
|
|
5083
5088
|
if (_optionalChain([transformOptions, 'optionalAccess', _419 => _419.ssr]) === true) {
|
|
5084
5089
|
if (farmReactServerFiles.has(file)) {
|
|
5085
|
-
for (const child of
|
|
5090
|
+
for (const child of _chunkSJQ24IB5cjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
5086
5091
|
farmReactServerFiles.add(child);
|
|
5087
5092
|
}
|
|
5088
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
5093
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunkSJQ24IB5cjs.getFarmClientReachableModules.call(void 0,
|
|
5089
5094
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
5090
5095
|
projectRoot
|
|
5091
5096
|
).has(path6.resolve(file));
|
|
5092
|
-
const reactServer = !serverModule ? null :
|
|
5097
|
+
const reactServer = !serverModule ? null : _chunkSJQ24IB5cjs.rewriteFarmReactServerImports.call(void 0, {
|
|
5093
5098
|
code,
|
|
5094
5099
|
file,
|
|
5095
|
-
reference: (specifier, exportName) =>
|
|
5100
|
+
reference: (specifier, exportName) => _chunkSJQ24IB5cjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
|
|
5096
5101
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
5097
5102
|
});
|
|
5098
5103
|
if (reactServer !== null) {
|
|
5099
5104
|
code = reactServer;
|
|
5100
5105
|
rewrotePackageImports = true;
|
|
5101
5106
|
}
|
|
5102
|
-
const internal = farmReactServerFiles.has(file) ?
|
|
5107
|
+
const internal = farmReactServerFiles.has(file) ? _chunkSJQ24IB5cjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
|
|
5103
5108
|
code,
|
|
5104
5109
|
file,
|
|
5105
|
-
reference: (clientFile) =>
|
|
5110
|
+
reference: (clientFile) => _chunkSJQ24IB5cjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
|
|
5106
5111
|
}) : null;
|
|
5107
5112
|
if (internal !== null) {
|
|
5108
5113
|
code = internal;
|
|
5109
5114
|
rewrotePackageImports = true;
|
|
5110
5115
|
}
|
|
5111
5116
|
}
|
|
5112
|
-
const rewritePackageImports = (source2) =>
|
|
5117
|
+
const rewritePackageImports = (source2) => _chunkSJQ24IB5cjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
5113
5118
|
code: source2,
|
|
5114
5119
|
file,
|
|
5115
5120
|
root: projectRoot,
|
|
5116
|
-
isClientPackage: (specifier) =>
|
|
5121
|
+
isClientPackage: (specifier) => _chunkSJQ24IB5cjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
5117
5122
|
});
|
|
5118
5123
|
const source = code;
|
|
5119
5124
|
const referenced = inspectPackages(() => rewritePackageImports(source));
|
|
@@ -5133,7 +5138,7 @@ export { manifest };
|
|
|
5133
5138
|
}
|
|
5134
5139
|
}
|
|
5135
5140
|
};
|
|
5136
|
-
if (buildSnapshot)
|
|
5141
|
+
if (buildSnapshot) _chunkSJQ24IB5cjs.withFarmSourceSnapshotOf.call(void 0, buildSnapshot, rewrite);
|
|
5137
5142
|
else rewrite();
|
|
5138
5143
|
}
|
|
5139
5144
|
if (islandsServerFns() && !_chunk7O3YJ6NPcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
@@ -5162,8 +5167,8 @@ export { manifest };
|
|
|
5162
5167
|
}
|
|
5163
5168
|
if (!_optionalChain([transformOptions, 'optionalAccess', _426 => _426.ssr])) {
|
|
5164
5169
|
const docsConfigModule = _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _427 => _427.getConfig, 'call', _428 => _428(), 'optionalAccess', _429 => _429.docs]));
|
|
5165
|
-
if (
|
|
5166
|
-
const redacted =
|
|
5170
|
+
if (_chunkBEAQVRMQcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
5171
|
+
const redacted = _chunkBEAQVRMQcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
5167
5172
|
if (redacted !== null) return { code: redacted, map: null };
|
|
5168
5173
|
}
|
|
5169
5174
|
}
|
|
@@ -5172,9 +5177,9 @@ export { manifest };
|
|
|
5172
5177
|
if ((_optionalChain([currentConfig, 'access', _433 => _433.experimental, 'optionalAccess', _434 => _434.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
|
|
5173
5178
|
const violation = findClientServerFnViolation(code, id);
|
|
5174
5179
|
if (violation) {
|
|
5175
|
-
const locate =
|
|
5180
|
+
const locate = _chunkSJQ24IB5cjs.createFarmSourceLocator.call(void 0, code, () => this.getCombinedSourcemap());
|
|
5176
5181
|
this.error(
|
|
5177
|
-
|
|
5182
|
+
_chunkSJQ24IB5cjs.formatFarmDiagnostic.call(void 0,
|
|
5178
5183
|
createServerFnBoundaryDiagnostic(violation, id, locate(violation.start)),
|
|
5179
5184
|
currentConfig.root
|
|
5180
5185
|
)
|
|
@@ -5216,13 +5221,13 @@ export { manifest };
|
|
|
5216
5221
|
transformed = true;
|
|
5217
5222
|
}
|
|
5218
5223
|
}
|
|
5219
|
-
if (
|
|
5224
|
+
if (_chunkSJQ24IB5cjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
5220
5225
|
const clientBoundarySource = transformedCode;
|
|
5221
5226
|
const moduleInfo = this.getModuleInfo(id);
|
|
5222
5227
|
if (moduleInfo) {
|
|
5223
5228
|
moduleInfo.isClientComponent = true;
|
|
5224
5229
|
}
|
|
5225
|
-
transformedCode =
|
|
5230
|
+
transformedCode = _chunkSJQ24IB5cjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
5226
5231
|
transformed = true;
|
|
5227
5232
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _442 => _442.getConfig, 'call', _443 => _443()]), () => ( options));
|
|
5228
5233
|
let isolatedModuleReference = null;
|
|
@@ -5231,12 +5236,12 @@ export { manifest };
|
|
|
5231
5236
|
const cleanId = id.split("?", 1)[0];
|
|
5232
5237
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _446 => _446.getRouteManager, 'call', _447 => _447(), 'access', _448 => _448.getIsolatedClientBoundaryModules, 'call', _449 => _449(root)])));
|
|
5233
5238
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _450 => _450.has, 'call', _451 => _451(path6.resolve(cleanId))]) === true;
|
|
5234
|
-
if (_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (
|
|
5235
|
-
cleanId.replace(/\\/g, "/").includes(
|
|
5239
|
+
if (_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunkSJQ24IB5cjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
|
|
5240
|
+
cleanId.replace(/\\/g, "/").includes(_chunkSJQ24IB5cjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
5236
5241
|
isolatedModuleReference = _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, cleanId, root);
|
|
5237
5242
|
const islandsMode = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, currentConfig)) === "islands";
|
|
5238
|
-
const explicitStrategy =
|
|
5239
|
-
const inference = islandsMode && explicitStrategy === null ?
|
|
5243
|
+
const explicitStrategy = _chunkSJQ24IB5cjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
|
|
5244
|
+
const inference = islandsMode && explicitStrategy === null ? _chunkBEAQVRMQcjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
|
|
5240
5245
|
if (inference) {
|
|
5241
5246
|
for (const file of inference.files) {
|
|
5242
5247
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -5259,14 +5264,14 @@ export { manifest };
|
|
|
5259
5264
|
);
|
|
5260
5265
|
}
|
|
5261
5266
|
transformedCode = transformedBoundary;
|
|
5262
|
-
} else if (selectedForIsolatedHydration && _chunkGUYGMTWAcjs.usesFarmRendererIslands.call(void 0, currentConfig) && (
|
|
5267
|
+
} else if (selectedForIsolatedHydration && _chunkGUYGMTWAcjs.usesFarmRendererIslands.call(void 0, currentConfig) && (_chunkSJQ24IB5cjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || cleanId.replace(/\\/g, "/").includes(_chunkSJQ24IB5cjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
5263
5268
|
rendererIslandModule = true;
|
|
5264
5269
|
if (_optionalChain([transformOptions, 'optionalAccess', _454 => _454.ssr]) === true) {
|
|
5265
5270
|
const renderer = _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer);
|
|
5266
5271
|
const transformedBoundary = transformIsolatedClientBoundaryModule({
|
|
5267
5272
|
code: transformedCode,
|
|
5268
5273
|
moduleReference: _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, cleanId, root),
|
|
5269
|
-
islandStrategy: _nullishCoalesce(
|
|
5274
|
+
islandStrategy: _nullishCoalesce(_chunkSJQ24IB5cjs.getIslandStrategyExport.call(void 0, clientBoundarySource), () => ( "load")),
|
|
5270
5275
|
parse: (source) => this.parse(source),
|
|
5271
5276
|
withIsland: renderer.server
|
|
5272
5277
|
});
|
|
@@ -5450,10 +5455,10 @@ if (import.meta.hot) {
|
|
|
5450
5455
|
const watched = _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, id);
|
|
5451
5456
|
const appSource = !watched.includes("/node_modules/") && !isFarmGeneratedOutput(watched);
|
|
5452
5457
|
if (appSource) _optionalChain([farmApp, 'optionalAccess', _461 => _461.getRouteManager, 'call', _462 => _462(), 'access', _463 => _463.noteSourceChange, 'call', _464 => _464(id, change.event)]);
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5458
|
+
_chunkSJQ24IB5cjs.noteFarmClientReachableModuleChange.call(void 0, id, change.event, { appSource });
|
|
5459
|
+
_chunkSJQ24IB5cjs.invalidateFarmClientOnlyScan.call(void 0, id, change.event);
|
|
5460
|
+
_chunkBEAQVRMQcjs.invalidateFarmRouteRootInferences.call(void 0, id, change.event);
|
|
5461
|
+
_chunkSJQ24IB5cjs.dropLatestPackageClientBoundaryCache.call(void 0, );
|
|
5457
5462
|
},
|
|
5458
5463
|
async handleHotUpdate(ctx) {
|
|
5459
5464
|
if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
|
|
@@ -5486,10 +5491,10 @@ if (import.meta.hot) {
|
|
|
5486
5491
|
}
|
|
5487
5492
|
server2.ws.send({ type: "full-reload", path: "*" });
|
|
5488
5493
|
};
|
|
5489
|
-
if (normalizedFile.includes(
|
|
5494
|
+
if (normalizedFile.includes(_chunkSJQ24IB5cjs.FARM_CLIENT_REFERENCE_DIRECTORY) && normalizedFile.startsWith(
|
|
5490
5495
|
path6.posix.join(
|
|
5491
5496
|
_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _467 => _467.root]) || options.root || server2.config.root),
|
|
5492
|
-
|
|
5497
|
+
_chunkSJQ24IB5cjs.FARM_CLIENT_REFERENCE_DIRECTORY
|
|
5493
5498
|
)
|
|
5494
5499
|
))
|
|
5495
5500
|
return modules;
|
|
@@ -5797,12 +5802,12 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5797
5802
|
const parsed = _chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
5798
5803
|
const routesFile = resolveRealModuleFile(parsed.filePath, root);
|
|
5799
5804
|
watchFile(routesFile);
|
|
5800
|
-
return
|
|
5805
|
+
return _chunkSJQ24IB5cjs.generateProgrammaticClientRouteModule.call(void 0, {
|
|
5801
5806
|
kind: parsed.kind,
|
|
5802
5807
|
routePath: parsed.routePath,
|
|
5803
5808
|
routesFile,
|
|
5804
5809
|
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _506 => _506.routes, 'access', _507 => _507.get, 'call', _508 => _508(
|
|
5805
|
-
|
|
5810
|
+
_chunkSJQ24IB5cjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
|
|
5806
5811
|
)]),
|
|
5807
5812
|
// React's client module exports no createElement; the main client entry imports React too.
|
|
5808
5813
|
rendererClient: _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "react" : renderer.client,
|
|
@@ -5810,7 +5815,7 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5810
5815
|
});
|
|
5811
5816
|
}
|
|
5812
5817
|
function resolveRealModuleFile(filePath, root) {
|
|
5813
|
-
const resolved = _nullishCoalesce(
|
|
5818
|
+
const resolved = _nullishCoalesce(_chunkSJQ24IB5cjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
5814
5819
|
try {
|
|
5815
5820
|
return _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
5816
5821
|
} catch (e29) {
|
|
@@ -6149,12 +6154,12 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
6149
6154
|
}
|
|
6150
6155
|
}
|
|
6151
6156
|
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer = _chunkLEZJZX4Ccjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
6152
|
-
const providerClientCode =
|
|
6157
|
+
const providerClientCode = _chunkBEAQVRMQcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
6153
6158
|
integrationProviders,
|
|
6154
6159
|
root,
|
|
6155
6160
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
6156
6161
|
);
|
|
6157
|
-
const clientPluginEntry =
|
|
6162
|
+
const clientPluginEntry = _chunkWAQIO2VDcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
6158
6163
|
plugins,
|
|
6159
6164
|
root,
|
|
6160
6165
|
srcDir,
|
|
@@ -6247,7 +6252,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
6247
6252
|
return null;
|
|
6248
6253
|
}
|
|
6249
6254
|
}
|
|
6250
|
-
${islandValues ? `${
|
|
6255
|
+
${islandValues ? `${_chunkBEAQVRMQcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
6251
6256
|
let farmLastRouteState = null;
|
|
6252
6257
|
|
|
6253
6258
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -7088,7 +7093,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
7088
7093
|
return loadedLayouts;
|
|
7089
7094
|
}
|
|
7090
7095
|
|
|
7091
|
-
${
|
|
7096
|
+
${_chunkBEAQVRMQcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
7092
7097
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
7093
7098
|
let wrapped = element;
|
|
7094
7099
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -7388,7 +7393,7 @@ function readActiveLayoutPatterns() {
|
|
|
7388
7393
|
);
|
|
7389
7394
|
}
|
|
7390
7395
|
|
|
7391
|
-
${
|
|
7396
|
+
${_chunkBEAQVRMQcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
7392
7397
|
|
|
7393
7398
|
function activateFragmentScripts(root) {
|
|
7394
7399
|
for (const script of Array.from(root.querySelectorAll?.('script') || [])) {
|
|
@@ -7447,7 +7452,7 @@ function getLayoutShell(root, patterns, index, find) {
|
|
|
7447
7452
|
return shell.innerHTML;
|
|
7448
7453
|
}
|
|
7449
7454
|
|
|
7450
|
-
${islandValues ?
|
|
7455
|
+
${islandValues ? _chunkBEAQVRMQcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
|
|
7451
7456
|
container,
|
|
7452
7457
|
fragment,
|
|
7453
7458
|
currentPatterns,
|
|
@@ -7522,9 +7527,9 @@ ${islandValues ? `
|
|
|
7522
7527
|
return nextTarget;
|
|
7523
7528
|
}
|
|
7524
7529
|
|
|
7525
|
-
${islandValues ? `${
|
|
7530
|
+
${islandValues ? `${_chunkBEAQVRMQcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7526
7531
|
|
|
7527
|
-
${
|
|
7532
|
+
${_chunkBEAQVRMQcjs.FARM_EARLY_NAVIGATION_SOURCE}
|
|
7528
7533
|
|
|
7529
7534
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7530
7535
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -8228,7 +8233,7 @@ function generateClientManifest(bundle) {
|
|
|
8228
8233
|
return manifest;
|
|
8229
8234
|
}
|
|
8230
8235
|
async function defineConfig(config = {}) {
|
|
8231
|
-
const tailwindVitePlugin = await
|
|
8236
|
+
const tailwindVitePlugin = await _chunkWAQIO2VDcjs.loadTailwindVitePlugin.call(void 0, );
|
|
8232
8237
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
8233
8238
|
if (_optionalChain([config, 'access', _511 => _511.extends, 'optionalAccess', _512 => _512.length])) {
|
|
8234
8239
|
const { config: layeredConfig } = await import("./layers-6R55QDT5.cjs").then(
|
|
@@ -8240,11 +8245,11 @@ async function defineConfig(config = {}) {
|
|
|
8240
8245
|
config = layeredConfig;
|
|
8241
8246
|
}
|
|
8242
8247
|
config.renderer = _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
8243
|
-
config.images =
|
|
8248
|
+
config.images = _chunkBEAQVRMQcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
8244
8249
|
const rendererVitePlugins = await _chunkLEZJZX4Ccjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
8245
8250
|
ssr: true
|
|
8246
8251
|
});
|
|
8247
|
-
const reactRefreshPlugins = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? await
|
|
8252
|
+
const reactRefreshPlugins = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? await _chunk5RYBQKBYcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
|
|
8248
8253
|
const nodeBuiltinStubs = {
|
|
8249
8254
|
"node:string_decoder": "data:text/javascript,export class StringDecoder { write(buf) { return ''; } end() { return ''; } }; export default StringDecoder;",
|
|
8250
8255
|
"node:buffer": "data:text/javascript,export const Buffer = { from: () => ({}), alloc: () => ({}), isBuffer: () => false }; export default { Buffer };",
|
|
@@ -8338,7 +8343,7 @@ async function defineConfig(config = {}) {
|
|
|
8338
8343
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
8339
8344
|
console.log("");
|
|
8340
8345
|
console.log(
|
|
8341
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
8346
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkA4AYTO2Ecjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
8342
8347
|
);
|
|
8343
8348
|
console.log("");
|
|
8344
8349
|
console.log(
|
|
@@ -8371,8 +8376,8 @@ async function defineConfig(config = {}) {
|
|
|
8371
8376
|
return {
|
|
8372
8377
|
plugins: [
|
|
8373
8378
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
8374
|
-
|
|
8375
|
-
|
|
8379
|
+
_chunk5RYBQKBYcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
8380
|
+
_chunkBEAQVRMQcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
8376
8381
|
tailwindVitePlugin,
|
|
8377
8382
|
...rendererVitePlugins,
|
|
8378
8383
|
...reactRefreshPlugins,
|
|
@@ -8382,14 +8387,14 @@ async function defineConfig(config = {}) {
|
|
|
8382
8387
|
farmNavigationPlugin(config.renderer),
|
|
8383
8388
|
farmIslandContainersPlugin(config),
|
|
8384
8389
|
farmPlugin(config),
|
|
8385
|
-
|
|
8390
|
+
_chunkSJQ24IB5cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
8386
8391
|
farmBrandingPlugin
|
|
8387
8392
|
],
|
|
8388
8393
|
customLogger: farmLogger,
|
|
8389
8394
|
clearScreen: false,
|
|
8390
8395
|
optimizeDeps: {
|
|
8391
|
-
...
|
|
8392
|
-
|
|
8396
|
+
..._chunkBEAQVRMQcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
8397
|
+
_chunkBEAQVRMQcjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
8393
8398
|
appRoot,
|
|
8394
8399
|
_chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
8395
8400
|
),
|
|
@@ -8433,7 +8438,7 @@ async function defineConfig(config = {}) {
|
|
|
8433
8438
|
// Stub out problematic server-only modules during dev mode
|
|
8434
8439
|
alias: {
|
|
8435
8440
|
..._chunkPFVNPOKNcjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
8436
|
-
...
|
|
8441
|
+
..._chunkBEAQVRMQcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
8437
8442
|
// Nitro internals that should not be resolved in browser
|
|
8438
8443
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
8439
8444
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|