one 1.1.275 → 1.1.277
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.js +33 -0
- package/dist/cjs/cleanUrl.js.map +6 -0
- package/dist/cjs/cleanUrl.native.js +40 -0
- package/dist/cjs/cleanUrl.native.js.map +6 -0
- package/dist/cjs/router/router.js +7 -7
- package/dist/cjs/router/router.js.map +1 -1
- package/dist/cjs/router/router.native.js +8 -6
- package/dist/cjs/router/router.native.js.map +2 -2
- package/dist/cjs/views/PreloadLinks.js +5 -3
- package/dist/cjs/views/PreloadLinks.js.map +1 -1
- package/dist/cjs/vite/build.js +9 -8
- package/dist/cjs/vite/build.js.map +1 -1
- package/dist/cjs/vite/build.native.js +8 -4
- package/dist/cjs/vite/build.native.js.map +2 -2
- package/dist/esm/cleanUrl.js +18 -0
- package/dist/esm/cleanUrl.js.map +6 -0
- package/dist/esm/cleanUrl.mjs +15 -0
- package/dist/esm/cleanUrl.mjs.map +1 -0
- package/dist/esm/cleanUrl.native.js +15 -0
- package/dist/esm/cleanUrl.native.js.map +1 -0
- package/dist/esm/router/router.js +7 -6
- package/dist/esm/router/router.js.map +1 -1
- package/dist/esm/router/router.mjs +4 -5
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js +6 -5
- package/dist/esm/router/router.native.js.map +1 -1
- package/dist/esm/views/PreloadLinks.js +4 -2
- package/dist/esm/views/PreloadLinks.js.map +1 -1
- package/dist/esm/views/PreloadLinks.mjs +4 -2
- package/dist/esm/views/PreloadLinks.mjs.map +1 -1
- package/dist/esm/vite/build.js +9 -7
- package/dist/esm/vite/build.js.map +1 -1
- package/dist/esm/vite/build.mjs +7 -3
- package/dist/esm/vite/build.mjs.map +1 -1
- package/dist/esm/vite/build.native.js +9 -3
- package/dist/esm/vite/build.native.js.map +1 -1
- package/package.json +5 -5
- package/src/cleanUrl.ts +22 -0
- package/src/router/router.ts +11 -10
- package/src/views/PreloadLinks.tsx +19 -13
- package/src/vite/build.ts +11 -9
- package/src/vite/types.ts +1 -0
- package/types/cleanUrl.d.ts +4 -0
- package/types/cleanUrl.d.ts.map +1 -0
- package/types/router/router.d.ts.map +1 -1
- package/types/views/PreloadLinks.d.ts.map +1 -1
- package/types/vite/build.d.ts.map +1 -1
- package/types/vite/types.d.ts +1 -0
- package/types/vite/types.d.ts.map +1 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CACHE_KEY, CLIENT_BASE_URL } from "./router/constants.native.js";
|
2
|
+
import { removeSearch } from "./utils/removeSearch.native.js";
|
3
|
+
function cleanUrl(path) {
|
4
|
+
return removeSearch(path).replaceAll("/", "_").replace(/_$/, "");
|
5
|
+
}
|
6
|
+
var clientSideCacheKey = typeof window < "u" ? `?${CACHE_KEY}` : "",
|
7
|
+
clientSideURL = typeof window < "u" ? CLIENT_BASE_URL : "";
|
8
|
+
function getPreloadPath(currentPath) {
|
9
|
+
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideCacheKey}`;
|
10
|
+
}
|
11
|
+
function getLoaderPath(currentPath) {
|
12
|
+
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideCacheKey}`;
|
13
|
+
}
|
14
|
+
export { cleanUrl, getLoaderPath, getPreloadPath };
|
15
|
+
//# sourceMappingURL=cleanUrl.native.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["CACHE_KEY","CLIENT_BASE_URL","removeSearch","cleanUrl","path","replaceAll","replace","clientSideCacheKey","window","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,eAAA,QAAuB;AAC3C,SAASC,YAAA,QAAoB;AAEtB,SAASC,SAASC,IAAA,EAAc;EACrC,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,IAAAC,kBAAM,UAAqBC,MAAO,MAAW,OAAcR,SAAI,EAAS,KAAK;EAAAS,aACvE,UAAgBD,MAAO,MAAW,GAAAP,eAAc,KAAkB;AAEjE,SAASS,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWN,QAAA,CAASQ,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcL,kBAAkB;AAClG;AAEO,SAASM,cAAcF,WAAA,EAAqB;EACjD,OAAO,GAAGF,aAAa,WAAWN,QAAA,CAASQ,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBL,kBAAkB;AACtG","ignoreList":[]}
|
@@ -18,9 +18,9 @@ import { assertIsReady } from "../utils/assertIsReady";
|
|
18
18
|
import { dynamicImport } from "../utils/dynamicImport";
|
19
19
|
import { removeSearch } from "../utils/removeSearch";
|
20
20
|
import { shouldLinkExternally } from "../utils/url";
|
21
|
-
import { CACHE_KEY, CLIENT_BASE_URL } from "./constants";
|
22
21
|
import { getNormalizedStatePath } from "./getNormalizedStatePath";
|
23
22
|
import { setLastAction } from "./lastAction";
|
23
|
+
import { getLoaderPath, getPreloadPath } from "../cleanUrl";
|
24
24
|
let routeNode = null, rootComponent, linking, hasAttemptedToHideSplash = !1, initialState, rootState, nextState, routeInfo, splashScreenAnimationFrame, navigationRef = null, navigationRefSubscription;
|
25
25
|
const rootStateSubscribers = /* @__PURE__ */ new Set(), loadingStateSubscribers = /* @__PURE__ */ new Set(), storeSubscribers = /* @__PURE__ */ new Set();
|
26
26
|
function initialize(context, ref, initialLocation) {
|
@@ -211,18 +211,19 @@ function cleanup() {
|
|
211
211
|
const preloadingLoader = {};
|
212
212
|
function setupPreload(href) {
|
213
213
|
preloadingLoader[href] || (preloadingLoader[href] = async () => {
|
214
|
-
const
|
215
|
-
href
|
216
|
-
|
214
|
+
const [_preload, loader] = await Promise.all([
|
215
|
+
dynamicImport(getPreloadPath(href)),
|
216
|
+
dynamicImport(getLoaderPath(href))
|
217
|
+
]);
|
217
218
|
try {
|
218
|
-
return await
|
219
|
+
return await (await loader).loader?.();
|
219
220
|
} catch (err) {
|
220
221
|
return console.error(`Error preloading loader: ${err}`), null;
|
221
222
|
}
|
222
223
|
});
|
223
224
|
}
|
224
225
|
function preloadRoute(href) {
|
225
|
-
|
226
|
+
setupPreload(href), typeof preloadingLoader[href] == "function" && preloadingLoader[href]();
|
226
227
|
}
|
227
228
|
async function linkTo(href, event, options) {
|
228
229
|
if (href[0] === "#")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/router/router.ts"],
|
4
|
-
"mappings": "AACA;AAAA,EACE;AAAA,OAGK;AACP,YAAY,aAAa;AACzB,SAAS,cAAc;AACvB,SAAS,UAAU,iBAAiB,4BAAgD;AACpF,SAAS,gBAAgB;AAGzB,SAAS,WAAW,4BAA4B;AAChD,SAAS,oBAAoB;AAC7B,SAAS,wBAAiD;AAC1D,SAAS,iBAAiB;AAE1B,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,kBAAkB;AAC3B,SAAS,kCAAkC;AAC3C,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;
|
4
|
+
"mappings": "AACA;AAAA,EACE;AAAA,OAGK;AACP,YAAY,aAAa;AACzB,SAAS,cAAc;AACvB,SAAS,UAAU,iBAAiB,4BAAgD;AACpF,SAAS,gBAAgB;AAGzB,SAAS,WAAW,4BAA4B;AAChD,SAAS,oBAAoB;AAC7B,SAAS,wBAAiD;AAC1D,SAAS,iBAAiB;AAE1B,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,kBAAkB;AAC3B,SAAS,kCAAkC;AAC3C,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AAGrC,SA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AO,YAAY,OAAO,SAAS,CAAC;AAEnE,UAAM,aAAa,iBAAiB,OAC9B,sBAAsB,WAAW,OAEjC,cAAc,iBAAiB,iBAAiB,IAAI;AAQ1D,QALE,iBAAiB,SAAS,WAAW,QACrC,CAAC,cACD,CAAC,uBACA,eAAe,iBAAiB,SAAS,WAAW,MAAM,WAAW,SAAS,WAAW;AAG1F;AAGF,kBAAc,YACd,kBAAkB;AAAA,EACpB;AAMA,QAAM,cAAmC,EAAE,QAAQ,CAAC,EAAE;AACtD,MAAI,UAAU,aACV,SAAS,QAAQ;AAGrB,SAAO;AACL,WAAO,OAAO,QAAQ,EAAE,GAAG,iBAAiB,OAAO,CAAC,GACpD,QAAQ,SAAS,iBAAiB,MAClC,QAAQ,SAAS,EAAE,GAAG,iBAAiB,OAAO,GAE9C,mBAAmB,iBAAiB,OAAO,OAAO,iBAAiB,OAAO,OAAO,SAAS,CAAC,GAE3F,QAAQ,WAAW,CAAC,GACpB,UAAU,QAAQ,QAClB,SAAS;AAIX,SAAI,SAAS,WACX,cAAc,GAGd,OAAO,YAgBH,gBAAgB,SAAS,YAC3B,YAAY,MAAM,GAAG,YAAY,IAAI,IAAI,OAAO,CAAC,MAIjD,SAAS,aAAa,gBAAgB,SAAS,UACjD,OAAO,YAGF;AAAA,IACL;AAAA,IACA,QAAQ,gBAAgB;AAAA,IACxB,SAAS;AAAA,MACP,KAAK,YAAY;AAAA,MACjB,MAAM,YAAY;AAAA,MAClB,QAAQ,YAAY;AAAA,IACtB;AAAA,EACF;AACF;",
|
5
5
|
"names": ["state", "rootState", "current"]
|
6
6
|
}
|
@@ -16,9 +16,9 @@ import { assertIsReady } from "../utils/assertIsReady.mjs";
|
|
16
16
|
import { dynamicImport } from "../utils/dynamicImport.mjs";
|
17
17
|
import { removeSearch } from "../utils/removeSearch.mjs";
|
18
18
|
import { shouldLinkExternally } from "../utils/url.mjs";
|
19
|
-
import { CACHE_KEY, CLIENT_BASE_URL } from "./constants.mjs";
|
20
19
|
import { getNormalizedStatePath } from "./getNormalizedStatePath.mjs";
|
21
20
|
import { setLastAction } from "./lastAction.mjs";
|
21
|
+
import { getLoaderPath, getPreloadPath } from "../cleanUrl.mjs";
|
22
22
|
let routeNode = null,
|
23
23
|
rootComponent,
|
24
24
|
linking,
|
@@ -207,17 +207,16 @@ function cleanup() {
|
|
207
207
|
const preloadingLoader = {};
|
208
208
|
function setupPreload(href) {
|
209
209
|
preloadingLoader[href] || (preloadingLoader[href] = async () => {
|
210
|
-
const
|
211
|
-
response = await dynamicImport(loaderJSUrl);
|
210
|
+
const [_preload, loader] = await Promise.all([dynamicImport(getPreloadPath(href)), dynamicImport(getLoaderPath(href))]);
|
212
211
|
try {
|
213
|
-
return await
|
212
|
+
return await (await loader).loader?.();
|
214
213
|
} catch (err) {
|
215
214
|
return console.error(`Error preloading loader: ${err}`), null;
|
216
215
|
}
|
217
216
|
});
|
218
217
|
}
|
219
218
|
function preloadRoute(href) {
|
220
|
-
|
219
|
+
setupPreload(href), typeof preloadingLoader[href] == "function" && preloadingLoader[href]();
|
221
220
|
}
|
222
221
|
async function linkTo(href, event, options) {
|
223
222
|
if (href[0] === "#") return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["StackActions","Linking","nanoid","Fragment","startTransition","useSyncExternalStore","Platform","deepEqual","getPathDataFromState","stripBaseUrl","getLinkingConfig","getRoutes","resolveHref","resolve","matchDynamicName","sortRoutes","getQualifiedRouteComponent","assertIsReady","dynamicImport","removeSearch","shouldLinkExternally","CACHE_KEY","CLIENT_BASE_URL","getNormalizedStatePath","setLastAction","routeNode","rootComponent","linking","hasAttemptedToHideSplash","initialState","rootState","nextState","routeInfo","splashScreenAnimationFrame","navigationRef","navigationRefSubscription","rootStateSubscribers","Set","loadingStateSubscribers","storeSubscribers","initialize","context","ref","initialLocation","cleanUpState","ignoreEntryPoints","platform","OS","process","env","NODE_ENV","Error","setupLinking","subscribeToNavigationChanges","clear","getInitialURL","toString","getStateFromPath","pathname","search","config","getRouteInfo","unstable_globalHref","isIndex","params","segments","addListener","data","state","requestAnimationFrame","nextOptions","linkOptions","shouldUpdateSubscribers","updateState","subscriber","updateSnapshot","navigate","url","options","linkTo","push","dismiss","count","dispatch","pop","replace","setParams","current","dismissAll","popToTop","goBack","canGoBack","isReady","canDismiss","type","routes","length","index","getSortedRoutes","children","filter","route","internal","sort","nextStateParam","nextRouteInfo","getRouteInfoFromState","state2","asPath","screens","preserveDynamicRoutes","preserveGroups","getPathFromState","baseUrl","path","qualified","split","isIndexPath","subscribeToRootState","add","delete","subscribeToStore","subscribeToLoadingState","setLoadingState","listener","currentSnapshot","getSnapshot","snapshot","rootStateSnapshot","routeInfoSnapshot","useOneRouter","syncStoreRootState","currentState","getRootState","useStoreRootState","useStoreRouteInfo","getActualLastRoute","name","screen","match","routeLike","cleanup","cancelAnimationFrame","preloadingLoader","setupPreload","href","loaderJSUrl","slice","replaceAll","response","loader","err","console","error","preloadRoute","import","meta","PROD","event","openURL","startsWith","base","map","segment","Array","isArray","join","Boolean","globalThis","__vxrntodopath","rootState2","action","getNavigateAction","current2","getCurrentRoute","warningTm","interval","setInterval","next","setTimeout","clearTimeout","warn","actionState","navigationState","actionStateRoute","stateRoute","childState","nextNavigationState","dynamicName","rootPayload","payload","Object","assign","key","target"],"sources":["../../../src/router/router.ts"],"sourcesContent":[null],"mappings":"AACA,SACEA,YAAA,QAGK;AACP,YAAYC,OAAA,MAAa;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,QAAA,EAAUC,eAAA,EAAiBC,oBAAA,QAAgD;AACpF,SAASC,QAAA,QAAgB;AAGzB,SAASC,SAAA,EAAWC,oBAAA,QAA4B;AAChD,SAASC,YAAA,QAAoB;AAC7B,SAASC,gBAAA,QAAiD;AAC1D,SAASC,SAAA,QAAiB;AAE1B,SAASC,WAAA,QAAmB;AAC5B,SAASC,OAAA,QAAe;AACxB,SAASC,gBAAA,QAAwB;AACjC,SAASC,UAAA,QAAkB;AAC3B,SAASC,0BAAA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IAAA,KAAS,UACjDA,IAAA,GAAO,YAGF;IACLA,IAAA;IACAoG,MAAA,EAAQX,eAAA,CAAgBU,GAAA;IACxBH,OAAA,EAAS;MACPG,GAAA,EAAKJ,WAAA,CAAYI,GAAA;MACjBxD,IAAA,EAAMoD,WAAA,CAAYnD,MAAA;MAClB1E,MAAA,EAAQ6H,WAAA,CAAY7H;IACtB;EACF;AACF","ignoreList":[]}
|
1
|
+
{"version":3,"names":["StackActions","Linking","nanoid","Fragment","startTransition","useSyncExternalStore","Platform","deepEqual","getPathDataFromState","stripBaseUrl","getLinkingConfig","getRoutes","resolveHref","resolve","matchDynamicName","sortRoutes","getQualifiedRouteComponent","assertIsReady","dynamicImport","removeSearch","shouldLinkExternally","getNormalizedStatePath","setLastAction","getLoaderPath","getPreloadPath","routeNode","rootComponent","linking","hasAttemptedToHideSplash","initialState","rootState","nextState","routeInfo","splashScreenAnimationFrame","navigationRef","navigationRefSubscription","rootStateSubscribers","Set","loadingStateSubscribers","storeSubscribers","initialize","context","ref","initialLocation","cleanUpState","ignoreEntryPoints","platform","OS","process","env","NODE_ENV","Error","setupLinking","subscribeToNavigationChanges","clear","getInitialURL","toString","getStateFromPath","pathname","search","config","getRouteInfo","unstable_globalHref","isIndex","params","segments","addListener","data","state","requestAnimationFrame","nextOptions","linkOptions","shouldUpdateSubscribers","updateState","subscriber","updateSnapshot","navigate","url","options","linkTo","push","dismiss","count","dispatch","pop","replace","setParams","current","dismissAll","popToTop","goBack","canGoBack","isReady","canDismiss","type","routes","length","index","getSortedRoutes","children","filter","route","internal","sort","nextStateParam","nextRouteInfo","getRouteInfoFromState","state2","asPath","screens","preserveDynamicRoutes","preserveGroups","getPathFromState","baseUrl","path","qualified","split","isIndexPath","subscribeToRootState","add","delete","subscribeToStore","subscribeToLoadingState","setLoadingState","listener","currentSnapshot","getSnapshot","snapshot","rootStateSnapshot","routeInfoSnapshot","useOneRouter","syncStoreRootState","currentState","getRootState","useStoreRootState","useStoreRouteInfo","getActualLastRoute","name","screen","match","routeLike","cleanup","cancelAnimationFrame","preloadingLoader","setupPreload","href","_preload","loader","Promise","all","err","console","error","preloadRoute","event","openURL","startsWith","base","map","segment","slice","Array","isArray","join","Boolean","globalThis","__vxrntodopath","rootState2","action","getNavigateAction","current2","getCurrentRoute","warningTm","interval","setInterval","next","setTimeout","clearTimeout","warn","actionState","navigationState","actionStateRoute","stateRoute","childState","nextNavigationState","dynamicName","rootPayload","payload","Object","assign","key","target"],"sources":["../../../src/router/router.ts"],"sourcesContent":[null],"mappings":"AACA,SACEA,YAAA,QAGK;AACP,YAAYC,OAAA,MAAa;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,QAAA,EAAUC,eAAA,EAAiBC,oBAAA,QAAgD;AACpF,SAASC,QAAA,QAAgB;AAGzB,SAASC,SAAA,EAAWC,oBAAA,QAA4B;AAChD,SAASC,YAAA,QAAoB;AAC7B,SAASC,gBAAA,QAAiD;AAC1D,SAASC,SAAA,QAAiB;AAE1B,SAASC,WAAA,QAAmB;AAC5B,SAASC,OAAA,QAAe;AACxB,SAASC,gBAAA,QAAwB;AACjC,SAASC,UAAA,QAAkB;AAC3B,SAASC,0BAAA,QAAkC;AAC3C,SAASC,aAAA,QAAqB;AAC9B,SAASC,aAAA,QAAqB;AAC9B,SAASC,YAAA,QAAoB;AAC7B,SAASC,oBAAA,QAA4B;AAGrC,SAASC,sBAAA,QAA8C;AACvD,SAASC,aAAA,QAAqB;AAC9B,SAASC,aAAA,EAAeC,cAAA,QAAsB;AAGvC,IAAIC,SAAA,GAA8B;EAC9BC,aAAA;EACAC,OAAA;EAEAC,wBAAA,GAA2B;EAC3BC,YAAA;EACAC,SAAA;EAEPC,SAAA;EACOC,SAAA;EACPC,0BAAA;EAGOC,aAAA,GAAyC;EAChDC,yBAAA;AAEJ,MAAMC,oBAAA,GAAuB,mBAAIC,GAAA,CAAiC;EAC5DC,uBAAA,GAA0B,mBAAID,GAAA,CAAoC;EAClEE,gBAAA,GAAmB,mBAAI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GqH,gBAAA,CAAiBrH;EAAO,CAAC,GACpD2H,OAAA,CAAQjD,MAAA,GAAS2C,gBAAA,CAAiB5C,IAAA,EAClCkD,OAAA,CAAQ3H,MAAA,GAAS;IAAE,GAAGqH,gBAAA,CAAiBrH;EAAO,GAE9CqH,gBAAA,GAAmBA,gBAAA,CAAiBjH,KAAA,EAAO2B,MAAA,CAAOsF,gBAAA,CAAiBjH,KAAA,EAAO2B,MAAA,CAAOC,MAAA,GAAS,CAAC,GAE3F2F,OAAA,CAAQ3H,MAAA,KAAW,CAAC,GACpB2H,OAAA,GAAUA,OAAA,CAAQ3H,MAAA,EAClBA,MAAA,GAAS2H,OAAA;EAIX,OAAI7F,IAAA,KAAS,WACXxE,aAAA,CAAc,GAGdwE,IAAA,GAAO,YAgBHsF,eAAA,CAAgBtF,IAAA,KAAS,YAC3B4F,WAAA,CAAYI,GAAA,GAAM,GAAGJ,WAAA,CAAYjD,IAAI,IAAIvI,MAAA,CAAO,CAAC,MAIjD4F,IAAA,KAAS,aAAasF,eAAA,CAAgBtF,IAAA,KAAS,UACjDA,IAAA,GAAO,YAGF;IACLA,IAAA;IACAiG,MAAA,EAAQX,eAAA,CAAgBU,GAAA;IACxBH,OAAA,EAAS;MACPG,GAAA,EAAKJ,WAAA,CAAYI,GAAA;MACjBrD,IAAA,EAAMiD,WAAA,CAAYhD,MAAA;MAClB1E,MAAA,EAAQ0H,WAAA,CAAY1H;IACtB;EACF;AACF","ignoreList":[]}
|
@@ -16,9 +16,9 @@ import { assertIsReady } from "../utils/assertIsReady.native.js";
|
|
16
16
|
import { dynamicImport } from "../utils/dynamicImport.native.js";
|
17
17
|
import { removeSearch } from "../utils/removeSearch.native.js";
|
18
18
|
import { shouldLinkExternally } from "../utils/url.native.js";
|
19
|
-
import { CACHE_KEY, CLIENT_BASE_URL } from "./constants.native.js";
|
20
19
|
import { getNormalizedStatePath } from "./getNormalizedStatePath.native.js";
|
21
20
|
import { setLastAction } from "./lastAction.native.js";
|
21
|
+
import { getLoaderPath, getPreloadPath } from "../cleanUrl.native.js";
|
22
22
|
var routeNode = null,
|
23
23
|
rootComponent,
|
24
24
|
linking,
|
@@ -276,17 +276,18 @@ function cleanup() {
|
|
276
276
|
var preloadingLoader = {};
|
277
277
|
function setupPreload(href) {
|
278
278
|
preloadingLoader[href] || (preloadingLoader[href] = async function () {
|
279
|
-
var
|
280
|
-
response = await dynamicImport(loaderJSUrl);
|
279
|
+
var [_preload, loader] = await Promise.all([dynamicImport(getPreloadPath(href)), dynamicImport(getLoaderPath(href))]);
|
281
280
|
try {
|
282
|
-
|
281
|
+
var _response_loader,
|
282
|
+
response = await loader;
|
283
|
+
return await ((_response_loader = response.loader) === null || _response_loader === void 0 ? void 0 : _response_loader.call(response));
|
283
284
|
} catch (err) {
|
284
285
|
return console.error(`Error preloading loader: ${err}`), null;
|
285
286
|
}
|
286
287
|
});
|
287
288
|
}
|
288
289
|
function preloadRoute(href) {
|
289
|
-
|
290
|
+
setupPreload(href), typeof preloadingLoader[href] == "function" && preloadingLoader[href]();
|
290
291
|
}
|
291
292
|
async function linkTo(href, event, options) {
|
292
293
|
if (href[0] !== "#") {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["StackActions","Linking","nanoid","Fragment","startTransition","useSyncExternalStore","Platform","deepEqual","getPathDataFromState","stripBaseUrl","getLinkingConfig","getRoutes","resolveHref","resolve","matchDynamicName","sortRoutes","getQualifiedRouteComponent","assertIsReady","dynamicImport","removeSearch","shouldLinkExternally","CACHE_KEY","CLIENT_BASE_URL","getNormalizedStatePath","setLastAction","routeNode","rootComponent","linking","hasAttemptedToHideSplash","initialState","rootState","nextState","routeInfo","splashScreenAnimationFrame","navigationRef","navigationRefSubscription","rootStateSubscribers","Set","loadingStateSubscribers","storeSubscribers","initialize","context","ref","initialLocation","cleanUpState","ignoreEntryPoints","platform","OS","process","env","NODE_ENV","Error","setupLinking","subscribeToNavigationChanges","clear","_linking_getStateFromPath","getInitialURL","toString","getStateFromPath","call","pathname","search","config","getRouteInfo","unstable_globalHref","isIndex","params","segments","addListener","data","state","requestAnimationFrame","nextOptions","linkOptions","shouldUpdateSubscribers","updateState","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step2","next","done","subscriber2","value","err","return","updateSnapshot","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","_step","subscriber","navigate","url","options","linkTo","push","dismiss","count","dispatch","pop","replace","setParams","arguments","length","_navigationRef_current","current","dismissAll","popToTop","goBack","canGoBack","isReady","_navigationRef_current_canGoBack","canDismiss","_state_routes_state_index","_state_routes","type","routes","index","getSortedRoutes","children","filter","route","internal","sort","nextStateParam","nextRouteInfo","getRouteInfoFromState","state2","asPath","screens","preserveDynamicRoutes","preserveGroups","getPathFromState","baseUrl","path","qualified","split","isIndexPath","subscribeToRootState","add","delete","subscribeToStore","subscribeToLoadingState","setLoadingState","listener","currentSnapshot","getSnapshot","snapshot","rootStateSnapshot","routeInfoSnapshot","useOneRouter","syncStoreRootState","currentState","getRootState","useStoreRootState","useStoreRouteInfo","_state_index","getActualLastRoute","name","screen","match","routeLike","_routeLike_state","cleanup","cancelAnimationFrame","preloadingLoader","setupPreload","href","loaderJSUrl","slice","replaceAll","response","loader","console","error","preloadRoute","import","meta","PROD","event","openURL","startsWith","_routeInfo_segments","_routeInfo_segments_map_filter_join","base","map","segment","_routeInfo_params","_routeInfo_params1","_params_split","Array","isArray","join","_params_split_join"],"sources":["../../../src/router/router.ts"],"sourcesContent":[null],"mappings":"AACA,SAAAA,YAAA;AAAA,OACE,KAAAC,OAAA;AAAA,SAGKC,MAAA;AACP,SAAAC,QAAY,EAAAC,eAAa,EAAAC,oBAAA;AACzB,SAASC,QAAA,QAAc;AACvB,SAASC,SAAA,EAAUC,oBAAiB,4CAAgD;AACpF,SAASC,YAAA,QAAgB;AAGzB,SAASC,gBAAW,uCAA4B;AAChD,SAASC,SAAA,gCAAoB;AAC7B,SAASC,WAAA,gCAAiD;AAC1D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IAAA;MAElD;IAoBE;IAGA3J,aAAO,CAAAiB,aAAe;IACpB,IAAA4E,OAAM,GAAA5E,aAAa,CAAA4E,OAAgB;IAEnC,IAAAA,OAAA,QAAmB,EAEnB,MAAM,IAAA3D,KAAA,mFAGc;IAQpB,IALE,CAAAxB,OAAA,EAMA,UAAAwB,KAAA;IAGF,IAAA3B,aAAc,IAAAoJ,IAAA,KACd,QAAAA,IAAA,KAAkB;MACpB9D,OAAA,CAAAG,MAAA;MAMA;IACA;IAIA,IAAA2D,IAAO,CAAAc,UAAA;MACL,IAAAC,mBAAwB;QAAGC,mCAC3B;QAAQC,IAAA,IAASD,mCACT,GAAA5J,SAAc,aAAA2J,mBAEtB,GAAA3J,SAAmB,CAAAmC,QAAA,UAAiB,IAAAwH,mBAAc,UAAiB,IAAO,MAAO,GAAAA,mBAEzE,CAAAG,GAAA,WACRC,OAAA;UAKF,IAAIC,iBACF;UA6BA,KAAAD,OAAA,CAAAL,UAAA,cAAAK,OAAA;UACA,IAAQA,OAAA,CAAAL,UAAgB;YACxB,IAASO,kBAAA,EAAAC,aAAA;YACPH,OAAK,GAAAA,OAAY,CAAAjB,KAAA;YACjB,IAAM5G,MAAA,GAAAlC,SAAY,aAAAiK,kBAAA,GAAAjK,SAAA,CAAAkC,MAAA,cAAA+H,kBAAA,uBAAAA,kBAAA,CAAAF,OAAA;YAClB,IAAQI,KAAA,CAAAC,OAAY,CAAAlI,MAAA,GACtB,OAAAA,MAAA,CAAAmI,IAAA;YACF,IAAAC,kBAAA;YACF,QAAAA,kBAAA,GAAApI,MAAA,aAAAgI,aAAA,GAAAhI,MAAA,CAAA2E,KAAA,mBAAAqD,aAAA,uBAAAA,aAAA,CAAAG,IAAA,mBAAAC,kBAAA,cAAAA,kBAAA","ignoreList":[]}
|
1
|
+
{"version":3,"names":["StackActions","Linking","nanoid","Fragment","startTransition","useSyncExternalStore","Platform","deepEqual","getPathDataFromState","stripBaseUrl","getLinkingConfig","getRoutes","resolveHref","resolve","matchDynamicName","sortRoutes","getQualifiedRouteComponent","assertIsReady","dynamicImport","removeSearch","shouldLinkExternally","getNormalizedStatePath","setLastAction","getLoaderPath","getPreloadPath","routeNode","rootComponent","linking","hasAttemptedToHideSplash","initialState","rootState","nextState","routeInfo","splashScreenAnimationFrame","navigationRef","navigationRefSubscription","rootStateSubscribers","Set","loadingStateSubscribers","storeSubscribers","initialize","context","ref","initialLocation","cleanUpState","ignoreEntryPoints","platform","OS","process","env","NODE_ENV","Error","setupLinking","subscribeToNavigationChanges","clear","_linking_getStateFromPath","getInitialURL","toString","getStateFromPath","call","pathname","search","config","getRouteInfo","unstable_globalHref","isIndex","params","segments","addListener","data","state","requestAnimationFrame","nextOptions","linkOptions","shouldUpdateSubscribers","updateState","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step2","next","done","subscriber2","value","err","return","updateSnapshot","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","_step","subscriber","navigate","url","options","linkTo","push","dismiss","count","dispatch","pop","replace","setParams","arguments","length","_navigationRef_current","current","dismissAll","popToTop","goBack","canGoBack","isReady","_navigationRef_current_canGoBack","canDismiss","_state_routes_state_index","_state_routes","type","routes","index","getSortedRoutes","children","filter","route","internal","sort","nextStateParam","nextRouteInfo","getRouteInfoFromState","state2","asPath","screens","preserveDynamicRoutes","preserveGroups","getPathFromState","baseUrl","path","qualified","split","isIndexPath","subscribeToRootState","add","delete","subscribeToStore","subscribeToLoadingState","setLoadingState","listener","currentSnapshot","getSnapshot","snapshot","rootStateSnapshot","routeInfoSnapshot","useOneRouter","syncStoreRootState","currentState","getRootState","useStoreRootState","useStoreRouteInfo","_state_index","getActualLastRoute","name","screen","match","routeLike","_routeLike_state","cleanup","cancelAnimationFrame","preloadingLoader","setupPreload","href","_preload","loader","Promise","all","_response_loader","response","console","error","preloadRoute","event","openURL","startsWith","_routeInfo_segments","_routeInfo_segments_map_filter_join","base","map","segment","_routeInfo_params","_routeInfo_params1","_params_split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AA,G","ignoreList":[]}
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { useEffect } from "react";
|
2
2
|
import { preloadRoute } from "../router/router";
|
3
|
+
import { getURL } from "../getURL";
|
3
4
|
function PreloadLinks() {
|
4
|
-
return useEffect(() => {
|
5
|
+
return import.meta.env.PROD && useEffect(() => {
|
6
|
+
const url = getURL();
|
5
7
|
document.addEventListener("mouseover", (e) => {
|
6
8
|
let target = e.target;
|
7
9
|
if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.parentElement, !(target instanceof HTMLAnchorElement))) return;
|
8
10
|
const href = target.getAttribute("href");
|
9
|
-
href?.[0] === "/" && preloadRoute(href);
|
11
|
+
(href?.[0] === "/" || href?.[0].startsWith(url)) && preloadRoute(href.replace(url, ""));
|
10
12
|
});
|
11
13
|
}, []), null;
|
12
14
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/views/PreloadLinks.tsx"],
|
4
|
-
"mappings": "AAAA,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;
|
4
|
+
"mappings": "AAAA,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AAEhB,SAAS,eAAe;AAG7B,SAAI,YAAY,IAAI,QAClB,UAAU,MAAM;AACd,UAAM,MAAM,OAAO;AACnB,aAAS,iBAAiB,aAAa,CAAC,MAAM;AAC5C,UAAI,SAAS,EAAE;AAGf,UAFI,EAAE,kBAAkB,iBACxB,SAAS,kBAAkB,oBAAoB,SAAS,OAAO,eAC3D,EAAE,kBAAkB,oBAAoB;AAC5C,YAAM,OAAO,OAAO,aAAa,MAAM;AACvC,OAAI,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,EAAE,WAAW,GAAG,MAE/C,aAAa,KAAK,QAAQ,KAAK,EAAE,CAAC;AAAA,IAEtC,CAAC;AAAA,EACH,GAAG,CAAC,CAAC,GAGA;AACT;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { useEffect } from "react";
|
2
2
|
import { preloadRoute } from "../router/router.mjs";
|
3
|
+
import { getURL } from "../getURL.mjs";
|
3
4
|
function PreloadLinks() {
|
4
|
-
return useEffect(() => {
|
5
|
+
return import.meta.env.PROD && useEffect(() => {
|
6
|
+
const url = getURL();
|
5
7
|
document.addEventListener("mouseover", e => {
|
6
8
|
let target = e.target;
|
7
9
|
if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.parentElement, !(target instanceof HTMLAnchorElement))) return;
|
8
10
|
const href = target.getAttribute("href");
|
9
|
-
href?.[0] === "/" && preloadRoute(href);
|
11
|
+
(href?.[0] === "/" || href?.[0].startsWith(url)) && preloadRoute(href.replace(url, ""));
|
10
12
|
});
|
11
13
|
}, []), null;
|
12
14
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["useEffect","preloadRoute","PreloadLinks","document","addEventListener","e","target","HTMLElement","HTMLAnchorElement","parentElement","href","getAttribute"],"sources":["../../../src/views/PreloadLinks.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;
|
1
|
+
{"version":3,"names":["useEffect","preloadRoute","getURL","PreloadLinks","import","meta","env","PROD","url","document","addEventListener","e","target","HTMLElement","HTMLAnchorElement","parentElement","href","getAttribute","startsWith","replace"],"sources":["../../../src/views/PreloadLinks.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAC7B,SAASC,MAAA,QAAc;AAEhB,SAASC,aAAA,EAAe;EAG7B,OAAIC,MAAA,CAAAC,IAAA,CAAYC,GAAA,CAAIC,IAAA,IAClBP,SAAA,CAAU,MAAM;IACd,MAAMQ,GAAA,GAAMN,MAAA,CAAO;IACnBO,QAAA,CAASC,gBAAA,CAAiB,aAAcC,CAAA,IAAM;MAC5C,IAAIC,MAAA,GAASD,CAAA,CAAEC,MAAA;MAGf,IAFI,EAAEA,MAAA,YAAkBC,WAAA,MACxBD,MAAA,GAASA,MAAA,YAAkBE,iBAAA,GAAoBF,MAAA,GAASA,MAAA,CAAOG,aAAA,EAC3D,EAAEH,MAAA,YAAkBE,iBAAA,IAAoB;MAC5C,MAAME,IAAA,GAAOJ,MAAA,CAAOK,YAAA,CAAa,MAAM;MACvC,CAAID,IAAA,GAAO,CAAC,MAAM,OAAOA,IAAA,GAAO,CAAC,EAAEE,UAAA,CAAWV,GAAG,MAE/CP,YAAA,CAAae,IAAA,CAAKG,OAAA,CAAQX,GAAA,EAAK,EAAE,CAAC;IAEtC,CAAC;EACH,GAAG,EAAE,GAGA;AACT","ignoreList":[]}
|
package/dist/esm/vite/build.js
CHANGED
@@ -8,6 +8,7 @@ import { fillOptions, getOptimizeDeps, build as vxrnBuild } from "vxrn";
|
|
8
8
|
import { getManifest } from "./getManifest";
|
9
9
|
import { loadUserOneOptions } from "./one";
|
10
10
|
import { replaceLoader } from "./replaceLoader";
|
11
|
+
import { cleanUrl, getPreloadPath } from "../cleanUrl";
|
11
12
|
const { ensureDir, readFile, outputFile } = FSExtra;
|
12
13
|
process.on("uncaughtException", (err) => {
|
13
14
|
console.error(err?.message || err);
|
@@ -215,10 +216,15 @@ async function build(args) {
|
|
215
216
|
let loaderData = {};
|
216
217
|
try {
|
217
218
|
console.info(` \u21A6 route ${path}`);
|
218
|
-
const cleanPath = path === "/" ? path : removeTrailingSlash(path);
|
219
|
-
if (
|
219
|
+
const cleanPath = path === "/" ? path : removeTrailingSlash(path), preloadPath = getPreloadPath(path);
|
220
|
+
if (await FSExtra.writeFile(
|
221
|
+
join(clientDir, preloadPath),
|
222
|
+
preloads.map((preload) => `import "${preload}"`).join(`
|
223
|
+
`)
|
224
|
+
), builtRoutes.push({
|
220
225
|
type: foundRoute.type,
|
221
226
|
cleanPath,
|
227
|
+
preloadPath,
|
222
228
|
clientJsPath,
|
223
229
|
serverJsPath,
|
224
230
|
htmlPath,
|
@@ -233,11 +239,7 @@ async function build(args) {
|
|
233
239
|
const code = await readFile(clientJsPath, "utf-8"), withLoader = replaceLoader({
|
234
240
|
code,
|
235
241
|
loaderData
|
236
|
-
}), loaderPartialPath = join(
|
237
|
-
staticDir,
|
238
|
-
"assets",
|
239
|
-
path.slice(1).replaceAll("/", "_").replace(/_$/, "") + "_vxrn_loader.js"
|
240
|
-
);
|
242
|
+
}), loaderPartialPath = join(staticDir, "assets", cleanUrl(path.slice(1)));
|
241
243
|
await outputFile(loaderPartialPath, withLoader);
|
242
244
|
}
|
243
245
|
if (foundRoute.type === "ssg") {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/build.ts"],
|
4
|
-
"mappings": "AAAA,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,SAAS,qBAAqB;AAC9B,OAAO,QAAQ,MAAM,gBAAgB;AAErC,SAAS,qBAAqB;AAC9B,SAAS,aAAa,SAAS,iBAAoC;AACnE,SAAS,aAAa,iBAAiB,SAAS,iBAA2C;AAG3F,SAAS,mBAAmB;AAC5B,SAAS,0BAA0B;AACnC,SAAS,qBAAqB;
|
4
|
+
"mappings": "AAAA,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,SAAS,qBAAqB;AAC9B,OAAO,QAAQ,MAAM,gBAAgB;AAErC,SAAS,qBAAqB;AAC9B,SAAS,aAAa,SAAS,iBAAoC;AACnE,SAAS,aAAa,iBAAiB,SAAS,iBAA2C;AAG3F,SAAS,mBAAmB;AAC5B,SAAS,0BAA0B;AACnC,SAAS,qBAAqB;AAE9B,SAAS,UAAU,sBAAsB;AAEzC,MAAM,EAAE,WAAW,UAAU,WAAW,IAAI;AAE5C,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,KAAK,WAAW,GAAG;AACnC,CAAC;AAED,eAAsB,MAAM,MAGzB;AACD,QAAM,c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D,SAAO,IAAI,OAAO,YAAY;AAChC;",
|
5
5
|
"names": ["file"]
|
6
6
|
}
|
package/dist/esm/vite/build.mjs
CHANGED
@@ -8,6 +8,7 @@ import { fillOptions, getOptimizeDeps, build as vxrnBuild } from "vxrn";
|
|
8
8
|
import { getManifest } from "./getManifest.mjs";
|
9
9
|
import { loadUserOneOptions } from "./one.mjs";
|
10
10
|
import { replaceLoader } from "./replaceLoader.mjs";
|
11
|
+
import { cleanUrl, getPreloadPath } from "../cleanUrl.mjs";
|
11
12
|
const {
|
12
13
|
ensureDir,
|
13
14
|
readFile,
|
@@ -232,10 +233,13 @@ async function build(args) {
|
|
232
233
|
let loaderData = {};
|
233
234
|
try {
|
234
235
|
console.info(` \u21A6 route ${path}`);
|
235
|
-
const cleanPath = path === "/" ? path : removeTrailingSlash(path)
|
236
|
-
|
236
|
+
const cleanPath = path === "/" ? path : removeTrailingSlash(path),
|
237
|
+
preloadPath = getPreloadPath(path);
|
238
|
+
if (await FSExtra.writeFile(join(clientDir, preloadPath), preloads.map(preload => `import "${preload}"`).join(`
|
239
|
+
`)), builtRoutes.push({
|
237
240
|
type: foundRoute.type,
|
238
241
|
cleanPath,
|
242
|
+
preloadPath,
|
239
243
|
clientJsPath,
|
240
244
|
serverJsPath,
|
241
245
|
htmlPath,
|
@@ -258,7 +262,7 @@ async function build(args) {
|
|
258
262
|
code,
|
259
263
|
loaderData
|
260
264
|
}),
|
261
|
-
loaderPartialPath = join(staticDir, "assets", path.slice(1)
|
265
|
+
loaderPartialPath = join(staticDir, "assets", cleanUrl(path.slice(1)));
|
262
266
|
await outputFile(loaderPartialPath, withLoader);
|
263
267
|
}
|
264
268
|
if (foundRoute.type === "ssg") {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","userOptions","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","info","processEnvDefines","Object","fromEntries","entries","map","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","index","collectImports","imports","css","type","Set","flatMap","found","clientManifest","flat","filter","x","endsWith","startsWith","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","find","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","entryImports","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","paramsList","params","cleanId","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","code","withLoader","loaderPartialPath","replaceAll","html","preload","errMsg","moveAllFiles","rm","force","recursive","buildInfoForWriting","routeMap","acc","buildInfo","writeJSON","postBuildLogs","web","deploy","platform","writeFile","afterBuild","VXRN_ANALYZE_BUNDLE","forEach","log","src","dest","copy","overwrite","errorOnExist","strict","nameWithParams","part","split","escapeRegex","string","deps","regexPattern","dep","RegExp"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AA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O,IAAInD,QAAA,CACRoD,KAAA,CAAM,GAAG,EACTvK,GAAA,CAAKsK,IAAA,IAAS;QACb,IAAIA,IAAA,CAAK,CAAC,MAAM,KAAK;UACnB,MAAM9F,KAAA,GAAQiD,MAAA,CAAO6C,IAAA,CAAK1J,KAAA,CAAM,GAAG0J,IAAA,CAAK5K,MAAA,GAAS,CAAC,CAAC;UACnD,IAAI,CAAC8E,KAAA,EAAO;YACV,IAAI4F,MAAA,EACF,MAAM,IAAI/C,KAAA,CACR;AAAA;AAAA,0BAEUP,IAAI;AAAA,0BACJwD,IAAI;AAAA,8BACAnD,QAAQ;AAAA;AAAA;AAAA,IAGlChH,IAAA,CAAKC,SAAA,CAAUqH,MAAA,EAAQ,MAAM,CAAC,CAAC,EACrB;YAGF,OAAO,MAAM6C,IAAA,CAAKjI,OAAA,CAAQ,KAAK,EAAE,EAAEA,OAAA,CAAQ,KAAK,EAAE;UACpD;UACA,OAAOmC,KAAA;QACT;QACA,OAAO8F,IAAA;MACT,CAAC,EACAxN,IAAA,CAAK,GAAG,CAAC;IACd,GAAG;EAEH,OAAO,GAAG0F,OAAO,GAAG6H,cAAc,GAAGhI,OAAA,CAAQ,WAAW,GAAG;AAC7D;AAEA,SAASmI,YAAYC,MAAA,EAAgB;EACnC,OAAOA,MAAA,CAAOpI,OAAA,CAAQ,uBAAuB,MAAM;AACrD;AAEA,SAAS/B,wBAAwBoK,IAAA,EAAgB;EAM/C,MAAMC,YAAA,GAAe,oBAJCD,IAAA,CAAK1K,GAAA,CAAK4K,GAAA,IAAQJ,WAAA,CAAYI,GAAG,CAAC,EAEjB9N,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAI+N,MAAA,CAAOF,YAAY;AAChC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","cleanUrl","getPreloadPath","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","userOptions","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","info","processEnvDefines","Object","fromEntries","entries","map","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","index","collectImports","imports","css","type","Set","flatMap","found","clientManifest","flat","filter","x","endsWith","startsWith","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","find","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","entryImports","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","paramsList","params","cleanId","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","code","withLoader","loaderPartialPath","html","errMsg","moveAllFiles","rm","force","recursive","buildInfoForWriting","routeMap","acc","buildInfo","writeJSON","postBuildLogs","web","deploy","platform","afterBuild","VXRN_ANALYZE_BUNDLE","forEach","log","src","dest","copy","overwrite","errorOnExist","strict","nameWithParams","part","split","escapeRegex","string","deps","regexPattern","dep","RegExp"],"sources":["../../../src/vite/build.ts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