@farm.js/core 0.1.85 → 0.1.86
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/{analyzer-R6KNJ6IO.mjs → analyzer-I5S5YKHM.mjs} +2 -2
- package/dist/analyzer-OEMQSLYT.cjs +17 -0
- package/dist/{chunk-3HWNYLQV.cjs → chunk-2NKNP4AH.cjs} +1 -1
- package/dist/{chunk-X7RSOEMQ.mjs → chunk-3TKGMIPX.mjs} +7 -7
- package/dist/{chunk-GFVPQ25Z.mjs → chunk-45ANSCTO.mjs} +12 -12
- package/dist/{chunk-MYSH5Y4E.mjs → chunk-4IE3YK7U.mjs} +1 -1
- package/dist/{chunk-CWUQBECF.mjs → chunk-4SJ22WTT.mjs} +1 -1
- package/dist/{chunk-PQR5A7R2.mjs → chunk-7UTRNV6R.mjs} +1 -1
- package/dist/{chunk-RVJQHQCG.cjs → chunk-BAD6T5NU.cjs} +4 -4
- package/dist/{chunk-HKJIUZS5.cjs → chunk-BLZCAFGJ.cjs} +2 -2
- package/dist/{chunk-YS647ASS.mjs → chunk-CFKAYV7B.mjs} +1 -1
- package/dist/{chunk-MAPHNGTF.cjs → chunk-CPSFDQKJ.cjs} +3 -3
- package/dist/{chunk-YX532KEF.mjs → chunk-CVKTYG4L.mjs} +2 -2
- package/dist/{chunk-BBX4RPOV.cjs → chunk-FDU4Q4QP.cjs} +7 -7
- package/dist/{chunk-UEQC4ZLP.cjs → chunk-FWLXYNWA.cjs} +164 -164
- package/dist/{chunk-XIXAUXV3.mjs → chunk-GWPANDW3.mjs} +1 -1
- package/dist/{chunk-BCCCPFHQ.mjs → chunk-HV6CYSMF.mjs} +3 -0
- package/dist/{chunk-WYTK7HQS.cjs → chunk-IAERD73G.cjs} +155 -155
- package/dist/{chunk-4QCMTIBM.mjs → chunk-KHIEGVG7.mjs} +1 -1
- package/dist/{chunk-7TPLDPNC.cjs → chunk-L2IULWKV.cjs} +9 -9
- package/dist/{chunk-BZN5HX7Y.cjs → chunk-NXOZRI3B.cjs} +2 -2
- package/dist/{chunk-H6C45DCF.cjs → chunk-P253SZJF.cjs} +93 -93
- package/dist/{chunk-Z3LOPHSO.mjs → chunk-PAENAKTC.mjs} +1 -1
- package/dist/{chunk-Q7GB3I4O.cjs → chunk-Q3YWQEUS.cjs} +2 -2
- package/dist/{chunk-OYM6VJEF.cjs → chunk-QYDGIXQ5.cjs} +137 -88
- package/dist/{chunk-U6HUVY5R.mjs → chunk-QYWP5KDY.mjs} +10 -10
- package/dist/{chunk-2DMOB6BH.mjs → chunk-RA5OUXOJ.mjs} +2 -2
- package/dist/{chunk-3TCFONUE.mjs → chunk-SB74WCKC.mjs} +57 -8
- package/dist/{chunk-3OKSEJ33.cjs → chunk-T7UC2ORA.cjs} +3 -0
- package/dist/{chunk-TOUC6BR3.cjs → chunk-TQJ35BBW.cjs} +4 -4
- package/dist/{chunk-CDZ55QRD.mjs → chunk-UAQQUQWE.mjs} +1 -1
- package/dist/{chunk-QUHDVJMR.cjs → chunk-UDWBTABT.cjs} +3 -3
- package/dist/{chunk-F7JVO3OZ.cjs → chunk-VGZIIOU6.cjs} +4 -4
- package/dist/{chunk-RQ6XX5IN.mjs → chunk-VTEAUQMT.mjs} +1 -1
- package/dist/{chunk-L3BSHASB.cjs → chunk-XMVZXZ32.cjs} +4 -4
- package/dist/{chunk-J7VIXTPQ.mjs → chunk-YMAE32O7.mjs} +1 -1
- package/dist/{chunk-L5HDCDFT.mjs → chunk-YNPVG2GG.mjs} +1 -1
- package/dist/{chunk-GLNVLCUH.cjs → chunk-ZSVFI7JM.cjs} +6 -6
- package/dist/{devtools-SXL5RFE5.cjs → devtools-A3L7WNTB.cjs} +4 -4
- package/dist/{devtools-34ZQWX3M.mjs → devtools-DGC2247E.mjs} +2 -2
- package/dist/docs.cjs +4 -4
- package/dist/docs.mjs +3 -3
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/index.cjs +17 -17
- package/dist/index.mjs +16 -16
- package/dist/internal/build-runtime.cjs +18 -18
- package/dist/internal/build-runtime.mjs +17 -17
- package/dist/internal/cli-runtime.cjs +6 -6
- package/dist/internal/cli-runtime.mjs +5 -5
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/config-runtime.cjs +4 -4
- package/dist/internal/config-runtime.mjs +3 -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.mjs +3 -3
- package/dist/plugin.cjs +13 -13
- package/dist/plugin.mjs +12 -12
- package/dist/renderer.cjs +3 -3
- package/dist/renderer.d.mts +10 -2
- package/dist/renderer.d.ts +10 -2
- package/dist/renderer.mjs +2 -2
- package/dist/{rsc-pipeline-MW2V3WEE.mjs → rsc-pipeline-BROS3NEB.mjs} +4 -4
- package/dist/{rsc-pipeline-ESPGX4VX.cjs → rsc-pipeline-SNGPAXGW.cjs} +5 -5
- package/dist/{runtime-FCMLEBTX.cjs → runtime-7T5TRAWL.cjs} +9 -9
- package/dist/{runtime-KGSOEMLT.mjs → runtime-SLJLW37A.mjs} +4 -4
- package/dist/server.cjs +38 -38
- package/dist/server.mjs +14 -14
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +13 -13
- package/dist/vite.mjs +12 -12
- package/package.json +1 -1
- package/dist/analyzer-XVY76XMM.cjs +0 -17
|
@@ -43,7 +43,7 @@ var _chunkRDADQG5Scjs = require('./chunk-RDADQG5S.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkP253SZJFcjs = require('./chunk-P253SZJF.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
@@ -58,13 +58,13 @@ var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkXMVZXZ32cjs = require('./chunk-XMVZXZ32.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunkCPSFDQKJcjs = require('./chunk-CPSFDQKJ.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkBAD6T5NUcjs = require('./chunk-BAD6T5NU.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
@@ -91,13 +91,13 @@ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkTQJ35BBWcjs = require('./chunk-TQJ35BBW.cjs');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
var
|
|
100
|
+
var _chunkNXOZRI3Bcjs = require('./chunk-NXOZRI3B.cjs');
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
@@ -148,7 +148,7 @@ var _chunk7EPYN7GWcjs = require('./chunk-7EPYN7GW.cjs');
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
var
|
|
151
|
+
var _chunkQYDGIXQ5cjs = require('./chunk-QYDGIXQ5.cjs');
|
|
152
152
|
|
|
153
153
|
|
|
154
154
|
|
|
@@ -193,7 +193,7 @@ var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
|
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
|
|
196
|
-
var
|
|
196
|
+
var _chunkT7UC2ORAcjs = require('./chunk-T7UC2ORA.cjs');
|
|
197
197
|
|
|
198
198
|
|
|
199
199
|
|
|
@@ -313,7 +313,7 @@ var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
|
|
|
313
313
|
var _chunkPLJMEUANcjs = require('./chunk-PLJMEUAN.cjs');
|
|
314
314
|
|
|
315
315
|
|
|
316
|
-
var
|
|
316
|
+
var _chunk2NKNP4AHcjs = require('./chunk-2NKNP4AH.cjs');
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
|
|
@@ -714,7 +714,7 @@ function findClientServerFnViolation(code, id) {
|
|
|
714
714
|
return null;
|
|
715
715
|
}
|
|
716
716
|
function createServerFnBoundaryDiagnostic(violation, id, location) {
|
|
717
|
-
return
|
|
717
|
+
return _chunkQYDGIXQ5cjs.createFarmDiagnostic.call(void 0,
|
|
718
718
|
"CLIENT_SERVER_FUNCTION",
|
|
719
719
|
id,
|
|
720
720
|
`${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.`,
|
|
@@ -973,21 +973,21 @@ function readPropertyKey(property) {
|
|
|
973
973
|
function createClientBoundaryDiagnostic(file, finding, location) {
|
|
974
974
|
switch (finding.kind) {
|
|
975
975
|
case "server-env":
|
|
976
|
-
return
|
|
976
|
+
return _chunkQYDGIXQ5cjs.createFarmDiagnostic.call(void 0,
|
|
977
977
|
"CLIENT_SERVER_ENV",
|
|
978
978
|
file,
|
|
979
979
|
`process.env.${finding.name} is read at module scope in a module compiled for the browser, where it is undefined.`,
|
|
980
980
|
location
|
|
981
981
|
);
|
|
982
982
|
case "public-env":
|
|
983
|
-
return
|
|
983
|
+
return _chunkQYDGIXQ5cjs.createFarmDiagnostic.call(void 0,
|
|
984
984
|
"CLIENT_PROCESS_ENV_PUBLIC",
|
|
985
985
|
file,
|
|
986
986
|
`process.env.${finding.name} is declared public, but process.env is not populated in the browser, so this module-scope read is undefined there.`,
|
|
987
987
|
location
|
|
988
988
|
);
|
|
989
989
|
case "builtin":
|
|
990
|
-
return
|
|
990
|
+
return _chunkQYDGIXQ5cjs.createFarmDiagnostic.call(void 0,
|
|
991
991
|
"CLIENT_NODE_BUILTIN",
|
|
992
992
|
file,
|
|
993
993
|
`"${finding.name}" is imported into a module compiled for the browser, which gets a stub whose exports without a Web API equivalent are undefined.`,
|
|
@@ -1289,7 +1289,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1289
1289
|
return import("./workflows.cjs");
|
|
1290
1290
|
}
|
|
1291
1291
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1292
|
-
return import("./devtools-
|
|
1292
|
+
return import("./devtools-A3L7WNTB.cjs");
|
|
1293
1293
|
}
|
|
1294
1294
|
function loadFarmDevtoolsUIRuntime() {
|
|
1295
1295
|
return import("./devtools-ui-C2EMF2SO.cjs");
|
|
@@ -1314,7 +1314,7 @@ function farmI18nClientBridgePlugin() {
|
|
|
1314
1314
|
};
|
|
1315
1315
|
}
|
|
1316
1316
|
function farmNavigationPlugin(renderer) {
|
|
1317
|
-
const otherRenderer = !
|
|
1317
|
+
const otherRenderer = !_chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, renderer) && !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer || void 0) && _optionalChain([(renderer || void 0), 'optionalAccess', _69 => _69.name]) !== "preact";
|
|
1318
1318
|
return {
|
|
1319
1319
|
name: "farm:navigation",
|
|
1320
1320
|
config() {
|
|
@@ -1339,16 +1339,16 @@ var FARM_SERVER_ONLY_PACKAGE_ID = "\0farm:server-only";
|
|
|
1339
1339
|
var FARM_PLATFORM_ENTRY = "@farm.js/core/platform";
|
|
1340
1340
|
var FARM_PLATFORM_CLIENT_ID = "\0farm:platform-client";
|
|
1341
1341
|
var FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER = [
|
|
1342
|
-
|
|
1343
|
-
new RegExp(`^${
|
|
1342
|
+
_chunkP253SZJFcjs.exactIdPattern.call(void 0, [FARM_PLATFORM_ENTRY, SERVER_ONLY_PACKAGE, ...FARM_SERVER_ONLY_ENTRIES]),
|
|
1343
|
+
new RegExp(`^${_chunkQYDGIXQ5cjs.FARM_RESOLVE_FROM_PREFIX}`),
|
|
1344
1344
|
// What isBuiltin() accepts: `node:` ids and the builtin names, subpaths such as fs/promises
|
|
1345
1345
|
// included.
|
|
1346
1346
|
/^node:/,
|
|
1347
|
-
|
|
1347
|
+
_chunkP253SZJFcjs.exactIdPattern.call(void 0, _module.builtinModules)
|
|
1348
1348
|
];
|
|
1349
1349
|
var FARM_SERVER_ONLY_ENTRIES_LOAD_FILTER = [
|
|
1350
|
-
|
|
1351
|
-
new RegExp(`^${
|
|
1350
|
+
_chunkP253SZJFcjs.exactIdPattern.call(void 0, [FARM_SERVER_ONLY_PACKAGE_ID, FARM_PLATFORM_CLIENT_ID]),
|
|
1351
|
+
new RegExp(`^${_chunkQYDGIXQ5cjs.FARM_BROWSER_BUILTIN_PREFIX}`)
|
|
1352
1352
|
];
|
|
1353
1353
|
function createFarmPlatformClientModule(platform) {
|
|
1354
1354
|
return `export function platform() { return ${JSON.stringify(platform)}; }
|
|
@@ -1378,24 +1378,24 @@ function farmIslandContainersPlugin(config) {
|
|
|
1378
1378
|
root = config.root || resolved.root;
|
|
1379
1379
|
},
|
|
1380
1380
|
transform(code, id) {
|
|
1381
|
-
if (
|
|
1381
|
+
if (_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _70 => _70.experimental, 'optionalAccess', _71 => _71.serverComponents])) !== "islands") {
|
|
1382
1382
|
return null;
|
|
1383
1383
|
}
|
|
1384
1384
|
if (id.startsWith("\0") || id.includes("/node_modules/") || !/\.[jt]sx(?:$|\?)/.test(id)) {
|
|
1385
1385
|
return null;
|
|
1386
1386
|
}
|
|
1387
|
-
if (
|
|
1387
|
+
if (_chunkQYDGIXQ5cjs.hasUseClientDirective.call(void 0, code)) return null;
|
|
1388
1388
|
const file = id.split("?", 1)[0];
|
|
1389
|
-
const bindings =
|
|
1389
|
+
const bindings = _chunkQYDGIXQ5cjs.getFarmClientRenderingBindings.call(void 0, code, file, root);
|
|
1390
1390
|
if (bindings.length === 0) return null;
|
|
1391
|
-
const grown =
|
|
1391
|
+
const grown = _chunkQYDGIXQ5cjs.wrapFarmIslandContainers.call(void 0, {
|
|
1392
1392
|
code,
|
|
1393
1393
|
file,
|
|
1394
1394
|
bindings,
|
|
1395
|
-
reference:
|
|
1395
|
+
reference: _chunkQYDGIXQ5cjs.farmIslandContainerReferencePath.call(void 0, root)
|
|
1396
1396
|
});
|
|
1397
1397
|
if (grown === null) return null;
|
|
1398
|
-
|
|
1398
|
+
_chunkQYDGIXQ5cjs.ensureFarmIslandContainerReference.call(void 0, root);
|
|
1399
1399
|
return { code: grown, map: null };
|
|
1400
1400
|
}
|
|
1401
1401
|
};
|
|
@@ -1409,18 +1409,18 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1409
1409
|
config(config) {
|
|
1410
1410
|
const appRoot = path6.resolve(_nullishCoalesce(config.root, () => ( process.cwd())));
|
|
1411
1411
|
if (options.distDir) {
|
|
1412
|
-
|
|
1412
|
+
_chunkQYDGIXQ5cjs.usePackageScanCacheFile.call(void 0,
|
|
1413
1413
|
path6.resolve(appRoot, options.distDir, "cache", "package-scans.json")
|
|
1414
1414
|
);
|
|
1415
1415
|
}
|
|
1416
|
-
const bundledPackages =
|
|
1416
|
+
const bundledPackages = _chunkQYDGIXQ5cjs.collectFarmServerBundledPackageInfo.call(void 0, appRoot);
|
|
1417
1417
|
const prebundle = options.prebundleServerPackages ? createFarmServerPrebundleConfig(bundledPackages) : {};
|
|
1418
|
-
|
|
1418
|
+
_chunkQYDGIXQ5cjs.persistPackageScanCache.call(void 0, );
|
|
1419
1419
|
return {
|
|
1420
1420
|
optimizeDeps: {
|
|
1421
1421
|
// A package that defines fonts is served unbundled, so Farm's font compiler sees it.
|
|
1422
1422
|
exclude: bundledPackages.filter(({ fonts }) => fonts).map(({ name }) => name),
|
|
1423
|
-
rolldownOptions: { plugins: [
|
|
1423
|
+
rolldownOptions: { plugins: [_chunkQYDGIXQ5cjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] }
|
|
1424
1424
|
},
|
|
1425
1425
|
ssr: {
|
|
1426
1426
|
noExternal: [
|
|
@@ -1446,8 +1446,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1446
1446
|
return FARM_SERVER_ONLY_PACKAGE_ID;
|
|
1447
1447
|
}
|
|
1448
1448
|
this.error(
|
|
1449
|
-
|
|
1450
|
-
|
|
1449
|
+
_chunkQYDGIXQ5cjs.formatFarmDiagnostic.call(void 0,
|
|
1450
|
+
_chunkQYDGIXQ5cjs.createFarmDiagnostic.call(void 0,
|
|
1451
1451
|
"CLIENT_SERVER_ONLY_IMPORT",
|
|
1452
1452
|
_nullishCoalesce(importer, () => ( "<unknown module>")),
|
|
1453
1453
|
`${importer ? "This module" : "A module"} imports "server-only", so it must not reach the browser, but client code imports it.`
|
|
@@ -1457,9 +1457,9 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1457
1457
|
);
|
|
1458
1458
|
}
|
|
1459
1459
|
if (!_optionalChain([options2, 'optionalAccess', _75 => _75.ssr]) && _module.isBuiltin.call(void 0, id)) {
|
|
1460
|
-
return
|
|
1460
|
+
return _chunkQYDGIXQ5cjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
|
|
1461
1461
|
}
|
|
1462
|
-
const resolveFrom = importer ?
|
|
1462
|
+
const resolveFrom = importer ? _chunkQYDGIXQ5cjs.parseFarmResolveFrom.call(void 0, id, importer.split("?", 1)[0]) : null;
|
|
1463
1463
|
if (resolveFrom) {
|
|
1464
1464
|
const directory = path6.dirname(resolveFrom.importer);
|
|
1465
1465
|
return this.resolve(resolveFrom.specifier, resolveFrom.importer, {
|
|
@@ -1476,8 +1476,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1476
1476
|
const importedBy = importer ? ` (imported by ${importer})` : "";
|
|
1477
1477
|
if (!_optionalChain([options2, 'optionalAccess', _76 => _76.ssr])) {
|
|
1478
1478
|
this.error(
|
|
1479
|
-
|
|
1480
|
-
|
|
1479
|
+
_chunkQYDGIXQ5cjs.formatFarmDiagnostic.call(void 0,
|
|
1480
|
+
_chunkQYDGIXQ5cjs.createFarmDiagnostic.call(void 0,
|
|
1481
1481
|
"CLIENT_SERVER_ONLY_ENTRY",
|
|
1482
1482
|
_nullishCoalesce(importer, () => ( id)),
|
|
1483
1483
|
`${id} is server-only and cannot be imported into client code.`
|
|
@@ -1502,7 +1502,7 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1502
1502
|
if (id === FARM_PLATFORM_CLIENT_ID) {
|
|
1503
1503
|
return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ))));
|
|
1504
1504
|
}
|
|
1505
|
-
return _nullishCoalesce(
|
|
1505
|
+
return _nullishCoalesce(_chunkQYDGIXQ5cjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
@@ -1983,7 +1983,7 @@ function getEnvDefines(config, configEnv) {
|
|
|
1983
1983
|
_chunkMCSRMEQVcjs.getPublicFarmImageConfig.call(void 0,
|
|
1984
1984
|
_chunkMCSRMEQVcjs.resolveFarmImageConfig.call(void 0,
|
|
1985
1985
|
config.images,
|
|
1986
|
-
|
|
1986
|
+
_chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, config.renderer) ? "none" : void 0
|
|
1987
1987
|
)
|
|
1988
1988
|
)
|
|
1989
1989
|
)
|
|
@@ -2116,7 +2116,7 @@ function transformIsolatedClientBoundaryModule(options) {
|
|
|
2116
2116
|
return null;
|
|
2117
2117
|
}
|
|
2118
2118
|
const body = Array.isArray(ast.body) ? ast.body : [];
|
|
2119
|
-
const everyExportIsComponent = options.code.includes(
|
|
2119
|
+
const everyExportIsComponent = options.code.includes(_chunkQYDGIXQ5cjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunkQYDGIXQ5cjs.FARM_CLIENT_REFERENCE_DIRECTORY);
|
|
2120
2120
|
const replacements = [];
|
|
2121
2121
|
const wrapperStatements = [];
|
|
2122
2122
|
const originalEntries = [];
|
|
@@ -2271,16 +2271,16 @@ async function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
2271
2271
|
for (const finding of analyzeClientBoundary(program, publicKeys)) {
|
|
2272
2272
|
if (finding.kind === "builtin" && !finding.name.startsWith("node:")) {
|
|
2273
2273
|
const resolved = await context.resolve(finding.name, id).catch(() => null);
|
|
2274
|
-
if (!_optionalChain([resolved, 'optionalAccess', _103 => _103.id, 'access', _104 => _104.startsWith, 'call', _105 => _105(
|
|
2274
|
+
if (!_optionalChain([resolved, 'optionalAccess', _103 => _103.id, 'access', _104 => _104.startsWith, 'call', _105 => _105(_chunkQYDGIXQ5cjs.FARM_BROWSER_BUILTIN_PREFIX)])) continue;
|
|
2275
2275
|
}
|
|
2276
2276
|
findings.push(finding);
|
|
2277
2277
|
}
|
|
2278
2278
|
if (findings.length === 0) return;
|
|
2279
2279
|
warnedClientBoundaryIds.add(id);
|
|
2280
|
-
const locate =
|
|
2280
|
+
const locate = _chunkQYDGIXQ5cjs.createFarmSourceLocator.call(void 0, code, () => context.getCombinedSourcemap());
|
|
2281
2281
|
_chunk7U4XF76Rcjs.logger.warn(
|
|
2282
2282
|
findings.map(
|
|
2283
|
-
(finding) =>
|
|
2283
|
+
(finding) => _chunkQYDGIXQ5cjs.formatFarmDiagnostic.call(void 0,
|
|
2284
2284
|
createClientBoundaryDiagnostic(id, finding, locate(finding.start)),
|
|
2285
2285
|
config.root
|
|
2286
2286
|
)
|
|
@@ -2297,7 +2297,7 @@ function isFarmAppRuntimeFile(file, appDirs, routeModuleExtensions) {
|
|
|
2297
2297
|
);
|
|
2298
2298
|
}
|
|
2299
2299
|
function shouldEmitFarmClientRootHmr(renderer) {
|
|
2300
|
-
return
|
|
2300
|
+
return _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, renderer)).reconcilesRerenders;
|
|
2301
2301
|
}
|
|
2302
2302
|
var FARM_RUNTIME_MODULE_PREFIX = "/@farm/runtime/";
|
|
2303
2303
|
function toFarmRuntimeModuleId(specifier) {
|
|
@@ -2328,9 +2328,9 @@ function hasFarmSourceAliasOverride(alias) {
|
|
|
2328
2328
|
);
|
|
2329
2329
|
}
|
|
2330
2330
|
function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
2331
|
-
const rendererDisabled =
|
|
2331
|
+
const rendererDisabled = _chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, options.renderer);
|
|
2332
2332
|
const imageImports = farmImageImportsPlugin();
|
|
2333
|
-
const fontImports =
|
|
2333
|
+
const fontImports = _chunkP253SZJFcjs.farmFontImportsPlugin.call(void 0, {
|
|
2334
2334
|
root: options.root,
|
|
2335
2335
|
basePath: options.basePath,
|
|
2336
2336
|
publicDir: options.publicDir
|
|
@@ -2364,8 +2364,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2364
2364
|
if (mdxComponents) files.add(mdxComponents);
|
|
2365
2365
|
return files;
|
|
2366
2366
|
};
|
|
2367
|
-
const islxActionsMode = () =>
|
|
2368
|
-
const islandsServerFns = () =>
|
|
2367
|
+
const islxActionsMode = () => _chunkP253SZJFcjs.resolveFarmIslxActionsMode.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _111 => _111.getConfig, 'call', _112 => _112()]), () => ( options)));
|
|
2368
|
+
const islandsServerFns = () => _chunkP253SZJFcjs.farmBrowserServerFnsEnabled.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _113 => _113.getConfig, 'call', _114 => _114()]), () => ( options)));
|
|
2369
2369
|
let reactRefreshActive = false;
|
|
2370
2370
|
let server;
|
|
2371
2371
|
let deferredGates;
|
|
@@ -2408,11 +2408,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2408
2408
|
isBuild = configEnv.command === "build";
|
|
2409
2409
|
const farmAliases = {
|
|
2410
2410
|
..._chunk52Q4OB4Acjs.getFarmLayerAliases.call(void 0, options.layers),
|
|
2411
|
-
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _124 => _124.resolve, 'optionalAccess', _125 => _125.alias])) ? {} :
|
|
2411
|
+
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _124 => _124.resolve, 'optionalAccess', _125 => _125.alias])) ? {} : _chunkP253SZJFcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir)
|
|
2412
2412
|
};
|
|
2413
2413
|
if (Object.keys(farmAliases).length > 0) {
|
|
2414
2414
|
_nullishCoalesce(userConfig.resolve, () => ( (userConfig.resolve = {})));
|
|
2415
|
-
userConfig.resolve.alias =
|
|
2415
|
+
userConfig.resolve.alias = _chunkP253SZJFcjs.mergeFarmViteAlias.call(void 0, farmAliases, userConfig.resolve.alias);
|
|
2416
2416
|
}
|
|
2417
2417
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
2418
2418
|
farmOwnsDevCors = !isBuild && _optionalChain([userConfig, 'access', _126 => _126.server, 'optionalAccess', _127 => _127.cors]) === void 0;
|
|
@@ -2486,7 +2486,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2486
2486
|
} catch (e21) {
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
|
-
farmApp = new (0,
|
|
2489
|
+
farmApp = new (0, _chunkP253SZJFcjs.FarmApp)(
|
|
2490
2490
|
{
|
|
2491
2491
|
...options,
|
|
2492
2492
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -2494,7 +2494,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2494
2494
|
server
|
|
2495
2495
|
);
|
|
2496
2496
|
farmApp.getRouteManager().usePackageClientBoundaryCacheFile(
|
|
2497
|
-
|
|
2497
|
+
_chunkQYDGIXQ5cjs.resolvePackageClientBoundaryCacheFile.call(void 0,
|
|
2498
2498
|
farmApp.getConfig().root,
|
|
2499
2499
|
options.distDir || ".farm"
|
|
2500
2500
|
)
|
|
@@ -2505,7 +2505,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2505
2505
|
let farmAppPackages;
|
|
2506
2506
|
if (_optionalChain([farmConfig, 'access', _149 => _149.agent, 'optionalAccess', _150 => _150.noindexPreviews])) {
|
|
2507
2507
|
farmMiddlewares.use((_req, res, next) => {
|
|
2508
|
-
if (
|
|
2508
|
+
if (_chunkNXOZRI3Bcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
2509
2509
|
res.setHeader("X-Robots-Tag", _chunkEACD6ND7cjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
2510
2510
|
}
|
|
2511
2511
|
next();
|
|
@@ -2513,7 +2513,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
const apiServerBasePath = _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
|
|
2515
2515
|
const devBuiltInRoutePaths = new Set(
|
|
2516
|
-
|
|
2516
|
+
_chunkTQJ35BBWcjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
2517
2517
|
agent: {
|
|
2518
2518
|
apiCatalog: true,
|
|
2519
2519
|
mcp: true,
|
|
@@ -2563,7 +2563,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2563
2563
|
);
|
|
2564
2564
|
const generateTypeArtifacts = async (reason, selection = ALL_TYPE_ARTIFACTS, log = false) => {
|
|
2565
2565
|
try {
|
|
2566
|
-
const result = await
|
|
2566
|
+
const result = await _chunkXMVZXZ32cjs.generateFarmTypeArtifacts.call(void 0, {
|
|
2567
2567
|
root: farmConfig.root,
|
|
2568
2568
|
srcDir: farmConfig.srcDir,
|
|
2569
2569
|
layers: farmConfig.layers,
|
|
@@ -2608,7 +2608,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2608
2608
|
farmConfig.layers.map((layer) => _optionalChain([layer, 'access', _158 => _158.configFile, 'optionalAccess', _159 => _159.replace, 'call', _160 => _160(/\\/g, "/")])).filter((file) => Boolean(file))
|
|
2609
2609
|
);
|
|
2610
2610
|
const routeModuleExtensions = /* @__PURE__ */ new Set([
|
|
2611
|
-
...
|
|
2611
|
+
..._chunkT7UC2ORAcjs.resolveFarmComponentExtensions.call(void 0, farmConfig.renderer.componentExtensions),
|
|
2612
2612
|
".md",
|
|
2613
2613
|
".mdx"
|
|
2614
2614
|
]);
|
|
@@ -2864,7 +2864,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2864
2864
|
rendererServer: farmConfig.renderer.server,
|
|
2865
2865
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2866
2866
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2867
|
-
globalStylesheetHref:
|
|
2867
|
+
globalStylesheetHref: _chunkP253SZJFcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2868
2868
|
farmConfig.root,
|
|
2869
2869
|
farmConfig.srcDir
|
|
2870
2870
|
),
|
|
@@ -2895,7 +2895,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2895
2895
|
fontAssets: _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2896
2896
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2897
2897
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2898
|
-
globalStylesheetHref:
|
|
2898
|
+
globalStylesheetHref: _chunkP253SZJFcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2899
2899
|
farmConfig.root,
|
|
2900
2900
|
farmConfig.srcDir
|
|
2901
2901
|
),
|
|
@@ -2932,9 +2932,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
const farmInfraAnalyticsPlugin = _optionalChain([pm, 'optionalAccess', _192 => _192.getPlugins, 'call', _193 => _193(), 'access', _194 => _194.find, 'call', _195 => _195((plugin2) => plugin2.name === "farm:infra-analytics")]);
|
|
2934
2934
|
if (farmInfraAnalyticsPlugin) {
|
|
2935
|
-
|
|
2935
|
+
_chunkBAD6T5NUcjs._setFarmInfraAnalyticsWebMCPRoute.call(void 0, farmInfraAnalyticsPlugin, async (pathname) => {
|
|
2936
2936
|
if (farmDocsDevRuntime) {
|
|
2937
|
-
const label =
|
|
2937
|
+
const label = _chunkTQJ35BBWcjs.resolveFarmDocsRouteLabel.call(void 0,
|
|
2938
2938
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname, farmConfig.basePath),
|
|
2939
2939
|
{
|
|
2940
2940
|
path: _optionalChain([farmConfig, 'access', _196 => _196.docs, 'optionalAccess', _197 => _197.entry]) || "/docs",
|
|
@@ -2942,7 +2942,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2942
2942
|
pages: await getFarmDocsPagePaths()
|
|
2943
2943
|
}
|
|
2944
2944
|
);
|
|
2945
|
-
if (label) return
|
|
2945
|
+
if (label) return _chunkTQJ35BBWcjs.setFarmRouteLabel.call(void 0, { pathname }, label);
|
|
2946
2946
|
}
|
|
2947
2947
|
const match = farmApp.getRouteManager().matchRoute(pathname);
|
|
2948
2948
|
return { pathname, pattern: _optionalChain([match, 'access', _202 => _202.route, 'optionalAccess', _203 => _203.pattern]) || null };
|
|
@@ -3106,7 +3106,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3106
3106
|
if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH) {
|
|
3107
3107
|
res.statusCode = 200;
|
|
3108
3108
|
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
3109
|
-
res.end(requestMethod === "HEAD" ? void 0 :
|
|
3109
|
+
res.end(requestMethod === "HEAD" ? void 0 : _chunkP253SZJFcjs.FARM_VIDEO_PLAYER_HTML);
|
|
3110
3110
|
return;
|
|
3111
3111
|
}
|
|
3112
3112
|
const farmDocsFontPath = farmDocsFontAssets.get(requestPathname);
|
|
@@ -3386,9 +3386,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3386
3386
|
if (pm && opensFarmDevRuntimeSession(pm)) {
|
|
3387
3387
|
try {
|
|
3388
3388
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
3389
|
-
const route =
|
|
3389
|
+
const route = _chunkTQJ35BBWcjs.setFarmRouteLabel.call(void 0,
|
|
3390
3390
|
{ pathname: requestPathname },
|
|
3391
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
3391
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunkTQJ35BBWcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
3392
3392
|
);
|
|
3393
3393
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
3394
3394
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
@@ -3477,7 +3477,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3477
3477
|
);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
|
-
if (_optionalChain([options, 'access', _238 => _238.agent, 'optionalAccess', _239 => _239.manifest]) !== false &&
|
|
3480
|
+
if (_optionalChain([options, 'access', _238 => _238.agent, 'optionalAccess', _239 => _239.manifest]) !== false && _chunkTQJ35BBWcjs.isFarmAppManifestPath.call(void 0, _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
3481
3481
|
const manifestGuardCoversPath = (path7) => _chunk4B6YJ5DScjs.farmPathGuardCoversEndpoint.call(void 0,
|
|
3482
3482
|
{
|
|
3483
3483
|
config: farmConfig,
|
|
@@ -3487,18 +3487,18 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3487
3487
|
apiServerBasePath
|
|
3488
3488
|
);
|
|
3489
3489
|
await serveBuiltInRoute(async () => {
|
|
3490
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
3491
|
-
const manifest = await
|
|
3490
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkP253SZJFcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
3491
|
+
const manifest = await _chunkTQJ35BBWcjs.createFarmAppManifestResponse.call(void 0,
|
|
3492
3492
|
new Request(parsedRequestUrl, {
|
|
3493
3493
|
method: requestMethod,
|
|
3494
3494
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
3495
3495
|
}),
|
|
3496
3496
|
{
|
|
3497
|
-
...
|
|
3497
|
+
..._chunkTQJ35BBWcjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
3498
3498
|
build: "development",
|
|
3499
3499
|
packages: farmAppPackages,
|
|
3500
3500
|
// Read again on each request; unchanged files come from a cache.
|
|
3501
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _240 => _240.plugins, 'optionalAccess', _241 => _241.some, 'call', _242 => _242(({ name }) => name === "farm:webmcp")]) ?
|
|
3501
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _240 => _240.plugins, 'optionalAccess', _241 => _241.some, 'call', _242 => _242(({ name }) => name === "farm:webmcp")]) ? _chunkP253SZJFcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
3502
3502
|
}),
|
|
3503
3503
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
3504
3504
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -3516,11 +3516,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3516
3516
|
});
|
|
3517
3517
|
return;
|
|
3518
3518
|
}
|
|
3519
|
-
if (_optionalChain([options, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
3519
|
+
if (_optionalChain([options, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunkTQJ35BBWcjs.FARM_API_CATALOG_PATH) {
|
|
3520
3520
|
await serveBuiltInRoute(
|
|
3521
|
-
() =>
|
|
3521
|
+
() => _chunkTQJ35BBWcjs.createFarmApiCatalogResponse.call(void 0,
|
|
3522
3522
|
requestMethod,
|
|
3523
|
-
|
|
3523
|
+
_chunkTQJ35BBWcjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
3524
3524
|
new Request(parsedRequestUrl, {
|
|
3525
3525
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
3526
3526
|
})
|
|
@@ -3529,7 +3529,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3529
3529
|
return;
|
|
3530
3530
|
}
|
|
3531
3531
|
if (_optionalChain([options, 'access', _245 => _245.agent, 'optionalAccess', _246 => _246.aiCatalog]) !== false) {
|
|
3532
|
-
const aiCatalog =
|
|
3532
|
+
const aiCatalog = _chunkTQJ35BBWcjs.createFarmAiCatalogResponse.call(void 0,
|
|
3533
3533
|
new Request(parsedRequestUrl, {
|
|
3534
3534
|
method: requestMethod,
|
|
3535
3535
|
headers: {
|
|
@@ -3611,7 +3611,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3611
3611
|
{
|
|
3612
3612
|
kind: "docs",
|
|
3613
3613
|
computed: docsResponse,
|
|
3614
|
-
label:
|
|
3614
|
+
label: _chunkTQJ35BBWcjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
3615
3615
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
3616
3616
|
{
|
|
3617
3617
|
path: _optionalChain([farmConfig, 'access', _257 => _257.docs, 'optionalAccess', _258 => _258.entry]) || "/docs",
|
|
@@ -3648,7 +3648,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3648
3648
|
}
|
|
3649
3649
|
const markdownRouteLabel = () => (
|
|
3650
3650
|
// On the route path, as production labels it: /fr/index.md is /index.md.
|
|
3651
|
-
|
|
3651
|
+
_chunkTQJ35BBWcjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
3652
3652
|
toRoutePathname(requestPathname),
|
|
3653
3653
|
(page) => _optionalChain([farmApp, 'access', _273 => _273.getRouteManager, 'call', _274 => _274(), 'access', _275 => _275.matchRoute, 'call', _276 => _276(page), 'access', _277 => _277.route, 'optionalAccess', _278 => _278.pattern])
|
|
3654
3654
|
)
|
|
@@ -3669,7 +3669,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3669
3669
|
return {
|
|
3670
3670
|
source: await fs2.promises.readFile(sourcePath, "utf8"),
|
|
3671
3671
|
// Project-relative, as production sends it: never the machine's path.
|
|
3672
|
-
filePath:
|
|
3672
|
+
filePath: _chunkP253SZJFcjs.toBakedMarkdownSourcePath.call(void 0, farmApp.getConfig().root, sourcePath)
|
|
3673
3673
|
};
|
|
3674
3674
|
},
|
|
3675
3675
|
// The anonymous check goes through this server, so its guards and
|
|
@@ -4012,9 +4012,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4012
4012
|
);
|
|
4013
4013
|
const docsRuntimeOptions = () => ({
|
|
4014
4014
|
kind: "docs",
|
|
4015
|
-
route:
|
|
4015
|
+
route: _chunkTQJ35BBWcjs.setFarmRouteLabel.call(void 0,
|
|
4016
4016
|
{ pathname: pathname2, pattern: urlPath2 },
|
|
4017
|
-
|
|
4017
|
+
_chunkTQJ35BBWcjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
4018
4018
|
path: _optionalChain([farmConfig, 'access', _290 => _290.docs, 'optionalAccess', _291 => _291.entry]) || "/docs",
|
|
4019
4019
|
roots: _optionalChain([farmConfig, 'access', _292 => _292.docs, 'optionalAccess', _293 => _293.roots, 'optionalAccess', _294 => _294.map, 'call', _295 => _295((root) => root.entry)])
|
|
4020
4020
|
})
|
|
@@ -4368,7 +4368,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4368
4368
|
);
|
|
4369
4369
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
4370
4370
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
4371
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
4371
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkQYDGIXQ5cjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
4372
4372
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
4373
4373
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
4374
4374
|
let mergedMetadata = {};
|
|
@@ -4379,7 +4379,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4379
4379
|
(layout) => _nullishCoalesce(navigationManifest.layouts.find(
|
|
4380
4380
|
(entry) => entry.pattern === layout.pattern
|
|
4381
4381
|
), () => ( {
|
|
4382
|
-
...
|
|
4382
|
+
..._chunkQYDGIXQ5cjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root),
|
|
4383
4383
|
serverTree: false
|
|
4384
4384
|
}))
|
|
4385
4385
|
);
|
|
@@ -4392,9 +4392,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4392
4392
|
(metadata) => metadata.shouldHydrate && metadata.islandStrategy ? [metadata.islandStrategy] : []
|
|
4393
4393
|
)
|
|
4394
4394
|
];
|
|
4395
|
-
const hydrationIslandStrategy =
|
|
4395
|
+
const hydrationIslandStrategy = _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0,
|
|
4396
4396
|
_optionalChain([(_nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _318 => _318.getConfig, 'call', _319 => _319()]), () => ( options))), 'access', _320 => _320.experimental, 'optionalAccess', _321 => _321.serverComponents])
|
|
4397
|
-
) === "islands" ?
|
|
4397
|
+
) === "islands" ? _chunkP253SZJFcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
4398
4398
|
route,
|
|
4399
4399
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
4400
4400
|
layouts.map((layout, index) => ({
|
|
@@ -4460,7 +4460,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4460
4460
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
4461
4461
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
4462
4462
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
4463
|
-
), () => (
|
|
4463
|
+
), () => ( _chunkQYDGIXQ5cjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
4464
4464
|
const slotContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
4465
4465
|
request: targetRequest,
|
|
4466
4466
|
params: slot.params,
|
|
@@ -4510,7 +4510,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4510
4510
|
pageShouldHydrate: shouldHydrate,
|
|
4511
4511
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
4512
4512
|
islandStrategy: hydrationIslandStrategy,
|
|
4513
|
-
rendering:
|
|
4513
|
+
rendering: _chunkXMVZXZ32cjs.resolveRouteRenderingConfig.call(void 0, routeModule)
|
|
4514
4514
|
});
|
|
4515
4515
|
const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
|
|
4516
4516
|
const layoutStartIndex = _chunk4B6YJ5DScjs.getSharedLayoutPrefixLength.call(void 0,
|
|
@@ -4645,7 +4645,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4645
4645
|
const hasRuntimeAfterHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _339 => _339.hasRuntimeHook, 'call', _340 => _340("after")]), () => ( false));
|
|
4646
4646
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
4647
4647
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
4648
|
-
const mcpLabel =
|
|
4648
|
+
const mcpLabel = _chunkTQJ35BBWcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
4649
4649
|
if (mcpLabel) return mcpLabel;
|
|
4650
4650
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
4651
4651
|
return routePathname === _chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH : null;
|
|
@@ -4654,7 +4654,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4654
4654
|
const match = routeManager2.matchRoute(pathname2);
|
|
4655
4655
|
return {
|
|
4656
4656
|
kind: "page",
|
|
4657
|
-
route:
|
|
4657
|
+
route: _chunkTQJ35BBWcjs.setFarmRouteLabel.call(void 0,
|
|
4658
4658
|
{
|
|
4659
4659
|
pathname: pathname2,
|
|
4660
4660
|
pattern: _optionalChain([match, 'optionalAccess', _341 => _341.route, 'optionalAccess', _342 => _342.pattern]) || null,
|
|
@@ -4881,7 +4881,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4881
4881
|
if (imageModule) return imageModule;
|
|
4882
4882
|
}
|
|
4883
4883
|
if (_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
|
|
4884
|
-
const renderer = _optionalChain([farmApp, 'optionalAccess', _367 => _367.getConfig, 'call', _368 => _368(), 'access', _369 => _369.renderer]) ||
|
|
4884
|
+
const renderer = _optionalChain([farmApp, 'optionalAccess', _367 => _367.getConfig, 'call', _368 => _368(), 'access', _369 => _369.renderer]) || _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, options.renderer);
|
|
4885
4885
|
const root = _optionalChain([server, 'optionalAccess', _370 => _370.config, 'access', _371 => _371.root]) || options.root;
|
|
4886
4886
|
if (isClientEnvironment(this, loadOptions)) {
|
|
4887
4887
|
return generateProgrammaticClientRouteModuleForId(
|
|
@@ -4899,7 +4899,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4899
4899
|
}
|
|
4900
4900
|
if (isFarmClientVirtualId(id)) {
|
|
4901
4901
|
const resolvedConfig = _optionalChain([farmApp, 'optionalAccess', _372 => _372.getConfig, 'call', _373 => _373()]);
|
|
4902
|
-
const renderer = _optionalChain([resolvedConfig, 'optionalAccess', _374 => _374.renderer]) ||
|
|
4902
|
+
const renderer = _optionalChain([resolvedConfig, 'optionalAccess', _374 => _374.renderer]) || _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, options.renderer);
|
|
4903
4903
|
const integrations = _optionalChain([resolvedConfig, 'optionalAccess', _375 => _375.integrations]) || options.integrations;
|
|
4904
4904
|
const root = _optionalChain([resolvedConfig, 'optionalAccess', _376 => _376.root]) || _optionalChain([server, 'optionalAccess', _377 => _377.config, 'access', _378 => _378.root]) || process.cwd();
|
|
4905
4905
|
const docs = _optionalChain([resolvedConfig, 'optionalAccess', _379 => _379.docs]);
|
|
@@ -4918,10 +4918,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4918
4918
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4919
4919
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkL2GUEYHRcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
4920
4920
|
const integrationProviders = _chunkB3HQTGXScjs.getIntegrationProviders.call(void 0, integrations);
|
|
4921
|
-
const isolatedHydrationMode =
|
|
4921
|
+
const isolatedHydrationMode = _chunkQYDGIXQ5cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
4922
4922
|
_optionalChain([resolvedConfig, 'optionalAccess', _385 => _385.experimental, 'optionalAccess', _386 => _386.isolatedClientHydration]),
|
|
4923
4923
|
{
|
|
4924
|
-
serverComponents:
|
|
4924
|
+
serverComponents: _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _387 => _387.experimental, 'optionalAccess', _388 => _388.serverComponents])) === "rsc",
|
|
4925
4925
|
hasUnsupportedIntegrationProvider: integrationProviders.filter((provider) => provider.component || provider.type === "clerk").some((provider) => provider.supportsIsolatedHydration !== true)
|
|
4926
4926
|
}
|
|
4927
4927
|
);
|
|
@@ -4940,14 +4940,14 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
4940
4940
|
_optionalChain([resolvedConfig, 'optionalAccess', _393 => _393.publicRuntimeConfig]) || options.publicRuntimeConfig,
|
|
4941
4941
|
adapterOwnsDocsRuntime ? _chunkL2GUEYHRcjs.getFarmDocsAdapterUIModule.call(void 0, _optionalChain([docs, 'optionalAccess', _394 => _394.adapter])) : void 0,
|
|
4942
4942
|
renderer,
|
|
4943
|
-
isolatedHydrationMode === "enabled" ||
|
|
4943
|
+
isolatedHydrationMode === "enabled" || _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _395 => _395.getRouteManager, 'call', _396 => _396(), 'access', _397 => _397.getIsolatedClientBoundaryModules, 'call', _398 => _398(root)])))), 'optionalAccess', _399 => _399.size]) > 0,
|
|
4944
4944
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _400 => _400.trailingSlash]), () => ( false)),
|
|
4945
4945
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _401 => _401.basePath]), () => ( "/")),
|
|
4946
|
-
|
|
4947
|
-
|
|
4946
|
+
_chunkP253SZJFcjs.generateClientCachePersistenceCode.call(void 0,
|
|
4947
|
+
_chunkP253SZJFcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _402 => _402.cache]))
|
|
4948
4948
|
),
|
|
4949
4949
|
adapterOwnsDocsRuntime ? _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
4950
|
-
|
|
4950
|
+
_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _403 => _403.experimental, 'optionalAccess', _404 => _404.serverComponents])) === "islands"
|
|
4951
4951
|
);
|
|
4952
4952
|
}
|
|
4953
4953
|
if (id === "/@farm/server") {
|
|
@@ -4966,11 +4966,11 @@ export const getManifest = () => ({
|
|
|
4966
4966
|
});
|
|
4967
4967
|
`;
|
|
4968
4968
|
}
|
|
4969
|
-
const globalStylesheetHref =
|
|
4969
|
+
const globalStylesheetHref = _chunkP253SZJFcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
4970
4970
|
server.config.root,
|
|
4971
4971
|
_optionalChain([farmApp, 'optionalAccess', _407 => _407.getConfig, 'call', _408 => _408(), 'access', _409 => _409.srcDir])
|
|
4972
4972
|
);
|
|
4973
|
-
const fullManifest =
|
|
4973
|
+
const fullManifest = _chunkP253SZJFcjs.createFarmDevClientManifest.call(void 0,
|
|
4974
4974
|
routeManager.generateClientManifest(server.config.root),
|
|
4975
4975
|
{
|
|
4976
4976
|
sharedAssets: globalStylesheetHref ? [{ tag: "link", attrs: { rel: "stylesheet", href: globalStylesheetHref } }] : []
|
|
@@ -4992,45 +4992,45 @@ export { manifest };
|
|
|
4992
4992
|
const runtimeModule = !isBuild && _optionalChain([transformOptions, 'optionalAccess', _411 => _411.ssr]) === true && isOutsideAppRoot(id) ? toFarmRuntimeModuleId : void 0;
|
|
4993
4993
|
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _412 => _412.getConfig, 'call', _413 => _413()]), () => ( options));
|
|
4994
4994
|
let rewrotePackageImports = false;
|
|
4995
|
-
if (
|
|
4995
|
+
if (_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _414 => _414.experimental, 'optionalAccess', _415 => _415.serverComponents])) === "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) && !_chunkQYDGIXQ5cjs.hasUseClientDirective.call(void 0, code)) {
|
|
4996
4996
|
const file = id.split("?", 1)[0];
|
|
4997
4997
|
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _417 => _417.config, 'access', _418 => _418.root]) || process.cwd();
|
|
4998
4998
|
const buildSnapshot = isBuild ? options.sourceSnapshot : void 0;
|
|
4999
4999
|
const rewrite = () => {
|
|
5000
5000
|
if (_optionalChain([transformOptions, 'optionalAccess', _419 => _419.ssr]) === true) {
|
|
5001
5001
|
if (farmReactServerFiles.has(file)) {
|
|
5002
|
-
for (const child of
|
|
5002
|
+
for (const child of _chunkQYDGIXQ5cjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
5003
5003
|
farmReactServerFiles.add(child);
|
|
5004
5004
|
}
|
|
5005
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
5005
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunkQYDGIXQ5cjs.getFarmClientReachableModules.call(void 0,
|
|
5006
5006
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
5007
5007
|
projectRoot
|
|
5008
5008
|
).has(path6.resolve(file));
|
|
5009
|
-
const reactServer = !serverModule ? null :
|
|
5009
|
+
const reactServer = !serverModule ? null : _chunkQYDGIXQ5cjs.rewriteFarmReactServerImports.call(void 0, {
|
|
5010
5010
|
code,
|
|
5011
5011
|
file,
|
|
5012
|
-
reference: (specifier, exportName) =>
|
|
5012
|
+
reference: (specifier, exportName) => _chunkQYDGIXQ5cjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
|
|
5013
5013
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
5014
5014
|
});
|
|
5015
5015
|
if (reactServer !== null) {
|
|
5016
5016
|
code = reactServer;
|
|
5017
5017
|
rewrotePackageImports = true;
|
|
5018
5018
|
}
|
|
5019
|
-
const internal = farmReactServerFiles.has(file) ?
|
|
5019
|
+
const internal = farmReactServerFiles.has(file) ? _chunkQYDGIXQ5cjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
|
|
5020
5020
|
code,
|
|
5021
5021
|
file,
|
|
5022
|
-
reference: (clientFile) =>
|
|
5022
|
+
reference: (clientFile) => _chunkQYDGIXQ5cjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
|
|
5023
5023
|
}) : null;
|
|
5024
5024
|
if (internal !== null) {
|
|
5025
5025
|
code = internal;
|
|
5026
5026
|
rewrotePackageImports = true;
|
|
5027
5027
|
}
|
|
5028
5028
|
}
|
|
5029
|
-
const rewritePackageImports = (source2) =>
|
|
5029
|
+
const rewritePackageImports = (source2) => _chunkQYDGIXQ5cjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
5030
5030
|
code: source2,
|
|
5031
5031
|
file,
|
|
5032
5032
|
root: projectRoot,
|
|
5033
|
-
isClientPackage: (specifier) =>
|
|
5033
|
+
isClientPackage: (specifier) => _chunkQYDGIXQ5cjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
5034
5034
|
});
|
|
5035
5035
|
const routeManager = _optionalChain([farmApp, 'optionalAccess', _420 => _420.getRouteManager, 'call', _421 => _421()]);
|
|
5036
5036
|
const source = code;
|
|
@@ -5051,7 +5051,7 @@ export { manifest };
|
|
|
5051
5051
|
}
|
|
5052
5052
|
}
|
|
5053
5053
|
};
|
|
5054
|
-
if (buildSnapshot)
|
|
5054
|
+
if (buildSnapshot) _chunkQYDGIXQ5cjs.withFarmSourceSnapshotOf.call(void 0, buildSnapshot, rewrite);
|
|
5055
5055
|
else rewrite();
|
|
5056
5056
|
}
|
|
5057
5057
|
if (islandsServerFns() && !_chunkPIUTGRDIcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
@@ -5080,8 +5080,8 @@ export { manifest };
|
|
|
5080
5080
|
}
|
|
5081
5081
|
if (!_optionalChain([transformOptions, 'optionalAccess', _428 => _428.ssr])) {
|
|
5082
5082
|
const docsConfigModule = _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _429 => _429.getConfig, 'call', _430 => _430(), 'optionalAccess', _431 => _431.docs]));
|
|
5083
|
-
if (
|
|
5084
|
-
const redacted =
|
|
5083
|
+
if (_chunkP253SZJFcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
5084
|
+
const redacted = _chunkP253SZJFcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
5085
5085
|
if (redacted !== null) return { code: redacted, map: null };
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
@@ -5090,9 +5090,9 @@ export { manifest };
|
|
|
5090
5090
|
if ((_optionalChain([currentConfig, 'access', _435 => _435.experimental, 'optionalAccess', _436 => _436.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
|
|
5091
5091
|
const violation = findClientServerFnViolation(code, id);
|
|
5092
5092
|
if (violation) {
|
|
5093
|
-
const locate =
|
|
5093
|
+
const locate = _chunkQYDGIXQ5cjs.createFarmSourceLocator.call(void 0, code, () => this.getCombinedSourcemap());
|
|
5094
5094
|
this.error(
|
|
5095
|
-
|
|
5095
|
+
_chunkQYDGIXQ5cjs.formatFarmDiagnostic.call(void 0,
|
|
5096
5096
|
createServerFnBoundaryDiagnostic(violation, id, locate(violation.start)),
|
|
5097
5097
|
currentConfig.root
|
|
5098
5098
|
)
|
|
@@ -5134,13 +5134,13 @@ export { manifest };
|
|
|
5134
5134
|
transformed = true;
|
|
5135
5135
|
}
|
|
5136
5136
|
}
|
|
5137
|
-
if (
|
|
5137
|
+
if (_chunkQYDGIXQ5cjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
5138
5138
|
const clientBoundarySource = transformedCode;
|
|
5139
5139
|
const moduleInfo = this.getModuleInfo(id);
|
|
5140
5140
|
if (moduleInfo) {
|
|
5141
5141
|
moduleInfo.isClientComponent = true;
|
|
5142
5142
|
}
|
|
5143
|
-
transformedCode =
|
|
5143
|
+
transformedCode = _chunkQYDGIXQ5cjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
5144
5144
|
transformed = true;
|
|
5145
5145
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _444 => _444.getConfig, 'call', _445 => _445()]), () => ( options));
|
|
5146
5146
|
let isolatedModuleReference = null;
|
|
@@ -5149,12 +5149,12 @@ export { manifest };
|
|
|
5149
5149
|
const cleanId = id.split("?", 1)[0];
|
|
5150
5150
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _448 => _448.getRouteManager, 'call', _449 => _449(), 'access', _450 => _450.getIsolatedClientBoundaryModules, 'call', _451 => _451(root)])));
|
|
5151
5151
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _452 => _452.has, 'call', _453 => _453(path6.resolve(cleanId))]) === true;
|
|
5152
|
-
if (
|
|
5153
|
-
cleanId.replace(/\\/g, "/").includes(
|
|
5152
|
+
if (_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunkQYDGIXQ5cjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
|
|
5153
|
+
cleanId.replace(/\\/g, "/").includes(_chunkQYDGIXQ5cjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
5154
5154
|
isolatedModuleReference = _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, cleanId, root);
|
|
5155
|
-
const islandsMode =
|
|
5156
|
-
const explicitStrategy =
|
|
5157
|
-
const inference = islandsMode && explicitStrategy === null ?
|
|
5155
|
+
const islandsMode = _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access', _454 => _454.experimental, 'optionalAccess', _455 => _455.serverComponents])) === "islands";
|
|
5156
|
+
const explicitStrategy = _chunkQYDGIXQ5cjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
|
|
5157
|
+
const inference = islandsMode && explicitStrategy === null ? _chunkP253SZJFcjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
|
|
5158
5158
|
if (inference) {
|
|
5159
5159
|
for (const file of inference.files) {
|
|
5160
5160
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -5177,14 +5177,14 @@ export { manifest };
|
|
|
5177
5177
|
);
|
|
5178
5178
|
}
|
|
5179
5179
|
transformedCode = transformedBoundary;
|
|
5180
|
-
} else if (selectedForIsolatedHydration &&
|
|
5180
|
+
} else if (selectedForIsolatedHydration && _chunkCPSFDQKJcjs.usesFarmRendererIslands.call(void 0, currentConfig) && (_chunkQYDGIXQ5cjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || cleanId.replace(/\\/g, "/").includes(_chunkQYDGIXQ5cjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
5181
5181
|
rendererIslandModule = true;
|
|
5182
5182
|
if (_optionalChain([transformOptions, 'optionalAccess', _458 => _458.ssr]) === true) {
|
|
5183
|
-
const renderer =
|
|
5183
|
+
const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer);
|
|
5184
5184
|
const transformedBoundary = transformIsolatedClientBoundaryModule({
|
|
5185
5185
|
code: transformedCode,
|
|
5186
5186
|
moduleReference: _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, cleanId, root),
|
|
5187
|
-
islandStrategy: _nullishCoalesce(
|
|
5187
|
+
islandStrategy: _nullishCoalesce(_chunkQYDGIXQ5cjs.getIslandStrategyExport.call(void 0, clientBoundarySource), () => ( "load")),
|
|
5188
5188
|
parse: (source) => this.parse(source),
|
|
5189
5189
|
withIsland: renderer.server
|
|
5190
5190
|
});
|
|
@@ -5359,10 +5359,10 @@ if (import.meta.hot) {
|
|
|
5359
5359
|
if (!watched.includes("/node_modules/") && !isFarmGeneratedOutput(watched)) {
|
|
5360
5360
|
_optionalChain([farmApp, 'optionalAccess', _464 => _464.getRouteManager, 'call', _465 => _465(), 'access', _466 => _466.noteSourceChange, 'call', _467 => _467(id, change.event)]);
|
|
5361
5361
|
}
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5362
|
+
_chunkQYDGIXQ5cjs.invalidateFarmClientReachableModules.call(void 0, );
|
|
5363
|
+
_chunkQYDGIXQ5cjs.invalidateFarmClientOnlyScan.call(void 0, );
|
|
5364
|
+
_chunkP253SZJFcjs.invalidateFarmRouteRootInferences.call(void 0, );
|
|
5365
|
+
_chunkQYDGIXQ5cjs.dropLatestPackageClientBoundaryCache.call(void 0, );
|
|
5366
5366
|
},
|
|
5367
5367
|
async handleHotUpdate(ctx) {
|
|
5368
5368
|
if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
|
|
@@ -5395,10 +5395,10 @@ if (import.meta.hot) {
|
|
|
5395
5395
|
}
|
|
5396
5396
|
server2.ws.send({ type: "full-reload", path: "*" });
|
|
5397
5397
|
};
|
|
5398
|
-
if (normalizedFile.includes(
|
|
5398
|
+
if (normalizedFile.includes(_chunkQYDGIXQ5cjs.FARM_CLIENT_REFERENCE_DIRECTORY) && normalizedFile.startsWith(
|
|
5399
5399
|
path6.posix.join(
|
|
5400
5400
|
_chunk7U4XF76Rcjs.toPosixPath.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _470 => _470.root]) || options.root || server2.config.root),
|
|
5401
|
-
|
|
5401
|
+
_chunkQYDGIXQ5cjs.FARM_CLIENT_REFERENCE_DIRECTORY
|
|
5402
5402
|
)
|
|
5403
5403
|
))
|
|
5404
5404
|
return modules;
|
|
@@ -5436,7 +5436,7 @@ if (import.meta.hot) {
|
|
|
5436
5436
|
const isolatedHydrationMode = _optionalChain([currentFarmConfig, 'optionalAccess', _475 => _475.experimental, 'optionalAccess', _476 => _476.isolatedClientHydration]);
|
|
5437
5437
|
const planRouteManager = _optionalChain([farmApp, 'optionalAccess', _477 => _477.getRouteManager, 'call', _478 => _478()]);
|
|
5438
5438
|
const isHydrationPlanSource = /\.[cm]?[jt]sx?$/.test(normalizedFile) && !normalizedFile.includes("/node_modules/") && !isFarmGeneratedOutput(normalizedFile);
|
|
5439
|
-
const tracksAsyncOwnerIslands =
|
|
5439
|
+
const tracksAsyncOwnerIslands = _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _479 => _479.renderer])) && planRouteManager !== void 0;
|
|
5440
5440
|
let clientPlanCurrent = false;
|
|
5441
5441
|
if (isHydrationPlanSource && (isolatedHydrationMode === "enabled" || isolatedHydrationMode === "analyze" || tracksAsyncOwnerIslands)) {
|
|
5442
5442
|
const routeManager = planRouteManager;
|
|
@@ -5695,27 +5695,27 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5695
5695
|
const parsed = _chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
5696
5696
|
const routesFile = resolveRealModuleFile(parsed.filePath, root);
|
|
5697
5697
|
watchFile(routesFile);
|
|
5698
|
-
return
|
|
5698
|
+
return _chunkQYDGIXQ5cjs.generateProgrammaticClientRouteModule.call(void 0, {
|
|
5699
5699
|
kind: parsed.kind,
|
|
5700
5700
|
routePath: parsed.routePath,
|
|
5701
5701
|
routesFile,
|
|
5702
5702
|
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _506 => _506.routes, 'access', _507 => _507.get, 'call', _508 => _508(
|
|
5703
|
-
|
|
5703
|
+
_chunkQYDGIXQ5cjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
|
|
5704
5704
|
)]),
|
|
5705
5705
|
// React's client module exports no createElement; the main client entry imports React too.
|
|
5706
|
-
rendererClient:
|
|
5706
|
+
rendererClient: _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? "react" : renderer.client,
|
|
5707
5707
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
5708
5708
|
});
|
|
5709
5709
|
}
|
|
5710
5710
|
function resolveRealModuleFile(filePath, root) {
|
|
5711
|
-
const resolved = _nullishCoalesce(
|
|
5711
|
+
const resolved = _nullishCoalesce(_chunkQYDGIXQ5cjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
5712
5712
|
try {
|
|
5713
5713
|
return _chunk7U4XF76Rcjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
5714
5714
|
} catch (e29) {
|
|
5715
5715
|
return _chunk7U4XF76Rcjs.toPosixPath.call(void 0, resolved);
|
|
5716
5716
|
}
|
|
5717
5717
|
}
|
|
5718
|
-
function generateProgrammaticRouteModule(moduleId, root, renderer =
|
|
5718
|
+
function generateProgrammaticRouteModule(moduleId, root, renderer = _chunkT7UC2ORAcjs.REACT_RENDERER) {
|
|
5719
5719
|
const parsed = _chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
5720
5720
|
if (!parsed) {
|
|
5721
5721
|
return "";
|
|
@@ -6046,8 +6046,8 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
6046
6046
|
throw new Error(`Invalid ${label} for route "${routePath}": ${message}`);
|
|
6047
6047
|
}
|
|
6048
6048
|
}
|
|
6049
|
-
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer =
|
|
6050
|
-
const providerClientCode =
|
|
6049
|
+
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer = _chunkT7UC2ORAcjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
6050
|
+
const providerClientCode = _chunkP253SZJFcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
6051
6051
|
integrationProviders,
|
|
6052
6052
|
root,
|
|
6053
6053
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -6058,8 +6058,8 @@ function generateClientCode(integrationProviders = [], documentNavigationMatcher
|
|
|
6058
6058
|
srcDir,
|
|
6059
6059
|
publicRuntimeConfig
|
|
6060
6060
|
);
|
|
6061
|
-
const appSetupPath =
|
|
6062
|
-
const rendererClientImports =
|
|
6061
|
+
const appSetupPath = _chunkT7UC2ORAcjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
|
|
6062
|
+
const rendererClientImports = _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? `import React from 'react'
|
|
6063
6063
|
import { hydrateRoot, createRoot } from 'react-dom/client'
|
|
6064
6064
|
import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` : (
|
|
6065
6065
|
// Named exports only: a renderer's client module needs no default export. `React` is a
|
|
@@ -6073,13 +6073,13 @@ __farmConfigureApp(__farmAppSetup)` : `import * as __farmRendererClient from ${J
|
|
|
6073
6073
|
import { hydrateRoot, createRoot } from ${JSON.stringify(renderer.client)}
|
|
6074
6074
|
const React = { ...__farmRendererClient }`
|
|
6075
6075
|
);
|
|
6076
|
-
const rendererIslands = isolatedHydrationEnabled && !islandValues && !
|
|
6076
|
+
const rendererIslands = isolatedHydrationEnabled && !islandValues && !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands;
|
|
6077
6077
|
const isolatedHydrationImport = rendererIslands ? "import { createFarmRendererIslandRuntime } from '@farm.js/core/internal/renderer-islands'" : isolatedHydrationEnabled ? `${islandValues ? "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement, createFarmServerTreeLayout } from '@farm.js/core/internal/islands-runtime'" : "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from '@farm.js/core/internal/isolated-boundary'\nimport { createFarmServerTreeElement } from '@farm.js/core/internal/server-tree'"}` : "";
|
|
6078
6078
|
const docsAdapterImportBlock = _chunkXJDB564Acjs.generateFarmDocsAdapterClientRuntime.call(void 0,
|
|
6079
6079
|
docsAdapterUI,
|
|
6080
6080
|
docsConfigModule,
|
|
6081
6081
|
// Config resolution keeps an adapter to its UI's renderer, so this is the UI's renderer too.
|
|
6082
|
-
|
|
6082
|
+
_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? void 0 : renderer.client
|
|
6083
6083
|
);
|
|
6084
6084
|
const isolatedHydrationRuntime = rendererIslands ? `const farmIsolatedHydrationRuntime = createFarmRendererIslandRuntime({
|
|
6085
6085
|
renderer: React,
|
|
@@ -6145,7 +6145,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
6145
6145
|
return null;
|
|
6146
6146
|
}
|
|
6147
6147
|
}
|
|
6148
|
-
${islandValues ? `${
|
|
6148
|
+
${islandValues ? `${_chunkP253SZJFcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
6149
6149
|
let farmLastRouteState = null;
|
|
6150
6150
|
|
|
6151
6151
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -6986,7 +6986,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
6986
6986
|
return loadedLayouts;
|
|
6987
6987
|
}
|
|
6988
6988
|
|
|
6989
|
-
${
|
|
6989
|
+
${_chunkP253SZJFcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
6990
6990
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
6991
6991
|
let wrapped = element;
|
|
6992
6992
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -7065,7 +7065,7 @@ async function buildWrappedHydrationElement(PageComponent, pageProps, layouts =
|
|
|
7065
7065
|
|
|
7066
7066
|
function hydrateFarmRoute(container, route) {
|
|
7067
7067
|
farmLastRouteState = route;
|
|
7068
|
-
${
|
|
7068
|
+
${_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);"}
|
|
7069
7069
|
}
|
|
7070
7070
|
|
|
7071
7071
|
function renderFarmRoute(root, route) {
|
|
@@ -7209,7 +7209,7 @@ async function tryHydrateImportedPage(
|
|
|
7209
7209
|
wrap: wrapFarmClientRouteGraph,
|
|
7210
7210
|
};
|
|
7211
7211
|
} else if (useHydrate && container?.id === '__farm_page__') {
|
|
7212
|
-
wrappedElement = wrapFarmClientRouteGraph(${
|
|
7212
|
+
wrappedElement = wrapFarmClientRouteGraph(${_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? "restorePagePosition(React, container, pageElement)" : "pageElement"});
|
|
7213
7213
|
} else {
|
|
7214
7214
|
wrappedElement = await buildWrappedHydrationElement(
|
|
7215
7215
|
currentPageComponent,
|
|
@@ -7286,7 +7286,7 @@ function readActiveLayoutPatterns() {
|
|
|
7286
7286
|
);
|
|
7287
7287
|
}
|
|
7288
7288
|
|
|
7289
|
-
${
|
|
7289
|
+
${_chunkP253SZJFcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
7290
7290
|
|
|
7291
7291
|
function activateFragmentScripts(root) {
|
|
7292
7292
|
for (const script of Array.from(root.querySelectorAll?.('script') || [])) {
|
|
@@ -7345,7 +7345,7 @@ function getLayoutShell(root, patterns, index, find) {
|
|
|
7345
7345
|
return shell.innerHTML;
|
|
7346
7346
|
}
|
|
7347
7347
|
|
|
7348
|
-
${islandValues ?
|
|
7348
|
+
${islandValues ? _chunkP253SZJFcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
|
|
7349
7349
|
container,
|
|
7350
7350
|
fragment,
|
|
7351
7351
|
currentPatterns,
|
|
@@ -7420,9 +7420,9 @@ ${islandValues ? `
|
|
|
7420
7420
|
return nextTarget;
|
|
7421
7421
|
}
|
|
7422
7422
|
|
|
7423
|
-
${islandValues ? `${
|
|
7423
|
+
${islandValues ? `${_chunkP253SZJFcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7424
7424
|
|
|
7425
|
-
${
|
|
7425
|
+
${_chunkP253SZJFcjs.FARM_EARLY_NAVIGATION_SOURCE}
|
|
7426
7426
|
|
|
7427
7427
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7428
7428
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -8138,12 +8138,12 @@ async function defineConfig(config = {}) {
|
|
|
8138
8138
|
);
|
|
8139
8139
|
config = layeredConfig;
|
|
8140
8140
|
}
|
|
8141
|
-
config.renderer =
|
|
8142
|
-
config.images =
|
|
8143
|
-
const rendererVitePlugins = await
|
|
8141
|
+
config.renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
8142
|
+
config.images = _chunkP253SZJFcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
8143
|
+
const rendererVitePlugins = await _chunkT7UC2ORAcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
8144
8144
|
ssr: true
|
|
8145
8145
|
});
|
|
8146
|
-
const reactRefreshPlugins =
|
|
8146
|
+
const reactRefreshPlugins = _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, config.renderer) ? await _chunkY2FEFQAYcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
|
|
8147
8147
|
const nodeBuiltinStubs = {
|
|
8148
8148
|
"node:string_decoder": "data:text/javascript,export class StringDecoder { write(buf) { return ''; } end() { return ''; } }; export default StringDecoder;",
|
|
8149
8149
|
"node:buffer": "data:text/javascript,export const Buffer = { from: () => ({}), alloc: () => ({}), isBuffer: () => false }; export default { Buffer };",
|
|
@@ -8237,7 +8237,7 @@ async function defineConfig(config = {}) {
|
|
|
8237
8237
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
8238
8238
|
console.log("");
|
|
8239
8239
|
console.log(
|
|
8240
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
8240
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunk2NKNP4AHcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
8241
8241
|
);
|
|
8242
8242
|
console.log("");
|
|
8243
8243
|
console.log(
|
|
@@ -8271,7 +8271,7 @@ async function defineConfig(config = {}) {
|
|
|
8271
8271
|
plugins: [
|
|
8272
8272
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
8273
8273
|
_chunkY2FEFQAYcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
8274
|
-
|
|
8274
|
+
_chunkP253SZJFcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
8275
8275
|
tailwindVitePlugin,
|
|
8276
8276
|
...rendererVitePlugins,
|
|
8277
8277
|
...reactRefreshPlugins,
|
|
@@ -8281,14 +8281,14 @@ async function defineConfig(config = {}) {
|
|
|
8281
8281
|
farmNavigationPlugin(config.renderer),
|
|
8282
8282
|
farmIslandContainersPlugin(config),
|
|
8283
8283
|
farmPlugin(config),
|
|
8284
|
-
|
|
8284
|
+
_chunkQYDGIXQ5cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
8285
8285
|
farmBrandingPlugin
|
|
8286
8286
|
],
|
|
8287
8287
|
customLogger: farmLogger,
|
|
8288
8288
|
clearScreen: false,
|
|
8289
8289
|
optimizeDeps: {
|
|
8290
|
-
...
|
|
8291
|
-
|
|
8290
|
+
..._chunkP253SZJFcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
8291
|
+
_chunkP253SZJFcjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
8292
8292
|
appRoot,
|
|
8293
8293
|
_chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
8294
8294
|
),
|
|
@@ -8332,7 +8332,7 @@ async function defineConfig(config = {}) {
|
|
|
8332
8332
|
// Stub out problematic server-only modules during dev mode
|
|
8333
8333
|
alias: {
|
|
8334
8334
|
..._chunk52Q4OB4Acjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
8335
|
-
...
|
|
8335
|
+
..._chunkP253SZJFcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
8336
8336
|
// Nitro internals that should not be resolved in browser
|
|
8337
8337
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
8338
8338
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|