@farm.js/core 0.1.65 → 0.1.66
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-PE33SK5W.mjs → analyzer-4UFP4HVP.mjs} +3 -3
- package/dist/analyzer-H7SIX6BJ.cjs +16 -0
- package/dist/{chunk-IP2KHSGF.mjs → chunk-27FPUFWR.mjs} +56 -3
- package/dist/{chunk-JCEFKP5M.mjs → chunk-423SSBYQ.mjs} +6 -0
- package/dist/{chunk-E2TSYUHV.mjs → chunk-435QJNC2.mjs} +2 -2
- package/dist/{chunk-YD4J37RN.cjs → chunk-4OSOLDPL.cjs} +30 -19
- package/dist/{chunk-OSFIUSYK.cjs → chunk-4TVPYN32.cjs} +3 -3
- package/dist/{chunk-ZAUOOGER.mjs → chunk-672ISQIG.mjs} +1 -1
- package/dist/{chunk-C7DCMGC4.cjs → chunk-752IHQTD.cjs} +4 -4
- package/dist/{chunk-7QVRWGBL.cjs → chunk-7ONGIFYX.cjs} +4 -4
- package/dist/{chunk-VHHLKIDZ.mjs → chunk-AZUUKA66.mjs} +7 -7
- package/dist/{chunk-A3G5IY2W.cjs → chunk-BIF5MLTH.cjs} +1 -1
- package/dist/{chunk-HKNYNSOK.mjs → chunk-BYRZ5VTH.mjs} +1 -1
- package/dist/{chunk-V727H3RI.cjs → chunk-CCAUIBIS.cjs} +6 -0
- package/dist/{chunk-32RPJAAS.cjs → chunk-DVKH2RVN.cjs} +2 -2
- package/dist/{chunk-3KJPIO5D.cjs → chunk-E4UDLFWR.cjs} +24 -24
- package/dist/{chunk-EFZGB7JC.cjs → chunk-E5UN4OWX.cjs} +1 -0
- package/dist/{chunk-7GYCZRTH.mjs → chunk-EMNKZGF4.mjs} +4 -4
- package/dist/{chunk-ZQQK4U66.cjs → chunk-HZPKJRYA.cjs} +70 -17
- package/dist/{chunk-TZOGZKI7.cjs → chunk-IT6WRNGB.cjs} +77 -77
- package/dist/{chunk-72JSHQQQ.mjs → chunk-MPIGW42F.mjs} +1 -1
- package/dist/{chunk-WNXVWXG3.cjs → chunk-MPJEIHW2.cjs} +2 -2
- package/dist/{chunk-53ZCZ46B.cjs → chunk-NHQM2Q4I.cjs} +2 -1
- package/dist/{chunk-UYRI6U3P.mjs → chunk-O75GQVUK.mjs} +2 -1
- package/dist/{chunk-6X5NKNBE.mjs → chunk-OB7VKCUZ.mjs} +11 -10
- package/dist/{chunk-T4M52BA5.cjs → chunk-OP7LHY4Y.cjs} +103 -102
- package/dist/{chunk-CZF4XIRZ.cjs → chunk-RY4ABNPE.cjs} +3 -3
- package/dist/{chunk-GRBJ7VKH.mjs → chunk-SK7QSNWE.mjs} +1 -1
- package/dist/{chunk-YUW7F6SK.mjs → chunk-TKK5QHKZ.mjs} +1 -1
- package/dist/{chunk-ZNXTU4YH.mjs → chunk-TM2E623I.mjs} +1 -0
- package/dist/{chunk-ZX2JHEWW.mjs → chunk-UBMHQVWN.mjs} +20 -9
- package/dist/{chunk-TRIDJQ6A.cjs → chunk-VBCQ5WOI.cjs} +2 -2
- package/dist/{chunk-QHRCR44V.mjs → chunk-WFWFECDW.mjs} +1 -1
- package/dist/{chunk-Q75QPLBA.mjs → chunk-WVYRLP5E.mjs} +1 -1
- package/dist/{devtools-SGYOG36E.cjs → devtools-N2JQCMXB.cjs} +2 -2
- package/dist/{devtools-PUVZB3F2.mjs → devtools-NZUVNUP3.mjs} +1 -1
- package/dist/docs.cjs +3 -3
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/index.cjs +14 -14
- package/dist/index.mjs +13 -13
- package/dist/internal/build-runtime.cjs +15 -15
- package/dist/internal/build-runtime.mjs +14 -14
- package/dist/internal/cli-runtime.cjs +2 -2
- 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/config-runtime.cjs +3 -3
- package/dist/internal/config-runtime.mjs +2 -2
- 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 +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +7 -7
- package/dist/internal/production-runtime.d.mts +7 -0
- package/dist/internal/production-runtime.d.ts +7 -0
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/{native-tree-HE2FLS72.cjs → native-tree-7LPH57Z4.cjs} +3 -3
- package/dist/{native-tree-YF2DSPKM.mjs → native-tree-VV6WN3GX.mjs} +2 -2
- package/dist/plugin.cjs +7 -7
- package/dist/plugin.mjs +6 -6
- package/dist/{port-UFUZL6RI.mjs → port-CLL4BC4O.mjs} +1 -1
- package/dist/{port-VTLHPZOI.cjs → port-HASZTQGY.cjs} +9 -9
- package/dist/{rsc-pipeline-T3PWURLJ.mjs → rsc-pipeline-7PNVJSTR.mjs} +2 -2
- package/dist/{rsc-pipeline-V4ANLRAA.cjs → rsc-pipeline-Z7QBZOIJ.cjs} +3 -3
- package/dist/{runtime-5AROV2C3.cjs → runtime-FKFCUHSK.cjs} +13 -13
- package/dist/{runtime-LRIQ3XH7.mjs → runtime-QQHX4BP3.mjs} +5 -5
- package/dist/server.cjs +25 -25
- package/dist/server.mjs +9 -9
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +7 -7
- package/dist/vite.mjs +6 -6
- package/package.json +1 -1
- package/dist/analyzer-GHWK46LX.cjs +0 -16
- /package/dist/{chunk-IMK32ERL.cjs → chunk-CHYTADNK.cjs} +0 -0
- /package/dist/{chunk-2L54YV25.mjs → chunk-XBSLKXBL.mjs} +0 -0
|
@@ -62,6 +62,13 @@ interface FarmMobileShellClient {
|
|
|
62
62
|
webEntry: string;
|
|
63
63
|
/** The mobile client entry that replaces it, such as `/farm-mobile-client-h5e6f7a8b.js`. */
|
|
64
64
|
entry: string;
|
|
65
|
+
/**
|
|
66
|
+
* Islands mode's boot entry, such as `/farm-client-boot-h1a2b3c4d.js`, which a shell's document
|
|
67
|
+
* also replaces with the mobile entry. The boot loads the client only when the page first needs
|
|
68
|
+
* it, but the shell needs it at once: it hands links to the navigator, tells the shell the screen
|
|
69
|
+
* is ready, and lets a warm WebView render the next screen in place.
|
|
70
|
+
*/
|
|
71
|
+
webBoot?: string;
|
|
65
72
|
/**
|
|
66
73
|
* Web client files, without the leading slash, that the mobile client does not load. Their
|
|
67
74
|
* modulepreload links are dropped from a shell's document; shared chunks keep theirs.
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
_applyFarmMobileShellClient,
|
|
3
3
|
_checkFarmMobileShellRoute,
|
|
4
4
|
_isFarmMobileShellRenderRequest
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-O75GQVUK.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createFarmNativeTreeResponse
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-27FPUFWR.mjs";
|
|
9
9
|
import {
|
|
10
10
|
handleFarmDefaultMCPRequest
|
|
11
11
|
} from "../chunk-WAY6LOQH.mjs";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
createFarmMobileSessionPlugin
|
|
20
20
|
} from "../chunk-B4CWYGCG.mjs";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-423SSBYQ.mjs";
|
|
22
22
|
import {
|
|
23
23
|
_withFarmGuardedResponseCache,
|
|
24
24
|
applyProductionMiddlewareHeaders,
|
|
@@ -70,14 +70,14 @@ import {
|
|
|
70
70
|
resolveFarmMCPRouteLabel,
|
|
71
71
|
resolveFarmMarkdownRouteLabel,
|
|
72
72
|
setFarmRouteLabel
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-435QJNC2.mjs";
|
|
74
74
|
import {
|
|
75
75
|
collectFarmDefaultMCPPages,
|
|
76
76
|
resolveFarmDefaultMCPServer
|
|
77
77
|
} from "../chunk-MESQF2JC.mjs";
|
|
78
78
|
import {
|
|
79
79
|
resolveFarmPreviewDeployment
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-WVYRLP5E.mjs";
|
|
81
81
|
import "../chunk-X3EFRVXY.mjs";
|
|
82
82
|
import {
|
|
83
83
|
ignoreFarmHeldValues,
|
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
resolveFarmServerConfig
|
|
185
185
|
} from "../chunk-QDWMCFTH.mjs";
|
|
186
186
|
import "../chunk-D2LCAV6L.mjs";
|
|
187
|
-
import "../chunk-
|
|
187
|
+
import "../chunk-MPIGW42F.mjs";
|
|
188
188
|
import {
|
|
189
189
|
resolveFarmTrailingSlashRedirect,
|
|
190
190
|
setFarmTrailingSlashPreference
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkHZPKJRYAcjs = require('./chunk-HZPKJRYA.cjs');
|
|
7
|
+
require('./chunk-CCAUIBIS.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
@@ -24,4 +24,4 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
exports.FARM_NATIVE_TREE_CONTENT_TYPE = _chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE; exports.createFarmNativeTree =
|
|
27
|
+
exports.FARM_NATIVE_TREE_CONTENT_TYPE = _chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE; exports.createFarmNativeTree = _chunkHZPKJRYAcjs.createFarmNativeTree; exports.createFarmNativeTreeResponse = _chunkHZPKJRYAcjs.createFarmNativeTreeResponse; exports.farmRequestWantsNativeTree = _chunkHZPKJRYAcjs.farmRequestWantsNativeTree; exports.readFarmPageStylesheets = _chunkHZPKJRYAcjs.readFarmPageStylesheets;
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
createFarmNativeTreeResponse,
|
|
4
4
|
farmRequestWantsNativeTree,
|
|
5
5
|
readFarmPageStylesheets
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-27FPUFWR.mjs";
|
|
7
|
+
import "./chunk-423SSBYQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
FARM_NATIVE_TREE_CONTENT_TYPE
|
|
10
10
|
} from "./chunk-LLZSYFOM.mjs";
|
package/dist/plugin.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIT6WRNGBcjs = require('./chunk-IT6WRNGB.cjs');
|
|
4
4
|
require('./chunk-65Y5SIBH.cjs');
|
|
5
5
|
require('./chunk-5IQ2ERQA.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-E4UDLFWR.cjs');
|
|
7
7
|
require('./chunk-R53QDV6T.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
@@ -26,9 +26,9 @@ require('./chunk-3HLQTOVU.cjs');
|
|
|
26
26
|
require('./chunk-47JV57DA.cjs');
|
|
27
27
|
require('./chunk-EZTKXD6P.cjs');
|
|
28
28
|
require('./chunk-CLFEQGET.cjs');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-752IHQTD.cjs');
|
|
30
30
|
require('./chunk-Y5TOT5F6.cjs');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-MPJEIHW2.cjs');
|
|
32
32
|
require('./chunk-CKPTIEDX.cjs');
|
|
33
33
|
require('./chunk-XGJVRPYL.cjs');
|
|
34
34
|
require('./chunk-TVCFY3KK.cjs');
|
|
@@ -36,7 +36,7 @@ require('./chunk-4EBC7EMW.cjs');
|
|
|
36
36
|
require('./chunk-PIUTGRDI.cjs');
|
|
37
37
|
require('./chunk-OWOUTKIJ.cjs');
|
|
38
38
|
require('./chunk-7EPYN7GW.cjs');
|
|
39
|
-
require('./chunk-
|
|
39
|
+
require('./chunk-7ONGIFYX.cjs');
|
|
40
40
|
require('./chunk-7KJJ4SBS.cjs');
|
|
41
41
|
require('./chunk-GSVJ3IIF.cjs');
|
|
42
42
|
require('./chunk-5YPBFMBN.cjs');
|
|
@@ -115,7 +115,7 @@ require('./chunk-YIHRZBD7.cjs');
|
|
|
115
115
|
require('./chunk-2OF5RPVU.cjs');
|
|
116
116
|
require('./chunk-CFG4QERR.cjs');
|
|
117
117
|
require('./chunk-JYT7AN37.cjs');
|
|
118
|
-
require('./chunk-
|
|
118
|
+
require('./chunk-BIF5MLTH.cjs');
|
|
119
119
|
require('./chunk-JGAE5XPL.cjs');
|
|
120
120
|
require('./chunk-OOZEU5KK.cjs');
|
|
121
121
|
require('./chunk-HA7YRO53.cjs');
|
|
@@ -155,4 +155,4 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
exports.FARM_NODE_RESPONSE_END_PENDING = _chunk3EEET2Q5cjs.FARM_NODE_RESPONSE_END_PENDING; exports.FarmDevEnvironmentError = _chunkJYNNIGQOcjs.FarmDevEnvironmentError; exports.FarmRuntimeShutdownError = _chunk3EEET2Q5cjs.FarmRuntimeShutdownError; exports.PluginManager = _chunk3EEET2Q5cjs.PluginManager; exports.definePlugin = _chunk3EEET2Q5cjs.definePlugin; exports.farmPlugin =
|
|
158
|
+
exports.FARM_NODE_RESPONSE_END_PENDING = _chunk3EEET2Q5cjs.FARM_NODE_RESPONSE_END_PENDING; exports.FarmDevEnvironmentError = _chunkJYNNIGQOcjs.FarmDevEnvironmentError; exports.FarmRuntimeShutdownError = _chunk3EEET2Q5cjs.FarmRuntimeShutdownError; exports.PluginManager = _chunk3EEET2Q5cjs.PluginManager; exports.definePlugin = _chunk3EEET2Q5cjs.definePlugin; exports.farmPlugin = _chunkIT6WRNGBcjs.farmPlugin; exports.loadFarmDevModule = _chunkJYNNIGQOcjs.loadFarmDevModule; exports.resolveFarmDevtoolsConfig = _chunkSTF6VDYQcjs.resolveFarmDevtoolsConfig;
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AZUUKA66.mjs";
|
|
4
4
|
import "./chunk-QOSDWGKT.mjs";
|
|
5
5
|
import "./chunk-3TXKFRSO.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-EMNKZGF4.mjs";
|
|
7
7
|
import "./chunk-OM7WILES.mjs";
|
|
8
8
|
import {
|
|
9
9
|
FARM_NODE_RESPONSE_END_PENDING,
|
|
@@ -26,9 +26,9 @@ import "./chunk-LLZSYFOM.mjs";
|
|
|
26
26
|
import "./chunk-UUMKLGUU.mjs";
|
|
27
27
|
import "./chunk-23LVFSID.mjs";
|
|
28
28
|
import "./chunk-MK5E44WP.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-435QJNC2.mjs";
|
|
30
30
|
import "./chunk-MESQF2JC.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-WVYRLP5E.mjs";
|
|
32
32
|
import "./chunk-X3EFRVXY.mjs";
|
|
33
33
|
import "./chunk-A4PWGL46.mjs";
|
|
34
34
|
import "./chunk-MNIR7I7B.mjs";
|
|
@@ -36,7 +36,7 @@ import "./chunk-L4RTTTVE.mjs";
|
|
|
36
36
|
import "./chunk-GNZIAJGB.mjs";
|
|
37
37
|
import "./chunk-XAXTTBUT.mjs";
|
|
38
38
|
import "./chunk-HZOMT5DY.mjs";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-672ISQIG.mjs";
|
|
40
40
|
import "./chunk-S32PDOLO.mjs";
|
|
41
41
|
import "./chunk-TUPKMMXT.mjs";
|
|
42
42
|
import "./chunk-Q5B4LNON.mjs";
|
|
@@ -115,7 +115,7 @@ import "./chunk-CO6UYM2D.mjs";
|
|
|
115
115
|
import "./chunk-2I6PUKWJ.mjs";
|
|
116
116
|
import "./chunk-QDWMCFTH.mjs";
|
|
117
117
|
import "./chunk-D2LCAV6L.mjs";
|
|
118
|
-
import "./chunk-
|
|
118
|
+
import "./chunk-MPIGW42F.mjs";
|
|
119
119
|
import "./chunk-RFKTJTWZ.mjs";
|
|
120
120
|
import "./chunk-QPNVDSFZ.mjs";
|
|
121
121
|
import "./chunk-GYMGK467.mjs";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
9
9
|
require('./chunk-BTZ5O6VM.cjs');
|
|
10
10
|
|
|
11
11
|
// src/mobile/port.ts
|
|
@@ -311,7 +311,7 @@ async function emitFarmMobilePort(options) {
|
|
|
311
311
|
problems.push(
|
|
312
312
|
`${posix(_path2.default.relative(root, file))} uses ${directive[0]}, which ports do not read yet`
|
|
313
313
|
);
|
|
314
|
-
} else sheets.push(
|
|
314
|
+
} else sheets.push(_chunkCCAUIBIScjs.parseFarmNativeStylesheet.call(void 0, css));
|
|
315
315
|
}
|
|
316
316
|
for (const specifier of _nullishCoalesce(options.unreadStylesheets, () => ( []))) {
|
|
317
317
|
problems.push(`the app imports "${specifier}", which ports cannot read as plain CSS`);
|
|
@@ -325,7 +325,7 @@ async function emitFarmMobilePort(options) {
|
|
|
325
325
|
),
|
|
326
326
|
dark: Object.assign({}, ...sheets.map((sheet2) => sheet2.vars.dark))
|
|
327
327
|
};
|
|
328
|
-
const theme = themeDeclarations.length > 0 ?
|
|
328
|
+
const theme = themeDeclarations.length > 0 ? _chunkCCAUIBIScjs.createFarmNativeTheme.call(void 0, themeDeclarations, rootVars) : void 0;
|
|
329
329
|
const contextClasses = /* @__PURE__ */ new Set([
|
|
330
330
|
...graph.layoutClasses,
|
|
331
331
|
...classNames.flatMap((entry2) => entry2.classes)
|
|
@@ -334,18 +334,18 @@ async function emitFarmMobilePort(options) {
|
|
|
334
334
|
const utilities = [];
|
|
335
335
|
const appClasses = [];
|
|
336
336
|
for (const token of classes) {
|
|
337
|
-
const inTable =
|
|
338
|
-
const styled =
|
|
337
|
+
const inTable = _chunkCCAUIBIScjs.resolveFarmNativeClasses.call(void 0, token, theme).unsupported.length === 0;
|
|
338
|
+
const styled = _chunkCCAUIBIScjs.inspectFarmNativeStylesheets.call(void 0, sheets, { class: token }).styled;
|
|
339
339
|
if (tailwind && inTable) utilities.push(token);
|
|
340
340
|
if (styled) appClasses.push(token);
|
|
341
341
|
else if (tailwind && !inTable) {
|
|
342
342
|
problems.push(
|
|
343
|
-
`${at} ${_nullishCoalesce(
|
|
343
|
+
`${at} ${_nullishCoalesce(_chunkCCAUIBIScjs.farmNativeClassProblem.call(void 0, token, theme), () => ( `class "${token}" has no port style`))}`
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
const tw =
|
|
348
|
-
const css =
|
|
347
|
+
const tw = _chunkCCAUIBIScjs.resolveFarmNativeClasses.call(void 0, utilities.join(" "), theme);
|
|
348
|
+
const css = _chunkCCAUIBIScjs.cascadeFarmNativeStylesheetsForElement.call(void 0,
|
|
349
349
|
sheets,
|
|
350
350
|
{ tag, classes: appClasses },
|
|
351
351
|
contextClasses
|
|
@@ -376,7 +376,7 @@ async function emitFarmMobilePort(options) {
|
|
|
376
376
|
${output}`;
|
|
377
377
|
}
|
|
378
378
|
for (const tag of ["html", "body", ...[...tags].sort()]) {
|
|
379
|
-
const cascaded =
|
|
379
|
+
const cascaded = _chunkCCAUIBIScjs.cascadeFarmNativeStylesheetsForElement.call(void 0, sheets, { tag }, contextClasses);
|
|
380
380
|
problems.push(...cascaded.problems);
|
|
381
381
|
const entry2 = {
|
|
382
382
|
...Object.keys(cascaded.style).length > 0 ? { style: cascaded.style } : {},
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildFarmRsc,
|
|
3
3
|
createFarmRscDevServer,
|
|
4
4
|
createFarmRscViteConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WFWFECDW.mjs";
|
|
6
6
|
import {
|
|
7
7
|
FARM_RSC_PACKAGES,
|
|
8
8
|
farmAppUsesRscPipeline,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveFarmRscCheckConfig
|
|
12
12
|
} from "./chunk-HCGWDRZO.mjs";
|
|
13
13
|
import "./chunk-FN5UEC7I.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XBSLKXBL.mjs";
|
|
15
15
|
import "./chunk-VISQDC6W.mjs";
|
|
16
16
|
import "./chunk-QOSDWGKT.mjs";
|
|
17
17
|
import "./chunk-OM7WILES.mjs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVBCQ5WOIcjs = require('./chunk-VBCQ5WOI.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ var _chunkTRIDJQ6Acjs = require('./chunk-TRIDJQ6A.cjs');
|
|
|
11
11
|
|
|
12
12
|
var _chunkGL7N5UHFcjs = require('./chunk-GL7N5UHF.cjs');
|
|
13
13
|
require('./chunk-XVSBALOY.cjs');
|
|
14
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-CHYTADNK.cjs');
|
|
15
15
|
require('./chunk-OZC2JPW6.cjs');
|
|
16
16
|
require('./chunk-65Y5SIBH.cjs');
|
|
17
17
|
require('./chunk-R53QDV6T.cjs');
|
|
@@ -81,4 +81,4 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
exports.FARM_RSC_PACKAGES = _chunkGL7N5UHFcjs.FARM_RSC_PACKAGES; exports.buildFarmRsc =
|
|
84
|
+
exports.FARM_RSC_PACKAGES = _chunkGL7N5UHFcjs.FARM_RSC_PACKAGES; exports.buildFarmRsc = _chunkVBCQ5WOIcjs.buildFarmRsc; exports.createFarmRscDevServer = _chunkVBCQ5WOIcjs.createFarmRscDevServer; exports.createFarmRscViteConfig = _chunkVBCQ5WOIcjs.createFarmRscViteConfig; exports.farmAppUsesRscPipeline = _chunkGL7N5UHFcjs.farmAppUsesRscPipeline; exports.farmConfigUsesServerComponents = _chunkGL7N5UHFcjs.farmConfigUsesServerComponents; exports.inspectFarmServerComponents = _chunkGL7N5UHFcjs.inspectFarmServerComponents; exports.resolveFarmRscCheckConfig = _chunkGL7N5UHFcjs.resolveFarmRscCheckConfig;
|
|
@@ -10,10 +10,10 @@ require('./chunk-SVXOCTQ2.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkNHQM2Q4Icjs = require('./chunk-NHQM2Q4I.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkE5UN4OWXcjs = require('./chunk-E5UN4OWX.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ require('./chunk-WYAXRIYP.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkCHYTADNKcjs = require('./chunk-CHYTADNK.cjs');
|
|
27
27
|
require('./chunk-OZC2JPW6.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
@@ -995,18 +995,18 @@ async function renderFarmMobilePageShells(options) {
|
|
|
995
995
|
const queue = [...new Set(options.routes)].sort();
|
|
996
996
|
const render = async (route) => {
|
|
997
997
|
const response = await options.fetch(
|
|
998
|
-
`${options.basePath}${
|
|
998
|
+
`${options.basePath}${_chunkNHQM2Q4Icjs.createFarmMobileShellRenderPath.call(void 0, route)}`,
|
|
999
999
|
{
|
|
1000
1000
|
headers: {
|
|
1001
1001
|
Accept: "text/html",
|
|
1002
|
-
[
|
|
1003
|
-
[
|
|
1004
|
-
[
|
|
1002
|
+
[_chunkNHQM2Q4Icjs.FARM_SHELL_HEADER]: options.os,
|
|
1003
|
+
[_chunkNHQM2Q4Icjs.FARM_SHELL_RENDER_HEADER]: options.token,
|
|
1004
|
+
[_chunkNHQM2Q4Icjs.FARM_SHELL_ROUTE_HEADER]: route
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
);
|
|
1008
1008
|
const body = await response.text();
|
|
1009
|
-
if (response.headers.get(
|
|
1009
|
+
if (response.headers.get(_chunkNHQM2Q4Icjs.FARM_SHELL_RENDER_HEADER) === "none") {
|
|
1010
1010
|
skipped.push({ route, reason: body.trim() || "the server rendered no shell" });
|
|
1011
1011
|
return;
|
|
1012
1012
|
}
|
|
@@ -1105,7 +1105,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1105
1105
|
const root = path2.resolve(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'access', _76 => _76.config, 'optionalAccess', _77 => _77.root]), () => ( options.root)), () => ( process.cwd())));
|
|
1106
1106
|
const command = _nullishCoalesce(options.command, () => ( "build"));
|
|
1107
1107
|
const mode = command === "dev" ? "development" : "production";
|
|
1108
|
-
const userConfig = options.userConfig === void 0 ? await
|
|
1108
|
+
const userConfig = options.userConfig === void 0 ? await _chunkCHYTADNKcjs.loadConfig.call(void 0, root, void 0, mode) : options.userConfig;
|
|
1109
1109
|
if (_optionalChain([userConfig, 'optionalAccess', _78 => _78.mobile]) === void 0) {
|
|
1110
1110
|
throw new FarmMobileError(
|
|
1111
1111
|
'farm.config.ts has no `mobile` entry. Add one, such as `mobile: { id: "com.example.notes", server: "https://notes.example.com" }`.'
|
|
@@ -1119,7 +1119,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1119
1119
|
mode
|
|
1120
1120
|
});
|
|
1121
1121
|
const block = await resolveFarmMobileBlock(userConfig.mobile, context, options.cache);
|
|
1122
|
-
const config = await _asyncNullishCoalesce(options.config, async () => ( await
|
|
1122
|
+
const config = await _asyncNullishCoalesce(options.config, async () => ( await _chunkCHYTADNKcjs.resolveConfig.call(void 0, { ...userConfig, root }, mode)));
|
|
1123
1123
|
const scan = await _chunk752XUZIMcjs.scanRoutePatterns.call(void 0, {
|
|
1124
1124
|
root,
|
|
1125
1125
|
srcDir: config.srcDir,
|
|
@@ -1187,7 +1187,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1187
1187
|
return decision.source === "default" || decision.requested !== void 0;
|
|
1188
1188
|
});
|
|
1189
1189
|
const portable = mobile.native.engine !== "platform" && (mobile.native.auto === "on" || candidates.some((route) => screens[route].requested === "native"));
|
|
1190
|
-
const { analyzeFarmMobileRoutes } = await import("./analyzer-
|
|
1190
|
+
const { analyzeFarmMobileRoutes } = await import("./analyzer-H7SIX6BJ.cjs");
|
|
1191
1191
|
const analyzed = await analyzeFarmMobileRoutes({
|
|
1192
1192
|
root,
|
|
1193
1193
|
srcDir: config.srcDir,
|
|
@@ -1207,7 +1207,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1207
1207
|
)
|
|
1208
1208
|
};
|
|
1209
1209
|
if (portable) {
|
|
1210
|
-
const { emitFarmMobilePort } = await import("./port-
|
|
1210
|
+
const { emitFarmMobilePort } = await import("./port-HASZTQGY.cjs");
|
|
1211
1211
|
const portsDir = path2.resolve(root, getFarmMobileOutputDirs(config.distDir).ports);
|
|
1212
1212
|
for (const analysis of Object.values(result.routes)) {
|
|
1213
1213
|
const graph = result.graphs[analysis.route];
|
|
@@ -1345,4 +1345,4 @@ async function generateFarmMobileRoutes(options = {}) {
|
|
|
1345
1345
|
|
|
1346
1346
|
|
|
1347
1347
|
|
|
1348
|
-
exports.FARM_SHELL_PARAM_SEGMENT =
|
|
1348
|
+
exports.FARM_SHELL_PARAM_SEGMENT = _chunkNHQM2Q4Icjs.FARM_SHELL_PARAM_SEGMENT; exports.FARM_SHELL_RENDER_HEADER = _chunkNHQM2Q4Icjs.FARM_SHELL_RENDER_HEADER; exports.FARM_SHELL_ROUTE_HEADER = _chunkNHQM2Q4Icjs.FARM_SHELL_ROUTE_HEADER; exports.FarmMobileError = FarmMobileError; exports.createFarmMobileContext = createFarmMobileContext; exports.createFarmMobileModuleId = createFarmMobileModuleId; exports.createFarmMobilePageShell = createFarmMobilePageShell; exports.createFarmMobileRouteManifest = createFarmMobileRouteManifest; exports.createFarmMobileRoutePattern = createFarmMobileRoutePattern; exports.createFarmMobileShellRenderPath = _chunkNHQM2Q4Icjs.createFarmMobileShellRenderPath; exports.formatFarmMobileNativeReport = formatFarmMobileNativeReport; exports.generateFarmMobileRoutes = generateFarmMobileRoutes; exports.getFarmMobileOutputDirs = getFarmMobileOutputDirs; exports.getFarmMobilePageShellFile = getFarmMobilePageShellFile; exports.readFarmMobileClientManifest = _chunkE5UN4OWXcjs.readFarmMobileClientManifest; exports.readFarmMobilePageExport = readFarmMobilePageExport; exports.renderFarmMobilePageShells = renderFarmMobilePageShells; exports.resolveFarmMobileApp = resolveFarmMobileApp; exports.resolveFarmMobileBlock = resolveFarmMobileBlock; exports.resolveFarmMobileConfig = resolveFarmMobileConfig; exports.resolveFarmMobileScreens = resolveFarmMobileScreens; exports.validateFarmMobileConfig = validateFarmMobileConfig;
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
FARM_SHELL_RENDER_HEADER,
|
|
11
11
|
FARM_SHELL_ROUTE_HEADER,
|
|
12
12
|
createFarmMobileShellRenderPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O75GQVUK.mjs";
|
|
14
14
|
import {
|
|
15
15
|
readFarmMobileClientManifest
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TM2E623I.mjs";
|
|
17
17
|
import {
|
|
18
18
|
farmComponentModuleScripts,
|
|
19
19
|
keepFarmComponentRanges,
|
|
@@ -23,7 +23,7 @@ import "./chunk-E4RDMG3K.mjs";
|
|
|
23
23
|
import {
|
|
24
24
|
loadConfig,
|
|
25
25
|
resolveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XBSLKXBL.mjs";
|
|
27
27
|
import "./chunk-VISQDC6W.mjs";
|
|
28
28
|
import {
|
|
29
29
|
createPlatformBlockChecker,
|
|
@@ -1187,7 +1187,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1187
1187
|
return decision.source === "default" || decision.requested !== void 0;
|
|
1188
1188
|
});
|
|
1189
1189
|
const portable = mobile.native.engine !== "platform" && (mobile.native.auto === "on" || candidates.some((route) => screens[route].requested === "native"));
|
|
1190
|
-
const { analyzeFarmMobileRoutes } = await import("./analyzer-
|
|
1190
|
+
const { analyzeFarmMobileRoutes } = await import("./analyzer-4UFP4HVP.mjs");
|
|
1191
1191
|
const analyzed = await analyzeFarmMobileRoutes({
|
|
1192
1192
|
root,
|
|
1193
1193
|
srcDir: config.srcDir,
|
|
@@ -1207,7 +1207,7 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
1207
1207
|
)
|
|
1208
1208
|
};
|
|
1209
1209
|
if (portable) {
|
|
1210
|
-
const { emitFarmMobilePort } = await import("./port-
|
|
1210
|
+
const { emitFarmMobilePort } = await import("./port-CLL4BC4O.mjs");
|
|
1211
1211
|
const portsDir = path2.resolve(root, getFarmMobileOutputDirs(config.distDir).ports);
|
|
1212
1212
|
for (const analysis of Object.values(result.routes)) {
|
|
1213
1213
|
const graph = result.graphs[analysis.route];
|
package/dist/server.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var _chunkXVSBALOYcjs = require('./chunk-XVSBALOY.cjs');
|
|
|
4
4
|
require('./chunk-3376ZTRC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4TVPYN32cjs = require('./chunk-4TVPYN32.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkCHYTADNKcjs = require('./chunk-CHYTADNK.cjs');
|
|
28
28
|
require('./chunk-OZC2JPW6.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
@@ -40,7 +40,7 @@ require('./chunk-MPU5DOXX.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkIT6WRNGBcjs = require('./chunk-IT6WRNGB.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -56,7 +56,7 @@ require('./chunk-5IQ2ERQA.cjs');
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var _chunkE4UDLFWRcjs = require('./chunk-E4UDLFWR.cjs');
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
var _chunkR53QDV6Tcjs = require('./chunk-R53QDV6T.cjs');
|
|
@@ -84,9 +84,9 @@ require('./chunk-3HLQTOVU.cjs');
|
|
|
84
84
|
require('./chunk-47JV57DA.cjs');
|
|
85
85
|
require('./chunk-EZTKXD6P.cjs');
|
|
86
86
|
require('./chunk-CLFEQGET.cjs');
|
|
87
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-752IHQTD.cjs');
|
|
88
88
|
require('./chunk-Y5TOT5F6.cjs');
|
|
89
|
-
require('./chunk-
|
|
89
|
+
require('./chunk-MPJEIHW2.cjs');
|
|
90
90
|
require('./chunk-CKPTIEDX.cjs');
|
|
91
91
|
require('./chunk-XGJVRPYL.cjs');
|
|
92
92
|
require('./chunk-TVCFY3KK.cjs');
|
|
@@ -96,7 +96,7 @@ require('./chunk-OWOUTKIJ.cjs');
|
|
|
96
96
|
require('./chunk-7EPYN7GW.cjs');
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _chunk7ONGIFYXcjs = require('./chunk-7ONGIFYX.cjs');
|
|
100
100
|
require('./chunk-7KJJ4SBS.cjs');
|
|
101
101
|
require('./chunk-GSVJ3IIF.cjs');
|
|
102
102
|
require('./chunk-5YPBFMBN.cjs');
|
|
@@ -274,7 +274,7 @@ require('./chunk-CFG4QERR.cjs');
|
|
|
274
274
|
require('./chunk-JYT7AN37.cjs');
|
|
275
275
|
|
|
276
276
|
|
|
277
|
-
var
|
|
277
|
+
var _chunkBIF5MLTHcjs = require('./chunk-BIF5MLTH.cjs');
|
|
278
278
|
require('./chunk-JGAE5XPL.cjs');
|
|
279
279
|
require('./chunk-OOZEU5KK.cjs');
|
|
280
280
|
require('./chunk-HA7YRO53.cjs');
|
|
@@ -497,7 +497,7 @@ function createBrandingPlugin() {
|
|
|
497
497
|
const pc = _chunkY3WG64CPcjs.createCliColors.call(void 0, );
|
|
498
498
|
console.log("");
|
|
499
499
|
console.log(
|
|
500
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
500
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkBIF5MLTHcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
501
501
|
);
|
|
502
502
|
console.log("");
|
|
503
503
|
console.log(
|
|
@@ -572,7 +572,7 @@ function inlineEnvScope(scope) {
|
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
574
|
async function resolveInlineConfig(config, mode) {
|
|
575
|
-
if (
|
|
575
|
+
if (_chunkCHYTADNKcjs.isResolvedFarmConfig.call(void 0, config)) {
|
|
576
576
|
_chunk3EIPOTZVcjs.setEnv.call(void 0, config.env);
|
|
577
577
|
return { ...config };
|
|
578
578
|
}
|
|
@@ -582,7 +582,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
582
582
|
const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
|
|
583
583
|
const auth = config.auth;
|
|
584
584
|
const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
|
|
585
|
-
const resolved = await
|
|
585
|
+
const resolved = await _chunkCHYTADNKcjs.resolveConfig.call(void 0,
|
|
586
586
|
{
|
|
587
587
|
...config,
|
|
588
588
|
...resolvedDocs ? { docs: false } : {},
|
|
@@ -619,11 +619,11 @@ async function createServer2(config = {}, options = {}) {
|
|
|
619
619
|
try {
|
|
620
620
|
const root = config.root || process.cwd();
|
|
621
621
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
622
|
-
const userConfig = await
|
|
622
|
+
const userConfig = await _chunkCHYTADNKcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
623
623
|
checkWebDesktopBlock(_optionalChain([userConfig, 'optionalAccess', _19 => _19.desktop]));
|
|
624
624
|
const rscConfig = _nullishCoalesce(userConfig, () => ( config));
|
|
625
625
|
if (_chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([rscConfig, 'access', _20 => _20.experimental, 'optionalAccess', _21 => _21.serverComponents]))) {
|
|
626
|
-
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-
|
|
626
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-Z7QBZOIJ.cjs");
|
|
627
627
|
await _optionalChain([options, 'access', _22 => _22.ensureServerComponentsPackages, 'optionalCall', _23 => _23(rscConfig, root)]);
|
|
628
628
|
if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
|
|
629
629
|
return await createFarmRscDevServer(rscConfig, {
|
|
@@ -633,7 +633,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
const resolvedConfig = userConfig ? await
|
|
636
|
+
const resolvedConfig = userConfig ? await _chunkCHYTADNKcjs.resolveConfig.call(void 0, userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
637
637
|
const instrumentationRoot = resolvedConfig.root;
|
|
638
638
|
const instrumentationFile = _chunkBRWIVOV4cjs.resolveFarmInstrumentationFile.call(void 0,
|
|
639
639
|
instrumentationRoot,
|
|
@@ -670,7 +670,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
670
670
|
pluginManager.addPlugin(_chunkCL2ONP73cjs.createCompressionPlugin.call(void 0, ));
|
|
671
671
|
}
|
|
672
672
|
pluginManager.addPlugins(resolvedConfig.plugins);
|
|
673
|
-
const infraAnalytics = resolvedConfig.analytics !== false ?
|
|
673
|
+
const infraAnalytics = resolvedConfig.analytics !== false ? _chunk4TVPYN32cjs.createFarmInfraAnalyticsPlugin.call(void 0, ) : null;
|
|
674
674
|
if (infraAnalytics) pluginManager.addPlugin(infraAnalytics);
|
|
675
675
|
if (mode === "development") {
|
|
676
676
|
const hasLogger = pluginManager.getPlugins().some((p) => p.name === "farm:logger");
|
|
@@ -683,7 +683,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
683
683
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
684
684
|
finalConfig.renderer = _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
685
685
|
const projectRoot = finalConfig.root || process.cwd();
|
|
686
|
-
finalConfig.images =
|
|
686
|
+
finalConfig.images = _chunkE4UDLFWRcjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
687
687
|
root: projectRoot,
|
|
688
688
|
dev: true
|
|
689
689
|
});
|
|
@@ -704,21 +704,21 @@ async function createServer2(config = {}, options = {}) {
|
|
|
704
704
|
tailwindVitePlugin = await _chunkR53QDV6Tcjs.loadTailwindVitePlugin.call(void 0, );
|
|
705
705
|
}
|
|
706
706
|
server = await createViteDevServer(
|
|
707
|
-
|
|
707
|
+
_chunkE4UDLFWRcjs.mergeFarmViteConfig.call(void 0,
|
|
708
708
|
{
|
|
709
709
|
root: projectRoot,
|
|
710
710
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
711
711
|
plugins: [
|
|
712
712
|
_chunk65Y5SIBHcjs.farmDesktopDevGuardPlugin.call(void 0, finalConfig.basePath),
|
|
713
|
-
|
|
713
|
+
_chunkE4UDLFWRcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
714
714
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
715
715
|
...rendererVitePlugins,
|
|
716
716
|
...reactRefreshPlugins,
|
|
717
717
|
createDevDependencyStubsPlugin(),
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
718
|
+
_chunkIT6WRNGBcjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
719
|
+
_chunkIT6WRNGBcjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
720
|
+
_chunkIT6WRNGBcjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
721
|
+
_chunk7ONGIFYXcjs.farmEnvironmentFunctionsPlugin.call(void 0, finalConfig),
|
|
722
722
|
createBrandingPlugin(),
|
|
723
723
|
_chunkXVSBALOYcjs.createFarmDevLoopbackPlugin.call(void 0, ),
|
|
724
724
|
createFarmDevLifecyclePlugin(pluginManager, instrumentation)
|
|
@@ -733,8 +733,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
733
733
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
734
734
|
},
|
|
735
735
|
optimizeDeps: {
|
|
736
|
-
...
|
|
737
|
-
|
|
736
|
+
..._chunkE4UDLFWRcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
737
|
+
_chunkE4UDLFWRcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
738
738
|
finalConfig.renderer
|
|
739
739
|
),
|
|
740
740
|
exclude: [
|
|
@@ -970,4 +970,4 @@ async function startDevServer(config = {}, port, options = {}) {
|
|
|
970
970
|
|
|
971
971
|
|
|
972
972
|
|
|
973
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunk4P5634G6cjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkWKPBIT5Qcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp =
|
|
973
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunk4P5634G6cjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkWKPBIT5Qcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunkE4UDLFWRcjs.FarmApp; exports.FarmDataCache = _chunkDMAP4RNDcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkVXCFJWK5cjs.FarmEnvironmentError; exports.PPR_SHELL_ADAPTER_TTL_SECONDS = _chunkDMAP4RNDcjs.PPR_SHELL_ADAPTER_TTL_SECONDS; exports.RouteManager = _chunkE4UDLFWRcjs.RouteManager; exports.ServerActionRequestError = _chunk4P5634G6cjs.ServerActionRequestError; exports.ServerRenderer = _chunkE4UDLFWRcjs.ServerRenderer; exports._collectFarmStorageModules = _chunkJMYXO572cjs._collectFarmStorageModules; exports._registerFarmStorageModules = _chunkJMYXO572cjs._registerFarmStorageModules; exports._runWithAfterNodeResponse = _chunkP2355C6Ecjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkP2355C6Ecjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkP2355C6Ecjs._withAfterNodeMiddleware; exports.after = _chunkP2355C6Ecjs.after; exports.applyFarmCacheInvalidationTargets = _chunkDMAP4RNDcjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkUZCMMJJTcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunkDMAP4RNDcjs.configureFarmCache; exports.createClientOnlyFn = _chunkVXCFJWK5cjs.createClientOnlyFn; exports.createFarmApp = _chunkE4UDLFWRcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkDMAP4RNDcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkDXUXQP2Tcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunk5Y2P454Ocjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunkJMYXO572cjs.createFarmStorage; exports.createIsomorphicFn = _chunkVXCFJWK5cjs.createIsomorphicFn; exports.createPathCacheTag = _chunkDMAP4RNDcjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkDXUXQP2Tcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunkDMAP4RNDcjs.createRouteDataCacheTag; exports.createServer = createServer2; exports.createServerActionRequestErrorResponse = _chunk4P5634G6cjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkVXCFJWK5cjs.createServerOnlyFn; exports.createServerQuery = _chunkWKPBIT5Qcjs.createServerQuery; exports.createStorageClient = _chunkJMYXO572cjs.createStorageClient; exports.databaseStorage = _chunkJMYXO572cjs.databaseStorage; exports.defineCacheKey = _chunkDMAP4RNDcjs.defineCacheKey; exports.defineConfig = _chunkIT6WRNGBcjs.defineConfig; exports.defineStorageClient = _chunkJMYXO572cjs.defineStorageClient; exports.disposeStorage = _chunkJMYXO572cjs.disposeStorage; exports.driverStorage = _chunkJMYXO572cjs.driverStorage; exports.farmPlugin = _chunkIT6WRNGBcjs.farmPlugin; exports.fileExists = _chunkQMNWKQL4cjs.fileExists; exports.getCurrentRequest = _chunkHNAISJFDcjs.getCurrentRequest; exports.getFarmAppDirectories = _chunk5Y2P454Ocjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkDMAP4RNDcjs.getFarmDataCache; exports.getFarmLayerAliases = _chunk5Y2P454Ocjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunk5Y2P454Ocjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunk4P5634G6cjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunk4P5634G6cjs.getServerActionInvalidations; exports.getServerActionSignal = _chunk4P5634G6cjs.getServerActionSignal; exports.getStorage = _chunkJMYXO572cjs.getStorage; exports.getTheme = _chunk4ZJ5C7UJcjs.getTheme; exports.getThemeSnapshot = _chunk4ZJ5C7UJcjs.getThemeSnapshot; exports.globFiles = _chunkQMNWKQL4cjs.globFiles; exports.initStorage = _chunkJMYXO572cjs.initStorage; exports.invalidate = _chunkDMAP4RNDcjs.invalidate; exports.invalidateRouteData = _chunkDMAP4RNDcjs.invalidateRouteData; exports.libsqlStorage = _chunkJMYXO572cjs.libsqlStorage; exports.loadFarmConfigFile = _chunk5Y2P454Ocjs.loadFarmConfigFile; exports.localStorage = _chunkJMYXO572cjs.localStorage; exports.logger = _chunkQMNWKQL4cjs.logger; exports.matchRoute = _chunkQMNWKQL4cjs.matchRoute; exports.matchRouteParts = _chunkQMNWKQL4cjs.matchRouteParts; exports.matchRoutePrefix = _chunkQMNWKQL4cjs.matchRoutePrefix; exports.matchRoutePrefixParts = _chunkQMNWKQL4cjs.matchRoutePrefixParts; exports.memoryStorage = _chunkJMYXO572cjs.memoryStorage; exports.mongodbStorage = _chunkJMYXO572cjs.mongodbStorage; exports.mysql2Storage = _chunkJMYXO572cjs.mysql2Storage; exports.mysqlStorage = _chunkJMYXO572cjs.mysqlStorage; exports.netlifyBlobsStorage = _chunkJMYXO572cjs.netlifyBlobsStorage; exports.normalizeRevalidatePath = _chunkDMAP4RNDcjs.normalizeRevalidatePath; exports.parseRoutePath = _chunkQMNWKQL4cjs.parseRoutePath; exports.parseSearchParams = _chunkQMNWKQL4cjs.parseSearchParams; exports.pgStorage = _chunkJMYXO572cjs.pgStorage; exports.pgliteStorage = _chunkJMYXO572cjs.pgliteStorage; exports.planetscaleStorage = _chunkJMYXO572cjs.planetscaleStorage; exports.postgresStorage = _chunkJMYXO572cjs.postgresStorage; exports.prepareServerActionRequest = _chunk4P5634G6cjs.prepareServerActionRequest; exports.redisStorage = _chunkJMYXO572cjs.redisStorage; exports.resolveAppPath = _chunkQMNWKQL4cjs.resolveAppPath; exports.resolveFarmLayers = _chunk5Y2P454Ocjs.resolveFarmLayers; exports.resolveFarmMCPConfig = _chunkCHYTADNKcjs.resolveFarmMCPConfig; exports.resolveFarmMCPPlugin = _chunkCHYTADNKcjs.resolveFarmMCPPlugin; exports.resolveServerActionsConfig = _chunk4P5634G6cjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunkJMYXO572cjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunkDMAP4RNDcjs.revalidatePath; exports.revalidateTag = _chunkDMAP4RNDcjs.revalidateTag; exports.runWithServerActionRequest = _chunk4P5634G6cjs.runWithServerActionRequest; exports.s3Storage = _chunkJMYXO572cjs.s3Storage; exports.sanitizeServerActionError = _chunk4P5634G6cjs.sanitizeServerActionError; exports.segmentsToPattern = _chunkQMNWKQL4cjs.segmentsToPattern; exports.sendWebResponse = _chunkYIHRZBD7cjs.sendWebResponse; exports.splitRoutePath = _chunkQMNWKQL4cjs.splitRoutePath; exports.sqliteStorage = _chunkJMYXO572cjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunkDMAP4RNDcjs.storageCacheAdapter; exports.toPosixPath = _chunkQMNWKQL4cjs.toPosixPath; exports.toRootRelativeUrlPath = _chunkQMNWKQL4cjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunkQMNWKQL4cjs.toViteModuleId; exports.unstable_cache = _chunkDMAP4RNDcjs.unstable_cache; exports.updateTag = _chunkDMAP4RNDcjs.updateTag; exports.upstashStorage = _chunkJMYXO572cjs.upstashStorage; exports.validateServerActionRequest = _chunk4P5634G6cjs.validateServerActionRequest; exports.vercelBlobStorage = _chunkJMYXO572cjs.vercelBlobStorage; exports.vercelKVStorage = _chunkJMYXO572cjs.vercelKVStorage;
|