one 1.1.278 → 1.1.280

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ __export(useLoader_exports, {
17
17
  useLoader: () => useLoader
18
18
  });
19
19
  module.exports = __toCommonJS(useLoader_exports);
20
- var import_react = require("react"), import_getURL = require("./getURL"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_constants = require("./router/constants"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey");
20
+ var import_react = require("react"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey"), import_cleanUrl = require("./cleanUrl");
21
21
  const promises = {}, errors = {}, loadedData = {};
22
22
  function useLoader(loader) {
23
23
  const preloadedProps = globalThis.__vxrnLoaderProps__;
@@ -45,7 +45,7 @@ function useLoader(loader) {
45
45
  console.error("Error loading loader", err), errors[currentPath] = err, delete promises[currentPath], delete import_router.preloadingLoader[currentPath];
46
46
  })), !promises[currentPath]) {
47
47
  const getData = async () => {
48
- const loaderJSUrl = `${(0, import_getURL.getURL)()}/assets${currentPath}_vxrn_loader.js?${import_constants.CACHE_KEY}`;
48
+ const loaderJSUrl = (0, import_cleanUrl.getLoaderPath)(currentPath);
49
49
  try {
50
50
  const response = await (async () => {
51
51
  if (isNative) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useLoader.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkC,kBAClC,gBAAuB,qBACvB,eAA2C,oBAC3C,cAA4B,wBAC5B,eAA6B,oBAC7B,mBAA0B,+BAC1B,gBAAiC,4BAEjC,uBAA8B,kCAC9B,iBAAwB;AAExB,MAAM,WAAsD,CAAC,GACvD,SAAS,CAAC,GACV,aAAkC,CAAC;AAElC,SAAS,UAGd,QAA8E;AAC9E,QAAM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WAAW,GACpB;AAAA,QACT;AAAA,MACF;AACA,eAAS,WAAW,IAAI,QAAQ;AAAA,IAClC;AAEA,UAAM,SAAS,WAAW;AAAA,EAC5B;AAEA,SAAO,YAAY;AACrB;AAEA,MAAM,UAAU,oBAAI,IAAI,GAClB,UAAU,oBAAI,IAAI;AAExB,SAAS,WAAW,KAAU,OAAa;AACzC,QAAM,OAAO,UAAM,wBAAQ,GAAG,IAAI,MAAM,KAAK,UAAU,KAAK;AAE5D,MAAI,OACE,CAAC,QAAQ,IAAI,GAAG,GAAG;AACrB,YAAQ,IAAI,KAAK,EAAI;AAErB,QAAI,OAAO,IAAI,KAAK;AACpB,IAAI,gBAAgB,YAClB,OAAO,KACJ,KAAK,CAAC,UAAU;AACf,cAAQ,IAAI,KAAK,KAAK;AAAA,IACxB,CAAC,EACA,MAAM,CAAC,QAAQ;AACd,cAAQ,MAAM,0BAA0B,GAAG,GAC3C,QAAQ,IAAI,KAAK,MAAS;AAAA,IAC5B,CAAC,IAEL,QAAQ,IAAI,KAAK,IAAI;AAAA,EACvB;AAGF,QAAM,UAAU,QAAQ,IAAI,GAAG;AAE/B,MAAI,mBAAmB;AACrB,UAAM;AAGR,SAAO;AACT;",
5
5
  "names": []
6
6
  }
@@ -18,7 +18,7 @@ __export(useLoader_exports, {
18
18
  useLoader: () => useLoader
19
19
  });
20
20
  module.exports = __toCommonJS(useLoader_exports);
21
- var import_react = require("react"), import_getURL = require("./getURL"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_constants = require("./router/constants"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey"), promises = {}, errors = {}, loadedData = {};
21
+ var import_react = require("react"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey"), import_cleanUrl = require("./cleanUrl"), promises = {}, errors = {}, loadedData = {};
22
22
  function useLoader(loader) {
23
23
  var _window_location, preloadedProps = globalThis.__vxrnLoaderProps__;
24
24
  if (typeof window > "u")
@@ -51,7 +51,7 @@ function useLoader(loader) {
51
51
  console.error("Error loading loader", err), errors[currentPath] = err, delete promises[currentPath], delete import_router.preloadingLoader[currentPath];
52
52
  })), !promises[currentPath]) {
53
53
  var getData = async function() {
54
- var loaderJSUrl = `${(0, import_getURL.getURL)()}/assets${currentPath}_vxrn_loader.js?${import_constants.CACHE_KEY}`;
54
+ var loaderJSUrl = (0, import_cleanUrl.getLoaderPath)(currentPath);
55
55
  try {
56
56
  var response = await async function() {
57
57
  if (isNative) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/vxrn/packages/one/src/useLoader.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AACA,mBAAkC,kBAClC,gBAAuB,qBACvB,eAA2C,oBAC3C,cAA4B,wBAC5B,eAA6B,oBAC7B,mBAA0B,+BAC1B,gBAAiC,4BAEjC,uBAA8B,kCAC9B,iBAAwB,4BAElBA,WAAsD,CAAC,GACvDC,SAAS,CAAC,GACVC,aAAkC,CAAC;AAElC,SAASC,UAGdC,QAAc;MAyBqBC,kBAxB7BC,iBAAiBC,WAAW;AAGlC,MAAI,OAAOF,SAAW;AACpB,WAAOG,WACLJ,QACAE,kBAAkB;MAChBG,YAAQC,8BAAAA;IACV,CAAA;AAIJ,MAAMC,WAAWC,IACXC,gBAAYC,2BAAAA,GACZL,aAASM,wBAAAA,GAITC,WACJ,UAAMC,yBAAY;IAAEC,WAAUL,aAAAA,OAAAA,SAAAA,UAAWM,UAAS;IAAIV;EAAO,CAAA,EAAGW,QAAQ,UAAU,EAAA,GAE9EC,eACHV,WAAW,OAAOJ,WAAW;;GAE7B,OAAOF,SAAW,QAAcA,mBAAAA,OAAOiB,cAAQ,QAAfjB,qBAAAA,SAAAA,SAAAA,iBAAiBa,aAAYF,WAAW,MAGrEO,iBACJjB,k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IAAIJ,GAAAA;AAE5B,MAAIL,mBAAmBY;AACrB,UAAMZ;AAGR,SAAOA;AACT;",
5
- "names": ["promises", "errors", "loadedData", "useLoader", "loader", "window", "preloadedProps", "globalThis", "useAsyncFn", "params", "useActiveParams", "isNative", "process", "routeNode", "useRouteNode", "useParams", "pathName", "resolveHref", "pathname", "route", "replace", "currentPath", "location", "preloadedData", "path", "undefined", "currentData", "useRef", "useEffect", "loaded", "preloadingLoader", "then", "val", "catch", "err", "console", "error", "getData", "loaderJSUrl", "getURL", "CACHE_KEY", "response", "nativeLoaderJSUrl", "loaderJsCodeResp", "fetch", "ok", "Error", "status", "loaderJsCode", "text", "result", "eval", "e", "dynamicImport", "current", "results", "Map", "started", "props", "key", "weakKey", "JSON", "stringify", "get", "set", "next", "Promise", "final"]
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AACA,mBAAkC,kBAElC,eAA2C,oBAC3C,cAA4B,wBAC5B,eAA6B,oBAE7B,gBAAiC,4BAEjC,uBAA8B,kCAC9B,iBAAwB,4BACxB,kBAA8B,uBAExBA,WAAsD,CAAC,GACvDC,SAAS,CAAC,GACVC,aAAkC,CAAC;AAElC,SAASC,UAGdC,QAAc;MAyBqBC,kBAxB7BC,iBAAiBC,WAAW;AAGlC,MAAI,OAAOF,SAAW;AACpB,WAAOG,WACLJ,QACAE,kBAAkB;MAChBG,YAAQC,8BAAAA;IACV,CAAA;AAIJ,MAAMC,WAAWC,IACXC,gBAAYC,2BAAAA,GACZL,aAASM,wBAAAA,GAITC,WACJ,UAAMC,yBAAY;IAAEC,WAAUL,aAAAA,OAAAA,SAAAA,UAAWM,UAAS;IAAIV;EAAO,CAAA,EAAGW,QAAQ,UAAU,EAAA,GAE9EC,eACHV,WAAW,OAAOJ,WAAW;;GAE7B,OAAOF,SAAW,QAAcA,mBAAAA,OAAOiB,cAAQ,QAAfjB,qBAAAA,SAAAA,SAAAA,iBAAiBa,aAAYF,WAAW,MAGrEO,iBACJjB,kBAAAA,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AMZ;AAGR,SAAOA;AACT;",
5
+ "names": ["promises", "errors", "loadedData", "useLoader", "loader", "window", "preloadedProps", "globalThis", "useAsyncFn", "params", "useActiveParams", "isNative", "process", "routeNode", "useRouteNode", "useParams", "pathName", "resolveHref", "pathname", "route", "replace", "currentPath", "location", "preloadedData", "path", "undefined", "currentData", "useRef", "useEffect", "loaded", "preloadingLoader", "then", "val", "catch", "err", "console", "error", "getData", "loaderJSUrl", "getLoaderPath", "response", "nativeLoaderJSUrl", "loaderJsCodeResp", "fetch", "ok", "Error", "status", "loaderJsCode", "text", "result", "eval", "e", "dynamicImport", "current", "results", "Map", "started", "props", "key", "weakKey", "JSON", "stringify", "get", "set", "next", "Promise", "final"]
6
6
  }
@@ -19,7 +19,7 @@ __export(useViteRoutes_exports, {
19
19
  useViteRoutes: () => useViteRoutes
20
20
  });
21
21
  module.exports = __toCommonJS(useViteRoutes_exports);
22
- var import_constants = require("./router/constants"), import_dynamicImport = require("./utils/dynamicImport"), import_removeSearch = require("./utils/removeSearch");
22
+ var import_cleanUrl = require("./cleanUrl"), import_dynamicImport = require("./utils/dynamicImport");
23
23
  const import_meta = {};
24
24
  let lastVersion = 0, context;
25
25
  function useViteRoutes(routes, options, version) {
@@ -37,9 +37,7 @@ function globbedRoutesToRouteContext(paths, options) {
37
37
  }
38
38
  const loadRouteFunction = paths[path], pathWithoutRelative = path.replace("/app/", "./"), shouldRewrite = typeof window < "u" && window.location && !import_meta.env.PROD, originalPath = pathWithoutRelative.slice(1).replace(/\.[jt]sx?$/, "");
39
39
  options?.routeModes?.[originalPath] === "spa" ? (console.info(`Spa mode: ${originalPath}`), loadedRoutes[pathWithoutRelative] = () => null) : shouldRewrite ? routesSync[pathWithoutRelative] = path.includes("_layout.") || path.includes("+spa") ? loadRouteFunction : () => {
40
- const realPath = (globalThis.__vxrntodopath ?? window.location.pathname).trim(), importUrl = `${import_constants.CLIENT_BASE_URL}/assets${(0, import_removeSearch.removeSearch)(
41
- realPath
42
- )}_vxrn_loader.js?cache_key=${import_constants.CACHE_KEY}`;
40
+ const realPath = (globalThis.__vxrntodopath ?? window.location.pathname).trim(), importUrl = (0, import_cleanUrl.getLoaderPath)(realPath);
43
41
  return (0, import_dynamicImport.dynamicImport)(importUrl);
44
42
  } : routesSync[pathWithoutRelative] = loadRouteFunction;
45
43
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useViteRoutes.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA2C,+BAE3C,uBAA8B,kCAC9B,sBAA6B;AAH7B;AAQA,IAAI,cAAc,GACd;AAGG,SAAS,cACd,QACA,SACA,SACA;AACA,SAAI,WAAW,UAAU,gBAEvB,UAAU,MACV,cAAc,UAGX,WACH,WAAW,QAAQ,OAAO,GAGrB;AACT;AAEO,SAAS,WAAW,OAA4B,SAA4B;AACjF,SAAI,YACJ,WAAW,sBAAyB,OACpC,UAAU,4BAA4B,OAAO,OAAO,GAC7C;AACT;AAEO,SAAS,4BACd,OACA,SACkB;AAElB,QAAM,aAAa,CAAC,GACd,WAAW,CAAC,GACZ,eAAe,CAAC,GAChB,SAAS,CAAC;AAEhB,SAAO,KAAK,KAAK,EAAE,IAAI,CAAC,SAAS;AAC/B,QAAI,CAAC,MAAM,IAAI,GAAG;AAChB,cAAQ,MAAM,gCAAgC,IAAI,EAAE;AACpD;AAAA,IACF;AACA,UAAM,oBAAoB,MAAM,IAAI,GAC9B,sBAAsB,KAAK,QAAQ,SAAS,IAAI,GAChD,gBAAgB,OAAO,SAAW,OAAe,OAAO,YAAY,CAAC,YAAY,IAAI,MAErF,eAAe,oBAAoB,MAAM,CAAC,EAAE,QAAQ,cAAc,EAAE;AAC1E,IAAI,SAAS,aAAa,YAAY,MAAM,SAC1C,QAAQ,KAAK,aAAa,YAAY,EAAE,GAExC,aAAa,mBAAmB,IAAI,MAC3B,QAIF,gBAEP,WAAW,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B,QADA,aAAa,OAAO,EAAE,CAAC,GACnB,aAAa,EAAE;AACjB,aAAO,aAAa,EAAE;AAExB,QAAI,OAAO,WAAW,EAAE,KAAM;AAC5B,aAAO,WAAW,EAAE;AAEtB,UAAK,SAAS,EAAE,MACd,SAAS,EAAE,IAAI,WAAW,EAAE,EAAE,EAC3B,KAAK,CAAC,SACL,aAAa,EAAE,IAAI,KACnB,OAAO,SAAS,EAAE,GAGlB,OAAO,EAAE,IAAI,WAAW,MAAM;AAC5B,aAAO,aAAa,EAAE;AAAA,IACxB,GAAG,GAAG,GAEC,IACR,EACA,MAAM,CAAC,QAAQ;AACd,cAAQ,MAAM,uBAAuB,IAAI,KAAK,IAAI,MAAM,EAAE,KAAK,GAC/D,aAAa,EAAE,IAAI;AAAA,QACjB,SAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAkBjB,GACA,OAAO,SAAS,EAAE;AAAA,IACpB,CAAC,GAEC,QAAQ,IAAI,aAAa,kBAC3B,SAAS,EAAE,EAAE,QAAQ,IAAI,MAAM,EAAE,SAO/B,SAAS,EAAE;AAAA,EACnB;AAEA,iBAAQ,OAAO,MAAM,YACrB,QAAQ,KAAK,IACb,QAAQ,UAAU,CAAC,OAAe,IAE3B;AACT;",
5
5
  "names": []
6
6
  }
@@ -20,7 +20,7 @@ __export(useViteRoutes_exports, {
20
20
  useViteRoutes: () => useViteRoutes
21
21
  });
22
22
  module.exports = __toCommonJS(useViteRoutes_exports);
23
- var import_constants = require("./router/constants"), import_dynamicImport = require("./utils/dynamicImport"), import_removeSearch = require("./utils/removeSearch");
23
+ var import_cleanUrl = require("./cleanUrl"), import_dynamicImport = require("./utils/dynamicImport");
24
24
  const import_meta = {};
25
25
  var lastVersion = 0, context;
26
26
  function useViteRoutes(routes, options, version) {
@@ -41,7 +41,7 @@ function globbedRoutesToRouteContext(paths, options) {
41
41
  (options == null || (_options_routeModes = options.routeModes) === null || _options_routeModes === void 0 ? void 0 : _options_routeModes[originalPath]) === "spa" ? (console.info(`Spa mode: ${originalPath}`), loadedRoutes[pathWithoutRelative] = function() {
42
42
  return null;
43
43
  }) : shouldRewrite ? routesSync[pathWithoutRelative] = path.includes("_layout.") || path.includes("+spa") ? loadRouteFunction : function() {
44
- var _globalThis___vxrntodopath, realPath = ((_globalThis___vxrntodopath = globalThis.__vxrntodopath) !== null && _globalThis___vxrntodopath !== void 0 ? _globalThis___vxrntodopath : window.location.pathname).trim(), importUrl = `${import_constants.CLIENT_BASE_URL}/assets${(0, import_removeSearch.removeSearch)(realPath)}_vxrn_loader.js?cache_key=${import_constants.CACHE_KEY}`;
44
+ var _globalThis___vxrntodopath, realPath = ((_globalThis___vxrntodopath = globalThis.__vxrntodopath) !== null && _globalThis___vxrntodopath !== void 0 ? _globalThis___vxrntodopath : window.location.pathname).trim(), importUrl = (0, import_cleanUrl.getLoaderPath)(realPath);
45
45
  return (0, import_dynamicImport.dynamicImport)(importUrl);
46
46
  } : routesSync[pathWithoutRelative] = loadRouteFunction;
47
47
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/vxrn/packages/one/src/useViteRoutes.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;uBAA2C,+BAE3C,uBAA8B,kCAC9B,sBAA6B;AAH7B;AAQA,IAAIA,cAAc,GACdC;AAGG,SAASC,cACdC,QACAC,SACAC,SAAgB;AAEhB,SAAIA,WAAWA,UAAUL,gBAEvBC,UAAU,MACVD,cAAcK,UAGXJ,WACHK,WAAWH,QAAQC,OAAAA,GAGdH;AACT;AAEO,SAASK,WAAWC,OAA4BH,SAA0B;AAC/E,SAAIH,YACJO,WAAW,sBAAyBD,OACpCN,UAAUQ,4BAA4BF,OAAOH,OAAAA,GACtCH;AACT;AAEO,SAASQ,4BACdF,OACAH,SAA0B;AAG1B,MAAM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A,KAAQ;AAC5B,aAAOjC,WAAWiC,EAAAA;AAEpB,UAAKhC,SAASgC,EAAAA,MACZhC,SAASgC,EAAAA,IAAMjC,WAAWiC,EAAAA,EAAG,EAC1BE,KAAK,SAACC,KAAAA;AACLlC,0BAAa+B,EAAAA,IAAMG,KACnB,OAAOnC,SAASgC,EAAAA,GAGhB9B,OAAO8B,EAAAA,IAAMI,WAAW,WAAA;AACtB,eAAOnC,aAAa+B,EAAAA;MACtB,GAAG,GAAA,GAEIG;IACT,CAAA,EACCE,MAAM,SAACC,KAAAA;AACN/B,cAAQC,MAAM,uBAAuBwB,IAAIM,KAAK,IAAIC,MAAAA,EAAQC,KAAK,GAC/DvC,aAAa+B,EAAAA,IAAM;QACjBS,SAAS,WAAA;iBAAM;;MAkBjB,GACA,OAAOzC,SAASgC,EAAAA;IAClB,CAAA,GAEEU,QAAQ3B,IAAI4B,aAAa,kBAC3B3C,SAASgC,EAAAA,EAAIQ,QAAQ,IAAID,MAAAA,EAAQC,SAO/BxC,SAASgC,EAAAA;EACjB;AAEAD,iBAAQ3B,OAAO,WAAA;WAAM0B;KACrBC,QAAQC,KAAK,IACbD,QAAQA,UAAU,SAACC,IAAAA;WAAeA;KAE3BD;AACT;",
5
- "names": ["lastVersion", "context", "useViteRoutes", "routes", "options", "version", "loadRoutes", "paths", "globalThis", "globbedRoutesToRouteContext", "routesSync", "promises", "loadedRoutes", "clears", "Object", "keys", "map", "path", "console", "error", "loadRouteFunction", "pathWithoutRelative", "replace", "shouldRewrite", "window", "location", "env", "PROD", "originalPath", "slice", "routeModes", "info", "includes", "realPath", "pathname", "trim", "importUrl", "CLIENT_BASE_URL", "removeSearch", "CACHE_KEY", "dynamicImport", "moduleKeys", "resolve", "id", "clearTimeout", "then", "val", "setTimeout", "catch", "err", "Error", "stack", "default", "process", "NODE_ENV"]
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;sBAA8B,uBAG9B,uBAA8B;AAH9B;AASA,IAAIA,cAAc,G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AcF,SAAAA;IACvB,IAEN1B,WAAWW,mBAAAA,IAAuBD;EAEtC,CAAA;AAEA,MAAMmB,aAAazB,OAAOC,KAAKL,UAAAA;AAE/B,WAAS8B,QAAQC,IAAU;AAEzB,QADAC,aAAa7B,OAAO4B,EAAAA,CAAG,GACnB7B,aAAa6B,EAAAA;AACf,aAAO7B,aAAa6B,EAAAA;AAEtB,QAAI,OAAO/B,WAAW+B,EAAAA,KAAQ;AAC5B,aAAO/B,WAAW+B,EAAAA;AAEpB,UAAK9B,SAAS8B,EAAAA,MACZ9B,SAAS8B,EAAAA,IAAM/B,WAAW+B,EAAAA,EAAG,EAC1BE,KAAK,SAACC,KAAAA;AACLhC,0BAAa6B,EAAAA,IAAMG,KACnB,OAAOjC,SAAS8B,EAAAA,GAGhB5B,OAAO4B,EAAAA,IAAMI,WAAW,WAAA;AACtB,eAAOjC,aAAa6B,EAAAA;MACtB,GAAG,GAAA,GAEIG;IACT,CAAA,EACCE,MAAM,SAACC,KAAAA;AACN7B,cAAQC,MAAM,uBAAuBsB,IAAIM,KAAK,IAAIC,MAAAA,EAAQC,KAAK,GAC/DrC,aAAa6B,EAAAA,IAAM;QACjBS,SAAS,WAAA;iBAAM;;MAkBjB,GACA,OAAOvC,SAAS8B,EAAAA;IAClB,CAAA,GAEEU,QAAQzB,IAAI0B,aAAa,kBAC3BzC,SAAS8B,EAAAA,EAAIQ,QAAQ,IAAID,MAAAA,EAAQC,SAO/BtC,SAAS8B,EAAAA;EACjB;AAEAD,iBAAQzB,OAAO,WAAA;WAAMwB;KACrBC,QAAQC,KAAK,IACbD,QAAQA,UAAU,SAACC,IAAAA;WAAeA;KAE3BD;AACT;",
5
+ "names": ["lastVersion", "context", "useViteRoutes", "routes", "options", "version", "loadRoutes", "paths", "globalThis", "globbedRoutesToRouteContext", "routesSync", "promises", "loadedRoutes", "clears", "Object", "keys", "map", "path", "console", "error", "loadRouteFunction", "pathWithoutRelative", "replace", "shouldRewrite", "window", "location", "env", "PROD", "originalPath", "slice", "routeModes", "info", "includes", "realPath", "pathname", "trim", "importUrl", "getLoaderPath", "dynamicImport", "moduleKeys", "resolve", "id", "clearTimeout", "then", "val", "setTimeout", "catch", "err", "Error", "stack", "default", "process", "NODE_ENV"]
6
6
  }
@@ -256,7 +256,7 @@ async function build(args) {
256
256
  const code = await readFile(clientJsPath, "utf-8"), withLoader = (0, import_replaceLoader.replaceLoader)({
257
257
  code,
258
258
  loaderData
259
- }), loaderPartialPath = (0, import_node_path.join)(staticDir, "assets", (0, import_cleanUrl.getLoaderPath)(path));
259
+ }), loaderPartialPath = (0, import_node_path.join)(clientDir, "assets", (0, import_cleanUrl.getLoaderPath)(path));
260
260
  await outputFile(loaderPartialPath, withLoader);
261
261
  }
262
262
  if (foundRoute.type === "ssg") {
@@ -300,7 +300,7 @@ async function build(args) {
300
300
  var code = await readFile(clientJsPath, "utf-8"), withLoader = (0, import_replaceLoader.replaceLoader)({
301
301
  code,
302
302
  loaderData
303
- }), loaderPartialPath = (0, import_node_path.join)(staticDir, "assets", (0, import_cleanUrl.getLoaderPath)(path));
303
+ }), loaderPartialPath = (0, import_node_path.join)(clientDir, "assets", (0, import_cleanUrl.getLoaderPath)(path));
304
304
  await outputFile(loaderPartialPath, withLoader);
305
305
  }
306
306
  if (foundRoute.type === "ssg") {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/Users/n8/vxrn/packages/one/src/vite/build.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;sBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,cAAmE,iBACnE,cAA2F,iBAG3F,qBAA4B,0BAC5B,aAAmC,kBACnC,uBAA8B,4BAE9B,kBAAwD;AAdxD;AAgBA,IAAM,EAAEA,WAAWC,UAAUC,WAAU,IAAKC,gBAAAA;AAE5CC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;A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AAA;;;IAG1BlH,KAAKC,UAAU0H,QAAQ,MAAM,CAAA,CAAA,EAAI;AAIzB,iBAAO,MAAM+C,MAAKrI,QAAQ,KAAK,EAAA,EAAIA,QAAQ,KAAK,EAAA;QAClD;AACA,eAAOwD;MACT;AACA,aAAO6E;IACT,CAAA,EACChK,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAG8B,OAAAA,GAAUiI,cAAAA,GAAiBpI,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASuI,YAAYC,QAAc;AACjC,SAAOA,OAAOxI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASlC,wBAAwB2K,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKjL,IAAI,SAACmL,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAcrK,KAAK,GAAA,GAEtCwK,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
5
5
  "names": ["ensureDir", "readFile", "outputFile", "FSExtra", "process", "on", "err", "console", "error", "message", "build", "args", "userOptions", "options", "loadUserOneOptions", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "vxrnBuild", "analyze", "fillOptions", "toAbsolute", "p", "Path", "resolve", "root", "manifest", "getManifest", "optimizeDeps", "getOptimizeDeps", "apiBuildConfig", "mergeConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "join", "apiOutputFormat", "api", "viteBuild", "plugins", "nodeExternals", "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", "createRequire", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "relative", "cwd", "onlyBuild", "buildArgs", "only", "MicroMatch", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "filter", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "getPreloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "replaceLoader", "loaderPartialPath", "getLoaderPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
6
6
  }
@@ -1,12 +1,11 @@
1
1
  import { useEffect, useRef } from "react";
2
- import { getURL } from "./getURL";
3
2
  import { useActiveParams, useParams } from "./hooks";
4
3
  import { resolveHref } from "./link/href";
5
4
  import { useRouteNode } from "./Route";
6
- import { CACHE_KEY } from "./router/constants";
7
5
  import { preloadingLoader } from "./router/router";
8
6
  import { dynamicImport } from "./utils/dynamicImport";
9
7
  import { weakKey } from "./utils/weakKey";
8
+ import { getLoaderPath } from "./cleanUrl";
10
9
  const promises = {}, errors = {}, loadedData = {};
11
10
  function useLoader(loader) {
12
11
  const preloadedProps = globalThis.__vxrnLoaderProps__;
@@ -34,7 +33,7 @@ function useLoader(loader) {
34
33
  console.error("Error loading loader", err), errors[currentPath] = err, delete promises[currentPath], delete preloadingLoader[currentPath];
35
34
  })), !promises[currentPath]) {
36
35
  const getData = async () => {
37
- const loaderJSUrl = `${getURL()}/assets${currentPath}_vxrn_loader.js?${CACHE_KEY}`;
36
+ const loaderJSUrl = getLoaderPath(currentPath);
38
37
  try {
39
38
  const response = await (async () => {
40
39
  if (isNative) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useLoader.ts"],
4
- "mappings": "AACA,SAAS,WAAW,cAAc;AAClC,SAAS,cAAc;AACvB,SAAS,iBAAiB,iBAAiB;AAC3C,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,wBAAwB;AAEjC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AAExB,MAAM,WAAsD,CAAC,GACvD,SAAS,CAAC,GACV,aAAkC,CAAC;AAElC,SAAS,UAGd,QAA8E;AAC9E,QAAM,iBAAiB,WAAW;AAGlC,MAAI,OAAO,SAAW;AACpB,WAAO;AAAA,MACL;AAAA,MACA,kBAAkB;AAAA,QAChB,QAAQ,gBAAgB;AAAA,MAC1B;AAAA,IACF;AAGF,QAAM,WAAW,IACX,YAAY,aAAa,GACzB,SAAS,UAAU,GAInB,WACJ,MAAM,YAAY,EAAE,UAAU,WAAW,SAAS,IAAI,OAAO,CAAC,EAAE,QAAQ,UAAU,EAAE,GAEhF,eACH,WAAW,OAAO,WAAW;AAAA;AAAA,GAE7B,OAAO,SAAW,MAAc,OAAO,UAAU,YAAY,WAAW,MAGrE,gBACJ,gBAAgB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I,gBAAgB,YAClB,OAAO,KACJ,KAAK,CAAC,UAAU;AACf,cAAQ,IAAI,KAAK,KAAK;AAAA,IACxB,CAAC,EACA,MAAM,CAAC,QAAQ;AACd,cAAQ,MAAM,0BAA0B,GAAG,GAC3C,QAAQ,IAAI,KAAK,MAAS;AAAA,IAC5B,CAAC,IAEL,QAAQ,IAAI,KAAK,IAAI;AAAA,EACvB;AAGF,QAAM,UAAU,QAAQ,IAAI,GAAG;AAE/B,MAAI,mBAAmB;AACrB,UAAM;AAGR,SAAO;AACT;",
5
5
  "names": []
6
6
  }
@@ -1,12 +1,11 @@
1
1
  import { useEffect, useRef } from "react";
2
- import { getURL } from "./getURL.mjs";
3
2
  import { useActiveParams, useParams } from "./hooks.mjs";
4
3
  import { resolveHref } from "./link/href.mjs";
5
4
  import { useRouteNode } from "./Route.mjs";
6
- import { CACHE_KEY } from "./router/constants.mjs";
7
5
  import { preloadingLoader } from "./router/router.mjs";
8
6
  import { dynamicImport } from "./utils/dynamicImport.mjs";
9
7
  import { weakKey } from "./utils/weakKey.mjs";
8
+ import { getLoaderPath } from "./cleanUrl.mjs";
10
9
  const promises = {},
11
10
  errors = {},
12
11
  loadedData = {};
@@ -40,7 +39,7 @@ function useLoader(loader) {
40
39
  console.error("Error loading loader", err), errors[currentPath] = err, delete promises[currentPath], delete preloadingLoader[currentPath];
41
40
  })), !promises[currentPath]) {
42
41
  const getData = async () => {
43
- const loaderJSUrl = `${getURL()}/assets${currentPath}_vxrn_loader.js?${CACHE_KEY}`;
42
+ const loaderJSUrl = getLoaderPath(currentPath);
44
43
  try {
45
44
  const response = await (async () => {
46
45
  if (isNative) {
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useRef","getURL","useActiveParams","useParams","resolveHref","useRouteNode","CACHE_KEY","preloadingLoader","dynamicImport","weakKey","promises","errors","loadedData","useLoader","loader","preloadedProps","globalThis","__vxrnLoaderProps__","window","useAsyncFn","params","isNative","routeNode","pathName","pathname","route","replace","currentPath","__vxrntodopath","location","preloadedData","path","__vxrnLoaderData__","currentData","loaded","then","val","catch","err","console","error","getData","loaderJSUrl","response","nativeLoaderJSUrl","loaderJsCodeResp","fetch","ok","Error","status","loaderJsCode","text","result","eval","e","current","results","Map","started","props","key","JSON","stringify","get","set","next","Promise","final"],"sources":["../../src/useLoader.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,SAAA,EAAWC,MAAA,QAAc;AAClC,SAASC,MAAA,QAAc;AACvB,SAASC,eAAA,EAAiBC,SAAA,QAAiB;AAC3C,SAASC,WAAA,QAAmB;AAC5B,SAASC,YAAA,QAAoB;AAC7B,SAASC,SAAA,QAAiB;AAC1B,SAASC,gBAAA,QAAwB;AAEjC,SAASC,aAAA,QAAqB;AAC9B,SAASC,OAAA,QAAe;AAExB,MAAMC,QAAA,GAAsD,CAAC;EACvDC,MAAA,GAAS,CAAC;EACVC,UAAA,GAAkC,CAAC;AAElC,SAASC,UAGdC,MAAA,EAA8E;EAC9E,MAAMC,cAAA,GAAiBC,UAAA,CAAWC,mBAAA;EAGlC,IAAI,OAAOC,MAAA,GAAW,KACpB,OAAOC,UAAA,CACLL,MAAA,EACAC,cAAA,IAAkB;IAChBK,MAAA,EAAQlB,eAAA,CAAgB;EAC1B,CACF;EAGF,MAAMmB,QAAA,GAAW;IACXC,SAAA,GAAYjB,YAAA,CAAa;IACzBe,MAAA,GAASjB,SAAA,CAAU;IAInBoB,QAAA,GACJ,MAAMnB,WAAA,CAAY;MAAEoB,QAAA,EAAUF,SAAA,EAAWG,KAAA,IAAS;MAAIL;IAAO,CAAC,EAAEM,OAAA,CAAQ,UAAU,EAAE;IAEhFC,WAAA,IACHN,QAAA,GAAW,OAAOL,UAAA,CAAWY,cAAA;IAAA;IAAA;IAE7B,OAAOV,MAAA,GAAW,MAAcA,MAAA,CAAOW,QAAA,EAAUL,QAAA,IAAYD,QAAA,GAAW;IAGrEO,aAAA,GACJf,cAAA,EAAgBgB,IAAA,KAASJ,WAAA,GAAcX,UAAA,C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SAAA,CAAUH,KAAK;EAE5D,IAAIvB,GAAA,IACE,CAACsB,OAAA,CAAQK,GAAA,CAAIH,GAAG,GAAG;IACrBF,OAAA,CAAQM,GAAA,CAAIJ,GAAA,EAAK,EAAI;IAErB,IAAIK,IAAA,GAAO7B,GAAA,CAAIuB,KAAK;IAChBM,IAAA,YAAgBC,OAAA,KAClBD,IAAA,GAAOA,IAAA,CACJ9B,IAAA,CAAMgC,KAAA,IAAU;MACfX,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAKO,KAAK;IACxB,CAAC,EACA9B,KAAA,CAAOC,GAAA,IAAQ;MACdC,OAAA,CAAQC,KAAA,CAAM,0BAA0BF,GAAG,GAC3CkB,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAK,MAAS;IAC5B,CAAC,IAELJ,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAKK,IAAI;EACvB;EAGF,MAAMV,OAAA,GAAUC,OAAA,CAAQO,GAAA,CAAIH,GAAG;EAE/B,IAAIL,OAAA,YAAmBW,OAAA,EACrB,MAAMX,OAAA;EAGR,OAAOA,OAAA;AACT","ignoreList":[]}
1
+ {"version":3,"names":["useEffect","useRef","useActiveParams","useParams","resolveHref","useRouteNode","preloadingLoader","dynamicImport","weakKey","getLoaderPath","promises","errors","loadedData","useLoader","loader","preloadedProps","globalThis","__vxrnLoaderProps__","window","useAsyncFn","params","isNative","routeNode","pathName","pathname","route","replace","currentPath","__vxrntodopath","location","preloadedData","path","__vxrnLoaderData__","currentData","loaded","then","val","catch","err","console","error","getData","loaderJSUrl","response","nativeLoaderJSUrl","loaderJsCodeResp","fetch","ok","Error","status","loaderJsCode","text","result","eval","e","current","results","Map","started","props","key","JSON","stringify","get","set","next","Promise","final"],"sources":["../../src/useLoader.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,SAAA,EAAWC,MAAA,QAAc;AAElC,SAASC,eAAA,EAAiBC,SAAA,QAAiB;AAC3C,SAASC,WAAA,QAAmB;AAC5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AAA,CAAQC,KAAA,CAAM,0BAA0BF,GAAG,GAC3CkB,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAK,MAAS;IAC5B,CAAC,IAELJ,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAKK,IAAI;EACvB;EAGF,MAAMV,OAAA,GAAUC,OAAA,CAAQO,GAAA,CAAIH,GAAG;EAE/B,IAAIL,OAAA,YAAmBW,OAAA,EACrB,MAAMX,OAAA;EAGR,OAAOA,OAAA;AACT","ignoreList":[]}
@@ -1,12 +1,11 @@
1
1
  import { useEffect, useRef } from "react";
2
- import { getURL } from "./getURL.native.js";
3
2
  import { useActiveParams, useParams } from "./hooks.native.js";
4
3
  import { resolveHref } from "./link/href.native.js";
5
4
  import { useRouteNode } from "./Route.native.js";
6
- import { CACHE_KEY } from "./router/constants.native.js";
7
5
  import { preloadingLoader } from "./router/router.native.js";
8
6
  import { dynamicImport } from "./utils/dynamicImport.native.js";
9
7
  import { weakKey } from "./utils/weakKey.native.js";
8
+ import { getLoaderPath } from "./cleanUrl.native.js";
10
9
  var promises = {},
11
10
  errors = {},
12
11
  loadedData = {};
@@ -43,7 +42,7 @@ function useLoader(loader) {
43
42
  console.error("Error loading loader", err), errors[currentPath] = err, delete promises[currentPath], delete preloadingLoader[currentPath];
44
43
  })), !promises[currentPath]) {
45
44
  var getData = async function () {
46
- var loaderJSUrl = `${getURL()}/assets${currentPath}_vxrn_loader.js?${CACHE_KEY}`;
45
+ var loaderJSUrl = getLoaderPath(currentPath);
47
46
  try {
48
47
  var response = await async function () {
49
48
  if (isNative) {
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useRef","getURL","useActiveParams","useParams","resolveHref","useRouteNode","CACHE_KEY","preloadingLoader","dynamicImport","weakKey","promises","errors","loadedData","useLoader","loader","_window_location","preloadedProps","globalThis","__vxrnLoaderProps__","window","useAsyncFn","params","isNative","routeNode","pathName","pathname","route","replace","currentPath","__vxrntodopath","location","preloadedData","path","__vxrnLoaderData__","currentData","loaded","then","val","catch","err","console","error","getData","loaderJSUrl","response","nativeLoaderJSUrl","loaderJsCodeResp","fetch","ok","Error","status","loaderJsCode","text","result","eval","e","current","results","Map","started","props","key","JSON","stringify","get","set","next","Promise","final"],"sources":["../../src/useLoader.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,SAAA,EAAWC,MAAA,QAAc;AAClC,SAASC,MAAA,QAAc;AACvB,SAASC,eAAA,EAAiBC,SAAA,QAAiB;AAC3C,SAASC,WAAA,QAAmB;AAC5B,SAASC,YAAA,QAAoB;AAC7B,SAASC,SAAA,QAAiB;AAC1B,SAASC,gBAAA,QAAwB;AAEjC,SAASC,aAAA,QAAqB;AAC9B,SAASC,OAAA,QAAe;AAExB,IAAAC,QAAM,KAAsD;EAACC,MACvD,KAAS;EAACC,UACV,KAAkC;AAEjC,SAASC,UAGdC,MAAA,EAA8E;EAC9E,IAAAC,gBAAM;IAAAC,cAA4B,GAAAC,UAAA,CAAAC,mBAAA;EAGlC,IAAI,OAAOC,MAAA,GAAW,KACpB,OAAOC,UAAA,CAAAN,MAAA,EAAAE,cAAA;IACLK,MAAA,EAAAnB,eAAA;EAAA,EACA;EAAkB,IAAAoB,QAChB,GAAQ;IAAAC,SAAA,GAAgBlB,YAAA;IAAAgB,MAAA,GAAAlB,SAAA;IAAAqB,QAAA,SAAApB,WAAA;MAAAqB,QAC1B,EAAAF,SAAA,EAAAG,KAAA;MACFL;IAGF,GAAAM,OAAM,SAAW,EACX;IAAAC,WAAY,IAAAN,QACZ,UAASL,UAAU,CAAAY,cAKvB;IAAM;IAGwB;IAE7B,OAAOV,MAAA,GAAW,MAAc,EAAAJ,gBAAiB,GAAAI,MAAA,CAAAW,QAAY,MAAW,IAGrE,IAAAf,gBACJ,cAAgB,SAASA,gBAAc,CAAAU,QAAW,KAAAD,QAAA,MAAwB;IAAAO,aAEtE,GAAAf,cAAqB,EAAAgB,IAAA,KAAaJ,WAAA,GAAAX,UAAA,CAAAgB,kBAAA;IAAAC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J,GAAA,EAAAO,KAAA;IACT,GAAA9B,KAAA,WAAAC,GAAA","ignoreList":[]}
1
+ {"version":3,"names":["useEffect","useRef","useActiveParams","useParams","resolveHref","useRouteNode","preloadingLoader","dynamicImport","weakKey","getLoaderPath","promises","errors","loadedData","useLoader","loader","_window_location","preloadedProps","globalThis","__vxrnLoaderProps__","window","useAsyncFn","params","isNative","routeNode","pathName","pathname","route","replace","currentPath","__vxrntodopath","location","preloadedData","path","__vxrnLoaderData__","currentData","loaded","then","val","catch","err","console","error","getData","loaderJSUrl","response","nativeLoaderJSUrl","loaderJsCodeResp","fetch","ok","Error","status","loaderJsCode","text","result","eval","e","current","results","Map","started","props","key","JSON","stringify","get","set","next","Promise","final"],"sources":["../../src/useLoader.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,SAAA,EAAWC,MAAA,QAAc;AAElC,SAASC,eAAA,EAAiBC,SAAA,QAAiB;AAC3C,SAASC,WAAA,QAAmB;AAC5B,SAASC,YAAA,QAAoB;AAE7B,SAASC,gBAAA,QAAwB;AAEjC,SAASC,aAAA,QAAqB;AAC9B,SAASC,OAAA,QAAe;AACxB,SAASC,aAAA,QAAqB;AAE9B,IAAAC,QAAM,KAAsD;EAACC,MACvD,KAAS;EAACC,UACV,KAAkC;AAEjC,SAASC,UAGdC,MAAA,EAA8E;EAC9E,IAAAC,gBAAM;IAAAC,cAA4B,GAAAC,UAAA,CAAAC,mBAAA;EAGlC,IAAI,OAAOC,MAAA,GAAW,KACpB,OAAOC,UAAA,CAAAN,MAAA,EAAAE,cAAA;IACLK,MAAA,EAAAnB,eAAA;EAAA,EACA;EAAkB,IAAAoB,QAChB,GAAQ;IAAAC,SAAA,GAAgBlB,YAAA;IAAAgB,MAAA,GAAAlB,SAAA;IAAAqB,QAAA,SAAApB,WAAA;MAAAqB,QAC1B,EAAAF,SAAA,EAAAG,KAAA;MACFL;IAGF,GAAAM,OAAM,SAAW,EACX;IAAAC,WAAY,IAAAN,QACZ,UAASL,UAAU,C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AAAsB,OAAA,CAAAK,GAAA,CAAAH,GAAA;IAGFF,OAAM,CAAAM,GAAA,CAAAJ,GAAU;IAEhB,IAAIK,IAAA,GAAA7B,GAAA,CAAAuB,KAAA,CAAmB;IACrBM,IAAA,YAAMC,OAAA,KAAAD,IAAA,GAAAA,IAAA,CAAA9B,IAAA,WAAAgC,KAAA;MAGRX,OAAO,CAAAQ,GAAA,CAAAJ,GAAA,EAAAO,KAAA;IACT,GAAA9B,KAAA,WAAAC,GAAA","ignoreList":[]}
@@ -1,6 +1,5 @@
1
- import { CACHE_KEY, CLIENT_BASE_URL } from "./router/constants";
1
+ import { getLoaderPath } from "./cleanUrl";
2
2
  import { dynamicImport } from "./utils/dynamicImport";
3
- import { removeSearch } from "./utils/removeSearch";
4
3
  let lastVersion = 0, context;
5
4
  function useViteRoutes(routes, options, version) {
6
5
  return version && version > lastVersion && (context = null, lastVersion = version), context || loadRoutes(routes, options), context;
@@ -17,9 +16,7 @@ function globbedRoutesToRouteContext(paths, options) {
17
16
  }
18
17
  const loadRouteFunction = paths[path], pathWithoutRelative = path.replace("/app/", "./"), shouldRewrite = typeof window < "u" && window.location && !import.meta.env.PROD, originalPath = pathWithoutRelative.slice(1).replace(/\.[jt]sx?$/, "");
19
18
  options?.routeModes?.[originalPath] === "spa" ? (console.info(`Spa mode: ${originalPath}`), loadedRoutes[pathWithoutRelative] = () => null) : shouldRewrite ? routesSync[pathWithoutRelative] = path.includes("_layout.") || path.includes("+spa") ? loadRouteFunction : () => {
20
- const realPath = (globalThis.__vxrntodopath ?? window.location.pathname).trim(), importUrl = `${CLIENT_BASE_URL}/assets${removeSearch(
21
- realPath
22
- )}_vxrn_loader.js?cache_key=${CACHE_KEY}`;
19
+ const realPath = (globalThis.__vxrntodopath ?? window.location.pathname).trim(), importUrl = getLoaderPath(realPath);
23
20
  return dynamicImport(importUrl);
24
21
  } : routesSync[pathWithoutRelative] = loadRouteFunction;
25
22
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
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AG,GAAG,GAEC,IACR,EACA,MAAM,CAAC,QAAQ;AACd,cAAQ,MAAM,uBAAuB,IAAI,KAAK,IAAI,MAAM,EAAE,KAAK,GAC/D,aAAa,EAAE,IAAI;AAAA,QACjB,SAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAkBjB,GACA,OAAO,SAAS,EAAE;AAAA,IACpB,CAAC,GAEC,QAAQ,IAAI,aAAa,kBAC3B,SAAS,EAAE,EAAE,QAAQ,IAAI,MAAM,EAAE,SAO/B,SAAS,EAAE;AAAA,EACnB;AAEA,iBAAQ,OAAO,MAAM,YACrB,QAAQ,KAAK,IACb,QAAQ,UAAU,CAAC,OAAe,IAE3B;AACT;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,5 @@
1
- import { CACHE_KEY, CLIENT_BASE_URL } from "./router/constants.mjs";
1
+ import { getLoaderPath } from "./cleanUrl.mjs";
2
2
  import { dynamicImport } from "./utils/dynamicImport.mjs";
3
- import { removeSearch } from "./utils/removeSearch.mjs";
4
3
  let lastVersion = 0,
5
4
  context;
6
5
  function useViteRoutes(routes, options, version) {
@@ -25,7 +24,7 @@ function globbedRoutesToRouteContext(paths, options) {
25
24
  originalPath = pathWithoutRelative.slice(1).replace(/\.[jt]sx?$/, "");
26
25
  options?.routeModes?.[originalPath] === "spa" ? (console.info(`Spa mode: ${originalPath}`), loadedRoutes[pathWithoutRelative] = () => null) : shouldRewrite ? routesSync[pathWithoutRelative] = path.includes("_layout.") || path.includes("+spa") ? loadRouteFunction : () => {
27
26
  const realPath = (globalThis.__vxrntodopath ?? window.location.pathname).trim(),
28
- importUrl = `${CLIENT_BASE_URL}/assets${removeSearch(realPath)}_vxrn_loader.js?cache_key=${CACHE_KEY}`;
27
+ importUrl = getLoaderPath(realPath);
29
28
  return dynamicImport(importUrl);
30
29
  } : routesSync[pathWithoutRelative] = loadRouteFunction;
31
30
  });
@@ -1 +1 @@
1
- {"version":3,"names":["CACHE_KEY","CLIENT_BASE_URL","dynamicImport","removeSearch","lastVersion","context","useViteRoutes","routes","options","version","loadRoutes","paths","globalThis","__importMetaGlobbed","globbedRoutesToRouteContext","routesSync","promises","loadedRoutes","clears","Object","keys","map","path","console","error","loadRouteFunction","pathWithoutRelative","replace","shouldRewrite","window","location","import","meta","env","PROD","originalPath","slice","routeModes","info","includes","realPath","__vxrntodopath","pathname","trim","importUrl","moduleKeys","resolve","id","clearTimeout","then","val","setTimeout","catch","err","Error","stack","default","process","NODE_ENV"],"sources":["../../src/useViteRoutes.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,eAAA,QAAuB;AAE3C,SAASC,aAAA,QAAqB;AAC9B,SAASC,YAAA,QAAoB;AAK7B,IAAIC,WAAA,GAAc;EACdC,OAAA;AAGG,SAASC,cACdC,MAAA,EACAC,OAAA,EACAC,OAAA,EACA;EACA,OAAIA,OAAA,IAAWA,OAAA,GAAUL,WAAA,KAEvBC,OAAA,GAAU,MACVD,WAAA,GAAcK,OAAA,GAGXJ,OAAA,IACHK,UAAA,CAAWH,MAAA,EAAQC,OAAO,GAGrBH,OAAA;AACT;AAEO,SAASK,WAAWC,KAAA,EAA4BH,OAAA,EAA4B;EACjF,OAAIH,OAAA,KACJO,UAAA,CAAWC,mBAAA,GAAyBF,KAAA,EACpCN,OAAA,GAAUS,2BAAA,CAA4BH,KAAA,EAAOH,OAAO,GAC7CH,OAAA;AACT;AAEO,SAASS,4BACdH,KAAA,EACAH,OAAA,EACkB;EAElB,MAAMO,UAAA,GAAa,CAAC;IACdC,QAAA,GAAW,CAAC;IACZC,YAAA,GAAe,CAAC;IAChBC,MAAA,GAAS,CAAC;EAEhBC,MAAA,CAAOC,IAAA,CAAKT,KAAK,EAAEU,GAAA,CAAKC,IAAA,IAAS;IAC/B,IAAI,CAACX,KAAA,CAAMW,IAAI,GAAG;MAChBC,OAAA,CAAQ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AA,CAAWgC,EAAE;IAEtB,MAAK/B,QAAA,CAAS+B,EAAE,MACd/B,QAAA,CAAS+B,EAAE,IAAIhC,UAAA,CAAWgC,EAAE,EAAE,EAC3BE,IAAA,CAAMC,GAAA,KACLjC,YAAA,CAAa8B,EAAE,IAAIG,GAAA,EACnB,OAAOlC,QAAA,CAAS+B,EAAE,GAGlB7B,MAAA,CAAO6B,EAAE,IAAII,UAAA,CAAW,MAAM;MAC5B,OAAOlC,YAAA,CAAa8B,EAAE;IACxB,GAAG,GAAG,GAECG,GAAA,CACR,EACAE,KAAA,CAAOC,GAAA,IAAQ;MACd9B,OAAA,CAAQC,KAAA,CAAM,uBAAuBuB,EAAA,EAAIM,GAAA,EAAK,IAAIC,KAAA,CAAM,EAAEC,KAAK,GAC/DtC,YAAA,CAAa8B,EAAE,IAAI;QACjBS,OAAA,EAASA,CAAA,KAAM;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;MAkBjB,GACA,OAAOxC,QAAA,CAAS+B,EAAE;IACpB,CAAC,GAECU,OAAA,CAAQxB,GAAA,CAAIyB,QAAA,KAAa,kBAC3B1C,QAAA,CAAS+B,EAAE,EAAEQ,KAAA,GAAQ,IAAID,KAAA,CAAM,EAAEC,KAAA,IAO/BvC,QAAA,CAAS+B,EAAE;EACnB;EAEA,OAAAD,OAAA,CAAQ1B,IAAA,GAAO,MAAMyB,UAAA,EACrBC,OAAA,CAAQC,EAAA,GAAK,IACbD,OAAA,CAAQA,OAAA,GAAWC,EAAA,IAAeA,EAAA,EAE3BD,OAAA;AACT","ignoreList":[]}
1
+ {"version":3,"names":["getLoaderPath","dynamicImport","lastVersion","context","useViteRoutes","routes","options","version","loadRoutes","paths","globalThis","__importMetaGlobbed","globbedRoutesToRouteContext","routesSync","promises","loadedRoutes","clears","Object","keys","map","path","console","error","loadRouteFunction","pathWithoutRelative","replace","shouldRewrite","window","location","import","meta","env","PROD","originalPath","slice","routeModes","info","includes","realPath","__vxrntodopath","pathname","trim","importUrl","moduleKeys","resolve","id","clearTimeout","then","val","setTimeout","catch","err","Error","stack","default","process","NODE_ENV"],"sources":["../../src/useViteRoutes.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAG9B,SAASC,aAAA,QAAqB;AAM9B,IAAIC,WAAA,GAAc;EACdC,OAAA;AAGG,SAASC,cACdC,MAAA,EACAC,OAAA,EACAC,OAAA,EACA;EACA,OAAIA,OAAA,IAAWA,OAAA,GAAUL,WAAA,KAEvBC,OAAA,GAAU,MACVD,WAAA,GAAcK,OAAA,GAGXJ,OAAA,IACHK,UAAA,CAAWH,MAAA,EAAQC,OAAO,GAGrBH,OAAA;AACT;AAEO,SAASK,WAAWC,KAAA,EAA4BH,OAAA,EAA4B;EACjF,OAAIH,OAAA,KACJO,UAAA,CAAWC,mBAAA,GAAyBF,KAAA,EACpCN,OAAA,GAAUS,2BAAA,CAA4BH,KAAA,EAAOH,OAAO,GAC7CH,OAAA;AACT;AAEO,SAASS,4BACdH,KAAA,EACAH,OAAA,EACkB;EAElB,MAAMO,UAAA,GAAa,CAAC;IACdC,QAAA,GAAW,CAAC;IACZC,YAAA,GAAe,CAAC;IAChBC,MAAA,GAAS,CAAC;EAEhBC,MAAA,CAAOC,IAAA,CAAKT,KAAK,EAAEU,GAAA,CAAKC,IAAA,IAAS;IAC/B,IAAI,CAACX,KAAA,CAAMW,IAAI,GAAG;MAChBC,OAAA,CAAQC,KAAA,CAAM,gCAAgCF,IAAI,EAAE;MACpD;IACF;IACA,MAAMG,iBAAA,GAAoBd,KAAA,CAAMW,IAAI;MAC9BI,mBAAA,GAAsBJ,IAAA,CAAKK,OAAA,CAAQ,SAAS,IAAI;MAChDC,aAAA,GAAgB,OAAOC,MAAA,GAAW,OAAeA,MAAA,CAAOC,QAAA,IAAY,CAACC,MAAA,CAAAC,IAAA,CAAYC,GAAA,CAAIC,IAAA;MA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AAG,GAECG,GAAA,CACR,EACAE,KAAA,CAAOC,GAAA,IAAQ;MACd9B,OAAA,CAAQC,KAAA,CAAM,uBAAuBuB,EAAA,EAAIM,GAAA,EAAK,IAAIC,KAAA,CAAM,EAAEC,KAAK,GAC/DtC,YAAA,CAAa8B,EAAE,IAAI;QACjBS,OAAA,EAASA,CAAA,KAAM;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;MAkBjB,GACA,OAAOxC,QAAA,CAAS+B,EAAE;IACpB,CAAC,GAECU,OAAA,CAAQxB,GAAA,CAAIyB,QAAA,KAAa,kBAC3B1C,QAAA,CAAS+B,EAAE,EAAEQ,KAAA,GAAQ,IAAID,KAAA,CAAM,EAAEC,KAAA,IAO/BvC,QAAA,CAAS+B,EAAE;EACnB;EAEA,OAAAD,OAAA,CAAQ1B,IAAA,GAAO,MAAMyB,UAAA,EACrBC,OAAA,CAAQC,EAAA,GAAK,IACbD,OAAA,CAAQA,OAAA,GAAWC,EAAA,IAAeA,EAAA,EAE3BD,OAAA;AACT","ignoreList":[]}
@@ -1,6 +1,5 @@
1
- import { CACHE_KEY, CLIENT_BASE_URL } from "./router/constants.native.js";
1
+ import { getLoaderPath } from "./cleanUrl.native.js";
2
2
  import { dynamicImport } from "./utils/dynamicImport.native.js";
3
- import { removeSearch } from "./utils/removeSearch.native.js";
4
3
  var lastVersion = 0,
5
4
  context;
6
5
  function useViteRoutes(routes, options, version) {
@@ -29,7 +28,7 @@ function globbedRoutesToRouteContext(paths, options) {
29
28
  }) : shouldRewrite ? routesSync[pathWithoutRelative] = path.includes("_layout.") || path.includes("+spa") ? loadRouteFunction : function () {
30
29
  var _globalThis___vxrntodopath,
31
30
  realPath = ((_globalThis___vxrntodopath = globalThis.__vxrntodopath) !== null && _globalThis___vxrntodopath !== void 0 ? _globalThis___vxrntodopath : window.location.pathname).trim(),
32
- importUrl = `${CLIENT_BASE_URL}/assets${removeSearch(realPath)}_vxrn_loader.js?cache_key=${CACHE_KEY}`;
31
+ importUrl = getLoaderPath(realPath);
33
32
  return dynamicImport(importUrl);
34
33
  } : routesSync[pathWithoutRelative] = loadRouteFunction;
35
34
  });
@@ -1 +1 @@
1
- {"version":3,"names":["CACHE_KEY","CLIENT_BASE_URL","dynamicImport","removeSearch","lastVersion","context","useViteRoutes","routes","options","version","loadRoutes","paths","globalThis","__importMetaGlobbed","globbedRoutesToRouteContext","routesSync","promises","loadedRoutes","clears","Object","keys","map","path","_options_routeModes","console","error","loadRouteFunction","pathWithoutRelative","replace","shouldRewrite","window","location","import","meta","env","PROD","originalPath","slice","routeModes","info","includes","_globalThis___vxrntodopath","realPath","__vxrntodopath","pathname","trim","importUrl","moduleKeys","resolve","id","clearTimeout","then","val","setTimeout","catch","err","Error","stack","default","process","NODE_ENV"],"sources":["../../src/useViteRoutes.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,eAAA,QAAuB;AAE3C,SAASC,aAAA,QAAqB;AAC9B,SAASC,YAAA,QAAoB;AAK7B,IAAIC,WAAA,GAAc;EACdC,OAAA;AAGG,SAASC,cACdC,MAAA,EACAC,OAAA,EACAC,OAAA,EACA;EACA,OAAIA,OAAA,IAAWA,OAAA,GAAUL,WAAA,KAEvBC,OAAA,GAAU,MACVD,WAAA,GAAcK,OAAA,GAGXJ,OAAA,IACHK,UAAA,CAAWH,MAAA,EAAQC,OAAO,GAGrBH,OAAA;AACT;AAEO,SAASK,WAAWC,KAAA,EAA4BH,OAAA,EAA4B;EACjF,OAAIH,OAAA,KACJO,UAAA,CAAWC,mBAAA,GAAyBF,KAAA,EACpCN,OAAA,GAAUS,2BAAA,CAA4BH,KAAA,EAAOH,OAAO,GAC7CH,OAAA;AACT;AAEO,SAASS,4BACdH,KAAA,EACAH,OAAA,EACkB;EAElB,IAAAO,UAAM,KAAa;IAACC,QACd,KAAW;IAACC,YACZ,KAAe;IAACC,MAChB,K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MAAa,CAAE+B,EAAA,IAAAhC,YAAA,CAAAgC,EAAA,GAExB,OAAIhC,YAAO,CAAWgC,EAAE;IACtB,WAAOlC,UAAW,CAAEkC,EAAA,iBAEtB,OAAKlC,UAAW,CAAAkC,EAAA,CACd;IAOM,MAAAjC,QAAO,CAAAiC,EAAA,MAAajC,QAAE,CAAAiC,EAAA,IAAAlC,UAAA,CAAAkC,EAAA,IAAAE,IAAA,WAAAC,GAAA;MACxB,OAEOnC,YAEF,CAACgC,EAAA,IAAAG,GAAQ,SAAApC,QAAA,CAAAiC,EAAA,GAAA/B,MAAA,CAAA+B,EAAA,IAAAI,UAAA;QACd,OAAQpC,YAAM,CAAAgC,EAAA;MACK,GACjB,MAAAG,GAAS;IAAM,GAAAE,KAAA,WAAAC,GAAA;MAAA/B,OAAA,CAAAC,KAAA,wBAAAwB,EAAA,EAAAM,GAAA,MAAAC,KAAA,GAAAC,KAAA,GAAAxC,YAAA,CAAAgC,EAAA;QAAAS,OAAA,WAAAA,CAAA;UAAA;QAAA;MAAA,UAAA1C,QAAA,CAAAiC,EAAA;IAAA,IAAAU,OAAA,CAAAzB,GAAA,CAAA0B,QAAA,uBAAA5C,QAAA,CAAAiC,EAAA,EAAAQ,KAAA,OAAAD,KAAA,GAAAC,KAAA,IAAAzC,QAAA,CAAAiC,EAAA;EAAA;EAAA,OAAAD,OAAA,CAAA5B,IAAA;IAAA,OAAA2B,UAAA;EAAA,GAAAC,OAAA,CAAAC,EAAA,OAAAD,OAAA,CAAAA,OAAA,aAAAC,EAAA;IAAA,OAAAA,EAAA;EAAA,GAAAD,OAAA;AAAA;AAAA,SAAAlC,2BAAA,EAAAJ,UAAA,EAAAJ,aAmBjB","ignoreList":[]}
1
+ {"version":3,"names":["getLoaderPath","dynamicImport","lastVersion","context","useViteRoutes","routes","options","version","loadRoutes","paths","globalThis","__importMetaGlobbed","globbedRoutesToRouteContext","routesSync","promises","loadedRoutes","clears","Object","keys","map","path","_options_routeModes","console","error","loadRouteFunction","pathWithoutRelative","replace","shouldRewrite","window","location","import","meta","env","PROD","originalPath","slice","routeModes","info","includes","_globalThis___vxrntodopath","realPath","__vxrntodopath","pathname","trim","importUrl","moduleKeys","resolve","id","clearTimeout","then","val","setTimeout","catch","err","Error","stack","default","process","NODE_ENV"],"sources":["../../src/useViteRoutes.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAG9B,SAASC,aAAA,QAAqB;AAM9B,IAAIC,WAAA,GAAc;EACdC,OAAA;AAGG,SAASC,cACdC,MAAA,EACAC,OAAA,EACAC,OAAA,EACA;EACA,OAAIA,OAAA,IAAWA,OAAA,GAAUL,WAAA,KAEvBC,OAAA,GAAU,MACVD,WAAA,GAAcK,OAAA,GAGXJ,OAAA,IACHK,UAAA,CAAWH,MAAA,EAAQC,OAAO,GAGrBH,OAAA;AACT;AAEO,SAASK,WAAWC,KAAA,EAA4BH,OAAA,EAA4B;EACjF,OAAIH,OAAA,KACJO,UAAA,CAAWC,mBAAA,GAAyBF,KAAA,EACpCN,OAAA,GAAUS,2BAAA,CAA4BH,KAAA,EAAOH,OAAO,GAC7CH,OAAA;AACT;AAEO,SAASS,4BACdH,KAAA,EACAH,OAAA,EACkB;EAElB,IAAAO,UAAM,KAAa;IAACC,QACd,KAAW;IAACC,YACZ,KAAe;IAACC,MAChB,KAAS;EAEfC,MAAA,CAAOC,IAAA,CAAKT,KAAK,EAAEU,GAAA,CAAI,UAACC,IAAS;IAC/B,IAAIC,mBAAc;IAChB,KAAAZ,KAAQ,CAAAW,IAAA,CAAM;MACdE,OAAA,CAAAC,KAAA,iCAAAH,IAAA;MACF;IACA;IAKI,IAAAI,iBAAS,GAAaf,KAAA,CAAAW,IAAY;MAAAK,mBACpC,GAAQL,IAAK,CAAAM,OAAA,QAAa;MAAYC,aAEtC,UAAaC,MAAA,UAAmBA,MAAI,CAC3BC,QAIF,KAAAC,MAAA,CAAAC,IAEP,CAAAC,GAAA,CAAAC,IAAA;MAAWC,YAAA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AAgC,EAAA;MAAA,SAAAG,GAAA;IAAA,GAAAE,KAAA,WAAAC,GAAA;MAAA/B,OAAA,CAAAC,KAAA,wBAAAwB,EAAA,EAAAM,GAAA,MAAAC,KAAA,GAAAC,KAAA,GAAAxC,YAAA,CAAAgC,EAAA;QAAAS,OAAA,WAAAA,CAAA;UAAA;QAAA;MAAA,UAAA1C,QAAA,CAAAiC,EAAA;IAAA,IAAAU,OAAA,CAAAzB,GAAA,CAAA0B,QAAA,uBAAA5C,QAAA,CAAAiC,EAAA,EAAAQ,KAAA,OAAAD,KAAA,GAAAC,KAAA,IAAAzC,QAAA,CAAAiC,EAAA;EAAA;EAAA,OAAAD,OAAA,CAAA5B,IAAA;IAAA,OAAA2B,UAAA;EAAA,GAAAC,OAAA,CAAAC,EAAA,OAAAD,OAAA,CAAAA,OAAA,aAAAC,EAAA;IAAA,OAAAA,EAAA;EAAA,GAAAD,OAAA;AAAA;AAAA,SAAAlC,2BAmBC,EAAAJ,UAGlB,EASRJ,aAAA","ignoreList":[]}
@@ -239,7 +239,7 @@ async function build(args) {
239
239
  const code = await readFile(clientJsPath, "utf-8"), withLoader = replaceLoader({
240
240
  code,
241
241
  loaderData
242
- }), loaderPartialPath = join(staticDir, "assets", getLoaderPath(path));
242
+ }), loaderPartialPath = join(clientDir, "assets", getLoaderPath(path));
243
243
  await outputFile(loaderPartialPath, withLoader);
244
244
  }
245
245
  if (foundRoute.type === "ssg") {
@@ -262,7 +262,7 @@ async function build(args) {
262
262
  code,
263
263
  loaderData
264
264
  }),
265
- loaderPartialPath = join(staticDir, "assets", getLoaderPath(path));
265
+ loaderPartialPath = join(clientDir, "assets", getLoaderPath(path));
266
266
  await outputFile(loaderPartialPath, withLoader);
267
267
  }
268
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","getLoaderPath","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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CAAYI,GAAG,CAAC,EAEjBhO,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAIiO,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","getLoaderPath","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"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAG3F,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAE9B,SAAmBC,aAAA,EAAeC,cAAA,QAAsB;AAExD,MAAM;EAAEC,SAAA;EAAWC,QAAA;EAAUC;AAAW,IAAIpB,OAAA;AAE5CqB,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBf,MAAMmB,IAAA,EAGzB;EACD,MAAMC,WAAA,GAAc,MAAMd,kBAAA,CAAmB,OAAO;IAC9Ce,kBAAA,GAAqBD,WAAA,CAAYpB,KAAA,EAAOsB,MAAA,EAAQC,YAAA,IAAgB;EAGtEV,OAAA,CAAQW,GAAA,CAAIC,aAAA,GAAgB,KAEvBZ,OAAA,CAAQW,GAAA,CAAIE,cAAA,IACfV,OAAA,CAAQW,IAAA,CACN,+FACF;EAGF,MAAMC,UAAA,GAAa,MAAMxB,SAAA,CACvB;MACEkB,MAAA,E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AAG;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,EAEjBhO,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAIiO,MAAA,CAAOF,YAAY;AAChC","ignoreList":[]}
@@ -312,7 +312,7 @@ async function build(args) {
312
312
  code,
313
313
  loaderData
314
314
  }),
315
- loaderPartialPath = join(staticDir, "assets", getLoaderPath(path));
315
+ loaderPartialPath = join(clientDir, "assets", getLoaderPath(path));
316
316
  await outputFile(loaderPartialPath, withLoader);
317
317
  }
318
318
  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","getLoaderPath","getPreloadPath","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","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","_userOptions_build_api","_userOptions_build1","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","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","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","filter","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAG3F,SAASC,WAAA,QAA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AA,CAAAC,SAAW,CAAA6I,MAAA,IACR,IAAM,EAAG,IACT,EAAI,CAAC,MAAAzL,OAAS,CAAAC,KAAA,CAAAF,GAAA,GAAAF,OAAA,CAAAyG,IAAA;YACT;UACF;QACA,SAAKvG,GAAA,EAAO;UACVkL,kBAAI,OAAAC,eAAA,GAAAnL,GAAA;QACF;UAAU;YACR,CAAAiL,0BAAA,IAAAG,UAAA,CAAAgC,MAAA,YAAAhC,UAAA,CAAAgC,MAAA;UAAA;YAEc,IAAAlC,kBACA,QAAAC,eACA;UAAQ;QAAA;MAGlC,GAAAkC,SAAK,GAAU1G,aAAQ,CAAM0E,MAAE,CAAAC,QAAA,KAAApE,KAAA,IAAAL,yBAAA,IAAAK,KAAA,GAAAmG,SAAA,CAAA7B,IAAA,IAAAC,IAAA,GAAA5E,yBAAA,aAAAG,KAAA;EAAA,SAAAhH,GACrB;IAGF8G,iBAAO,GAAM,IAAKC,cAAa,GAAI/G,GAAA;EAAe,UACpD;IACA;MACF,CAAA6G,yBAAA,IAAAwG,SAAA,CAAAD,MAAA,YAAAC,SAAA,CAAAD,MAAA;IACA,UAAO;MACR,IACAtG,iBAAS,EACX,MAAAC,cAAA;IAEH;EACF;EAEA,MAAAuG,YAAS,CAAY7G,SAAgB,EAAAC,SAAA,SAAAjI,OAAA,CAAA8O,EAAA,CAAA9G,SAAA;IACnC+G,KAAO;IACTC,SAAA;EAEA;EAME,IAAAC,QAAM,GAAA1H,WAAe,CAAA9C,MAAA,WAJCyK,GAAK,EAAAlL,KAAK;MAKhC;QAAO0J,SAAI;QAAOL;MAAA,IAAYrJ,KAAA;MAChC,OAAAkL,GAAA,CAAAxB,SAAA,IAAAL,QAAA,EAAA6B,GAAA","ignoreList":[]}
1
+ {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","getLoaderPath","getPreloadPath","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","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","_userOptions_build_api","_userOptions_build1","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","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","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","filter","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAG3F,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAE9B,SAAmBC,aAAA,EAAeC,cAAA,QAAsB;AAExD;EAAMC,SAAE;EAAAC,QAAW;EAAAC;AAAU,IAAWpB,OAAI;AAE5CqB,OAAA,CAAQC,EAAA,CAAG,qBAAqB,UAASC,GAAA;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBf,MAAMmB,IAAA,EAGzB;EACD,IAAAC,yBAA0B;IAAAC,kBAAmB;IAAAC,gBACvC;IAAAC,eAAqB;IAAAC,WAAmB,SAAQlB,kBAAgB;IAAAmB,sCAAA;IAAAC,kBAAA,IAAAD,sCAAA,IAAAJ,kBAAA,GAAAG,WAAA,CAAAxB,KAAA,cAAAqB,kBAAA,gBAAAD,yBAAA,GAAAC,kBAAA,CAAAM,MAAA,cAAAP,yBAAA,uBAAAA,yBAAA,CAAAQ,YAAA,cAAAH,sCAAA,cAAAA,sCAAA;EAGtEZ,OAAA,CAAQgB,GAAA,CAAIC,aAAA,GAAgB,KAEvBjB,OAAA,CAAQgB,GAA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,MAAAC,cAAA;IAEH;EACF;EAEA,MAAAuG,YAAS,CAAY7G,SAAgB,EAAAC,SAAA,SAAAjI,OAAA,CAAA8O,EAAA,CAAA9G,SAAA;IACnC+G,KAAO;IACTC,SAAA;EAEA;EAME,IAAAC,QAAM,GAAA1H,WAAe,CAAA9C,MAAA,WAJCyK,GAAK,EAAAlL,KAAK;MAKhC;QAAO0J,SAAI;QAAOL;MAAA,IAAYrJ,KAAA;MAChC,OAAAkL,GAAA,CAAAxB,SAAA,IAAAL,QAAA,EAAA6B,GAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.278",
3
+ "version": "1.1.280",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "sideEffects": false,
@@ -89,12 +89,12 @@
89
89
  "@react-navigation/native-stack": "~6.9.13",
90
90
  "@react-navigation/routers": "~6.1.9",
91
91
  "@ungap/structured-clone": "^1.2.0",
92
- "@vxrn/universal-color-scheme": "1.1.278",
93
- "@vxrn/use-isomorphic-layout-effect": "1.1.278",
92
+ "@vxrn/universal-color-scheme": "1.1.280",
93
+ "@vxrn/use-isomorphic-layout-effect": "1.1.280",
94
94
  "babel-dead-code-elimination": "^1.0.6",
95
95
  "citty": "^0.1.6",
96
96
  "core-js": "^3.38.1",
97
- "create-vxrn": "1.1.278",
97
+ "create-vxrn": "1.1.280",
98
98
  "dotenv": "^16.4.5",
99
99
  "escape-string-regexp": "^5.0.0",
100
100
  "expo-linking": "~6.3.1",
@@ -116,7 +116,7 @@
116
116
  "url-parse": "^1.5.10",
117
117
  "vite": "6.0.0-beta.1",
118
118
  "vite-tsconfig-paths": "^5.0.1",
119
- "vxrn": "1.1.278",
119
+ "vxrn": "1.1.280",
120
120
  "ws": "^8.18.0",
121
121
  "xxhashjs": "^0.2.2"
122
122
  },
package/src/useLoader.ts CHANGED
@@ -9,6 +9,7 @@ import { preloadingLoader } from './router/router'
9
9
  import type { LoaderProps } from './types'
10
10
  import { dynamicImport } from './utils/dynamicImport'
11
11
  import { weakKey } from './utils/weakKey'
12
+ import { getLoaderPath } from './cleanUrl'
12
13
 
13
14
  const promises: Record<string, undefined | Promise<void>> = {}
14
15
  const errors = {}
@@ -86,7 +87,7 @@ export function useLoader<
86
87
 
87
88
  if (!promises[currentPath]) {
88
89
  const getData = async () => {
89
- const loaderJSUrl = `${getURL()}/assets${currentPath}_vxrn_loader.js?${CACHE_KEY}`
90
+ const loaderJSUrl = getLoaderPath(currentPath)
90
91
 
91
92
  try {
92
93
  const response = await (async () => {
@@ -1,3 +1,4 @@
1
+ import { getLoaderPath } from './cleanUrl'
1
2
  import { CACHE_KEY, CLIENT_BASE_URL } from './router/constants'
2
3
  import type { GlobbedRouteImports } from './types'
3
4
  import { dynamicImport } from './utils/dynamicImport'
@@ -70,9 +71,7 @@ export function globbedRoutesToRouteContext(
70
71
  ? loadRouteFunction
71
72
  : () => {
72
73
  const realPath = (globalThis['__vxrntodopath'] ?? window.location.pathname).trim()
73
- const importUrl = `${CLIENT_BASE_URL}/assets${removeSearch(
74
- realPath
75
- )}_vxrn_loader.js?cache_key=${CACHE_KEY}`
74
+ const importUrl = getLoaderPath(realPath)
76
75
  return dynamicImport(importUrl)
77
76
  }
78
77
  } else {
package/src/vite/build.ts CHANGED
@@ -435,7 +435,7 @@ export async function build(args: {
435
435
  code,
436
436
  loaderData,
437
437
  })
438
- const loaderPartialPath = join(staticDir, 'assets', getLoaderPath(path))
438
+ const loaderPartialPath = join(clientDir, 'assets', getLoaderPath(path))
439
439
  await outputFile(loaderPartialPath, withLoader)
440
440
  }
441
441
 
@@ -1 +1 @@
1
- {"version":3,"file":"useLoader.d.ts","sourceRoot":"","sources":["../src/useLoader.ts"],"names":[],"mappings":"AAgBA,wBAAgB,SAAS,CACvB,MAAM,SAAS,QAAQ,EACvB,QAAQ,GAAG,MAAM,SAAS,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,OAAO,EACxE,MAAM,EAAE,MAAM,GAAG,QAAQ,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAuH9E"}
1
+ {"version":3,"file":"useLoader.d.ts","sourceRoot":"","sources":["../src/useLoader.ts"],"names":[],"mappings":"AAiBA,wBAAgB,SAAS,CACvB,MAAM,SAAS,QAAQ,EACvB,QAAQ,GAAG,MAAM,SAAS,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,OAAO,EACxE,MAAM,EAAE,MAAM,GAAG,QAAQ,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAuH9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"useViteRoutes.d.ts","sourceRoot":"","sources":["../src/useViteRoutes.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQvC,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,EAC1B,OAAO,CAAC,EAAE,MAAM,OAajB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,OAKhF;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,GACzB,GAAG,CAAC,YAAY,CA0GlB"}
1
+ {"version":3,"file":"useViteRoutes.d.ts","sourceRoot":"","sources":["../src/useViteRoutes.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQvC,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,EAC1B,OAAO,CAAC,EAAE,MAAM,OAajB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,OAKhF;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,GACzB,GAAG,CAAC,YAAY,CAwGlB"}