one 1.1.312 → 1.1.313

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,22 @@
1
1
  import "./polyfills-server.mjs";
2
2
  import FSExtra from "fs-extra";
3
- import Path, { join } from "node:path";
3
+ import { join } from "node:path";
4
4
  import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
5
- import { labelProcess } from "./cli/label-process.mjs";
6
- import { createHandleRequest } from "./createHandleRequest.mjs";
7
- import { isResponse } from "./utils/isResponse.mjs";
8
- import { isStatusRedirect } from "./utils/isStatus.mjs";
9
- import { removeUndefined } from "./utils/removeUndefined.mjs";
10
- import { loadUserOneOptions } from "./vite/one.mjs";
11
- import { resolveAPIRequest } from "./vite/resolveAPIRequest.mjs";
12
5
  process.on("uncaughtException", err => {
13
6
  console.error("[one] Uncaught exception", err?.stack || err);
14
7
  });
15
8
  async function serve(args = {}) {
9
+ const buildInfo = await FSExtra.readJSON("dist/buildInfo.json");
10
+ process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
11
+ const {
12
+ labelProcess
13
+ } = await import("./cli/label-process.mjs"),
14
+ {
15
+ removeUndefined
16
+ } = await import("./utils/removeUndefined.mjs"),
17
+ {
18
+ loadUserOneOptions
19
+ } = await import("./vite/one.mjs");
16
20
  labelProcess("serve"), loadEnv("production");
17
21
  const oneOptions = await loadUserOneOptions("serve");
18
22
  return process.env.VXRN_REACT_19 = "1", await vxrnServe({
@@ -28,15 +32,26 @@ async function serve(args = {}) {
28
32
  cacheHeaders: args.cacheHeaders
29
33
  }),
30
34
  async beforeStart(options, app) {
31
- await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, app);
35
+ await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, buildInfo, app);
32
36
  }
33
37
  }
34
38
  });
35
39
  }
36
- async function oneServe(options, vxrnOptions, app) {
37
- const root = options.root || vxrnOptions.root || ".",
40
+ async function oneServe(options, vxrnOptions, buildInfo, app) {
41
+ const {
42
+ createHandleRequest
43
+ } = await import("./createHandleRequest.mjs"),
44
+ {
45
+ isResponse
46
+ } = await import("./utils/isResponse.mjs"),
47
+ {
48
+ isStatusRedirect
49
+ } = await import("./utils/isStatus.mjs"),
50
+ {
51
+ resolveAPIRequest
52
+ } = await import("./vite/resolveAPIRequest.mjs"),
38
53
  isAPIRequest = /* @__PURE__ */new WeakMap(),
39
- toAbsolute = p => Path.resolve(root, p),
54
+ root = vxrnOptions.root || ".",
40
55
  redirects = options.web?.redirects;
41
56
  if (redirects) for (const redirect of redirects) app.get(redirect.source, context => {
42
57
  const destinationUrl = redirect.destination.replace(/:\w+/g, param => {
@@ -45,7 +60,6 @@ async function oneServe(options, vxrnOptions, app) {
45
60
  });
46
61
  return context.redirect(destinationUrl, redirect.permanent ? 301 : 302);
47
62
  });
48
- const buildInfo = await FSExtra.readJSON(toAbsolute("dist/buildInfo.json"));
49
63
  if (!buildInfo) throw new Error("No build info found, have you run build?");
50
64
  const {
51
65
  routeMap,
@@ -93,7 +107,7 @@ async function oneServe(options, vxrnOptions, app) {
93
107
  }) {
94
108
  if (route.type === "ssr") {
95
109
  const buildInfo2 = routeToBuildInfo[route.page];
96
- if (!buildInfo2) throw new Error(`No buildinfo found for ${url}, route: ${route.page}`);
110
+ if (!buildInfo2) throw new Error(`No buildinfo found for ${url}, route: ${route.page}, in keys: ${Object.keys(routeToBuildInfo)}`);
97
111
  try {
98
112
  const loaderData = await (await import(buildInfo2.serverJsPath)).loader?.(loaderProps),
99
113
  preloads = buildInfo2.preloads,
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","Path","join","getServerEntry","loadEnv","serve","vxrnServe","labelProcess","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","loadUserOneOptions","resolveAPIRequest","process","on","err","console","error","stack","args","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,OAAOC,IAAA,IAAQC,IAAA,QAAY;AAE3B,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAC5D,SAASC,YAAA,QAAoB;AAC7B,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,eAAA,QAAuB;AAChC,SAASC,kBAAA,QAA0B;AACnC,SAASC,iBAAA,QAAyB;AAGlCC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBX,MAAMe,IAAA,GAA8B,CAAC,GAAG;EAC5Db,YAAA,CAAa,OAAO,GACpBH,OAAA,CAAQ,YAAY;EAEpB,MAAMiB,UAAA,GAAa,MAAMT,kBAAA,CAAmB,OAAO;EAGnD,OAAAE,OAAA,CAAQQ,GAAA,CAAIC,aAAA,GAAgB,KAErB,MAAMjB,SAAA,CAAU;IACrBkB,MAAA,EAAQ;MAAA;MAEN,GAAGH,UAAA,CAAWG,MAAA;MAAA;MAEd,GAAGb,eAAA,CAAgB;QACjBc,IAAA,EAAML,IAAA,CAAKK,IAAA,GAAO,CAACL,IAAA,CAAKK,IAAA,GAAO;QAC/BC,IAAA,EAAMN,IAAA,CAAKM,IAAA;QACXC,QAAA,EAAUP,IAAA,CAAK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AI4C,GAAA;QACtBC,QAAA,GAAW,MAAM5B,aAAA,CAAc6B,OAAA,CAAQ3B,OAAO;MAEpD,IAAI0B,QAAA,EAAU;QACZ,IAAIzF,UAAA,CAAWyF,QAAQ,GAAG;UACxB,IAAIxF,gBAAA,CAAiBwF,QAAA,CAASE,MAAM,GAAG;YACrC,MAAMC,QAAA,GAAW,GAAGH,QAAA,CAASX,OAAA,CAAQ3C,GAAA,CAAI,UAAU,KAAK,EAAE;YAC1D,OAAOE,OAAA,CAAQH,QAAA,CAAS0D,QAAA,EAAUH,QAAA,CAASE,MAAM;UACnD;UAEA,IAAIhE,YAAA,CAAaQ,GAAA,CAAI4B,OAAO,GAC1B,IAAI;YAEF0B,QAAA,CAASX,OAAA,CAAQV,GAAA,CAAI,iBAAiB,UAAU;UAClD,SAAS7D,GAAA,EAAK;YACZC,OAAA,CAAQqF,IAAA,CACN,6CACExD,OAAA,CAAQO,GAAA,CAAIqC,IACd,wBAAwBQ,QAAA,CAASX,OAAA,CAAQ3C,GAAA,CAAI,eAAe,CAAC,cAC7D5B,GACF;UACF;UAGF,OAAOkF,QAAA;QACT;QAEA,OAAOpD,OAAA,CAAQyD,IAAA,CACbL,QAAA,EACA,KACA9D,YAAA,CAAaQ,GAAA,CAAI4B,OAAO,IACpB;UACE,iBAAiB;QACnB,IACA,MACN;MACF;IACF,SAASxD,GAAA,EAAK;MACZC,OAAA,CAAQC,KAAA,CAAM,kCAAmCF,GAAA,CAAYG,KAAQ,EAAE;IACzE;IAEA,MAAM4E,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["FSExtra","join","getServerEntry","loadEnv","serve","vxrnServe","process","on","err","console","error","stack","args","buildInfo","readJSON","env","ONE_CACHE_KEY","constants","CACHE_KEY","labelProcess","removeUndefined","loadUserOneOptions","oneOptions","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","createHandleRequest","isResponse","isStatusRedirect","resolveAPIRequest","isAPIRequest","WeakMap","root","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","Object","keys","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,SAASC,IAAA,QAAY;AAErB,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAK5DC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBJ,MAAMQ,IAAA,GAA8B,CAAC,GAAG;EAC5D,MAAMC,SAAA,GAAa,MAAMb,OAAA,CAAQc,QAAA,CAAS,qBAAqB;EAG/DR,OAAA,CAAQS,GAAA,CAAIC,aAAA,GAAgBH,SAAA,CAAUI,SAAA,CAAUC,SAAA;EAGhD,MAAM;MAAEC;IAAa,IAAI,MAAM,OAAO,yBAAqB;IACrD;MAAEC;IAAgB,IAAI,MAAM,OAAO,6BAAyB;IAC5D;MAAEC;IAAmB,IAAI,MAAM,OAAO,gBAAY;EAExDF,YAAA,CAAa,OAAO,GACpBhB,OAAA,CAAQ,YAAY;EAEpB,MAAMmB,UAAA,GAAa,MAAMD,kBAAA,CAAmB,OAAO;EAGnD,OAAAf,OAAA,CAAQS,GAAA,CAAIQ,aAAA,GAAgB,KAErB,MAAMlB,SAAA,CAAU;IACrBmB,MAAA,EAAQ;MAAA;MAEN,GAAGF,UAAA,CAAWE,MAAA;MAAA;MAEd,GAAGJ,eAAA,C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fills-server";
2
2
  import FSExtra from "fs-extra";
3
- import Path, { join } from "node:path";
3
+ import { join } from "node:path";
4
4
  import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
5
- import { labelProcess } from "./cli/label-process";
6
- import { createHandleRequest } from "./createHandleRequest";
7
- import { isResponse } from "./utils/isResponse";
8
- import { isStatusRedirect } from "./utils/isStatus";
9
- import { removeUndefined } from "./utils/removeUndefined";
10
- import { loadUserOneOptions } from "./vite/one";
11
- import { resolveAPIRequest } from "./vite/resolveAPIRequest";
12
5
  process.on("uncaughtException", function(err) {
13
6
  console.error("[one] Uncaught exception", err?.stack || err);
14
7
  });
15
8
  async function serve() {
16
- var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9
+ var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, buildInfo = await FSExtra.readJSON("dist/buildInfo.json");
10
+ process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
11
+ var { labelProcess } = await import("./cli/label-process"), { removeUndefined } = await import("./utils/removeUndefined"), { loadUserOneOptions } = await import("./vite/one");
17
12
  labelProcess("serve"), loadEnv("production");
18
13
  var oneOptions = await loadUserOneOptions("serve");
19
14
  return process.env.VXRN_REACT_19 = "1", await vxrnServe({
@@ -30,15 +25,13 @@ async function serve() {
30
25
  }),
31
26
  async beforeStart(options, app) {
32
27
  var _oneOptions_server_beforeStart, _oneOptions_server;
33
- await ((_oneOptions_server = oneOptions.server) === null || _oneOptions_server === void 0 || (_oneOptions_server_beforeStart = _oneOptions_server.beforeStart) === null || _oneOptions_server_beforeStart === void 0 ? void 0 : _oneOptions_server_beforeStart.call(_oneOptions_server, options, app)), await oneServe(oneOptions, options, app);
28
+ await ((_oneOptions_server = oneOptions.server) === null || _oneOptions_server === void 0 || (_oneOptions_server_beforeStart = _oneOptions_server.beforeStart) === null || _oneOptions_server_beforeStart === void 0 ? void 0 : _oneOptions_server_beforeStart.call(_oneOptions_server, options, app)), await oneServe(oneOptions, options, buildInfo, app);
34
29
  }
35
30
  }
36
31
  });
37
32
  }
38
- async function oneServe(options, vxrnOptions, app) {
39
- var _options_web, _options_build_api, _options_build, root = options.root || vxrnOptions.root || ".", isAPIRequest = /* @__PURE__ */ new WeakMap(), toAbsolute = function(p) {
40
- return Path.resolve(root, p);
41
- }, redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
33
+ async function oneServe(options, vxrnOptions, buildInfo, app) {
34
+ var _options_web, _options_build_api, _options_build, { createHandleRequest } = await import("./createHandleRequest"), { isResponse } = await import("./utils/isResponse"), { isStatusRedirect } = await import("./utils/isStatus"), { resolveAPIRequest } = await import("./vite/resolveAPIRequest"), isAPIRequest = /* @__PURE__ */ new WeakMap(), root = vxrnOptions.root || ".", redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
42
35
  if (redirects) {
43
36
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
44
37
  try {
@@ -63,7 +56,6 @@ async function oneServe(options, vxrnOptions, app) {
63
56
  }
64
57
  }
65
58
  }
66
- var buildInfo = await FSExtra.readJSON(toAbsolute("dist/buildInfo.json"));
67
59
  if (!buildInfo)
68
60
  throw new Error("No build info found, have you run build?");
69
61
  var { routeMap, builtRoutes } = buildInfo, routeToBuildInfo = {}, _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
@@ -111,11 +103,11 @@ async function oneServe(options, vxrnOptions, app) {
111
103
  async handleSSR(param) {
112
104
  var { route: route2, url, loaderProps } = param;
113
105
  if (route2.type === "ssr") {
114
- var buildInfo2 = routeToBuildInfo[route2.page];
115
- if (!buildInfo2)
116
- throw new Error(`No buildinfo found for ${url}, route: ${route2.page}`);
106
+ var _$buildInfo = routeToBuildInfo[route2.page];
107
+ if (!_$buildInfo)
108
+ throw new Error(`No buildinfo found for ${url}, route: ${route2.page}, in keys: ${Object.keys(routeToBuildInfo)}`);
117
109
  try {
118
- var _exported_loader, exported = await import(buildInfo2.serverJsPath), loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps)), preloads = buildInfo2.preloads, headers = new Headers();
110
+ var _exported_loader, exported = await import(_$buildInfo.serverJsPath), loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps)), preloads = _$buildInfo.preloads, headers = new Headers();
119
111
  return headers.set("content-type", "text/html"), new Response(await render({
120
112
  loaderData,
121
113
  loaderProps,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/serve.ts"],
4
- "mappings": "AAAA,OAAO;AAEP,OAAOA,aAAa;AAEpB,OAAOC,QAAQC,YAAY;AAE3B,SAASC,gBAAgBC,SAASC,SAASC,iBAAiB;AAC5D,SAASC,oBAAoB;AAC7B,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,uBAAuB;AAChC,SAASC,0BAA0B;AACnC,SAASC,yBAAyB;AAGlCC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,4BAA4BF,KAAKG,SAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBX,QAAAA;MAAMe,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC;AACzDb,eAAa,OAAA,GACbH,QAAQ,YAAA;AAER,MAAMiB,aAAa,MAAMT,mBAAmB,OAAA;AAG5CE,iBAAQQ,IAAIC,gBAAgB,KAErB,MAAMjB,UAAU;IACrBkB,QAAQ;;MAEN,GAAGH,WAAWG;;MAEd,GAAGb,gBAAgB;QACjBc,MAAML,KAAKK,OAAO,CAACL,KAAKK,OAAOC;QAC/BC,MAAMP,KAAKO;QACXC,UAAUR,KAAKQ;QACfC,UAAUT,KAAKS;QACfC,cAAcV,KAAKU;M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AAM7B,cAAc8B,QAAQ5B,OAAAA;AAE7C,UAAI2B,UAAU;AACZ,YAAI7F,WAAW6F,QAAAA,GAAW;AACxB,cAAI5F,iBAAiB4F,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQ7C,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAAS6D,UAAUH,SAASE,MAAM;UACnD;AAEA,cAAInE,aAAaQ,IAAI8B,OAAAA;AACnB,gBAAI;AAEF2B,uBAASZ,QAAQV,IAAI,iBAAiB,UAAA;YACxC,SAAShE,KAAK;AACZC,sBAAQ+E,KACN,6CACEjD,QAAQO,IAAIuC,IAAI,wBACMS,SAASZ,QAAQ7C,IAAI,eAAA,CAAA,cAC7C7B,GAAAA;YAEJ;AAGF,iBAAOsF;QACT;AAEA,eAAOvD,QAAQ2D,KACbJ,UACA,KACAjE,aAAaQ,IAAI8B,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAjD,MAAAA;MAER;IACF,SAASV,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMmF,KAAAA;EACR,CAAA;AACF;",
5
- "names": ["FSExtra", "Path", "join", "getServerEntry", "loadEnv", "serve", "vxrnServe", "labelProcess", "createHandleRequest", "isResponse", "isStatusRedirect", "removeUndefined", "loadUserOneOptions", "resolveAPIRequest", "process", "on", "err", "console", "error", "stack", "args", "oneOptions", "env", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "root", "isAPIRequest", "WeakMap", "toAbsolute", "p", "resolve", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "buildInfo", "readJSON", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
4
+ "mappings": "AAAA,OAAO;AAEP,OAAOA,aAAa;AAEpB,SAASC,YAAY;AAErB,SAASC,gBAAgBC,SAASC,SAASC,iBAAiB;AAK5DC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,4BAA4BF,KAAKG,SAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBJ,QAAAA;MAAMQ,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC,GACnDC,YAAa,MAAMb,QAAQc,SAAS,qBAAqB;AAG/DR,UAAQS,IAAIC,gBAAgBH,UAAUI,UAAUC;AAGhD,MAAM,EAAEC,aAAY,IAAK,MAAM,OAAO,qBAAA,GAChC,EAAEC,gBAAe,IAAK,MAAM,OAAO,yBAAA,GACnC,EAAEC,mBAAkB,IAAK,MAAM,OAAO,YAAA;AAE5CF,eAAa,OAAA,GACbhB,QAAQ,YAAA;AAER,MAAMmB,aAAa,MAAMD,mBAAmB,OAAA;AAG5Cf,iBAAQS,IAAIQ,gBAAgB,KAErB,MAAMlB,UAAU;IACrBmB,QAAQ;;MAEN,GAAGF,WAAWE;;MAEd,GAAGJ,gBAAgB;QACjBK,MAAMb,KAAKa,OAAO,CAACb,KAAKa,OAAOC;QAC/BC,MAAMf,KAAKe;QACXC,UAAUhB,KAAKgB;QACfC,UAAUjB,KAAKiB;QACfC,cAAclB,KAAKkB;MACrB,CAAA;MAEA,MAAMC,YAAYC,SAASC,KAAG;YACtBX,gCAAAA;AAAN,gBAAMA,qBAAAA,WAAWE,YAAM,QAAjBF,uBAAAA,WAAAA,iCAAAA,mBAAmBS,iBAAW,QAA9BT,mCAAAA,SAAAA,S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AAAA,GAAW;AACxB,cAAIjE,iBAAiBiE,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQ7C,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAAS6D,UAAUH,SAASE,MAAM;UACnD;AAEA,cAAIjE,aAAaM,IAAI4B,OAAAA;AACnB,gBAAI;AAEF6B,uBAASZ,QAAQZ,IAAI,iBAAiB,UAAA;YACxC,SAASvE,KAAK;AACZC,sBAAQwF,KACN,6CACEjD,QAAQO,IAAIuC,IAAI,wBACMS,SAASZ,QAAQ7C,IAAI,eAAA,CAAA,cAC7CtC,GAAAA;YAEJ;AAGF,iBAAO+F;QACT;AAEA,eAAOvD,QAAQ2D,KACbJ,UACA,KACA/D,aAAaM,IAAI4B,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAhD,MAAAA;MAER;IACF,SAASlB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAM4F,KAAAA;EACR,CAAA;AACF;",
5
+ "names": ["FSExtra", "join", "getServerEntry", "loadEnv", "serve", "vxrnServe", "process", "on", "err", "console", "error", "stack", "args", "buildInfo", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "oneOptions", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
6
6
  }
@@ -1,3 +1,4 @@
1
+ import * as constants from "../constants";
1
2
  import FSExtra from "fs-extra";
2
3
  import MicroMatch from "micromatch";
3
4
  import { createRequire } from "node:module";
@@ -291,7 +292,8 @@ ${JSON.stringify(params || null, null, 2)}`
291
292
  await moveAllFiles(staticDir, clientDir), await FSExtra.rm(staticDir, { force: !0, recursive: !0 });
292
293
  const buildInfoForWriting = {
293
294
  routeMap: builtRoutes.reduce((acc, { cleanPath, htmlPath }) => (acc[cleanPath] = htmlPath, acc), {}),
294
- builtRoutes
295
+ builtRoutes,
296
+ constants: JSON.parse(JSON.stringify({ ...constants }))
295
297
  }, buildInfo = {
296
298
  ...buildInfoForWriting,
297
299
  ...vxrnOutput
@@ -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;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,OAEJ;AACP,SAAS,eAAe,sBAAsB;AAC9C,SAAS,oBAAoB;AAG7B,SAAS,mBAAmB;AAC5B,SAAS,0BAA0B;AACnC,SAAS,qBAAqB;AAG9B,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,eAAa,OAAO;AAEpB,QAAM,cAAc,MAAM,mBAAmB,OAAO,GAC9C,qBAAqB,YAAY,OAAO,QAAQ,gBAAgB;AAGtE,UA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WAAO,IAAI,SACR,MAAM,GAAG,EACT,IAAI,CAAC,SAAS;AACb,UAAI,KAAK,CAAC,MAAM,KAAK;AACnB,cAAM,QAAQ,OAAO,KAAK,MAAM,GAAG,KAAK,SAAS,CAAC,CAAC;AACnD,YAAI,CAAC,OAAO;AACV,cAAI;AACF,kBAAM,IAAI;AAAA,cACR;AAAA;AAAA,0BAEU,IAAI;AAAA,0BACJ,IAAI;AAAA,8BACA,QAAQ;AAAA;AAAA;AAAA,IAGlC,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC;AAAA,YACrB;AAGF,iBAAO,MAAM,KAAK,QAAQ,KAAK,EAAE,EAAE,QAAQ,KAAK,EAAE;AAAA,QACpD;AACA,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT,CAAC,EACA,KAAK,GAAG,CAAC;AAAA,EACd,GAAG;AAEH,SAAO,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,WAAW,GAAG;AAC7D;AAEA,SAAS,YAAY,QAAgB;AACnC,SAAO,OAAO,QAAQ,uBAAuB,MAAM;AACrD;AAEA,SAAS,wBAAwB,MAAgB;AAM/C,QAAM,eAAe,oBAJC,KAAK,IAAI,CAAC,QAAQ,YAAY,GAAG,CAAC,EAEjB,KAAK,GAAG,CAEU;AACzD,SAAO,IAAI,OAAO,YAAY;AAChC;",
5
5
  "names": ["file"]
6
6
  }
@@ -1,3 +1,4 @@
1
+ import * as constants from "../constants.mjs";
1
2
  import FSExtra from "fs-extra";
2
3
  import MicroMatch from "micromatch";
3
4
  import { createRequire } from "node:module";
@@ -316,7 +317,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
316
317
  cleanPath,
317
318
  htmlPath
318
319
  }) => (acc[cleanPath] = htmlPath, acc), {}),
319
- builtRoutes
320
+ builtRoutes,
321
+ constants: JSON.parse(JSON.stringify({
322
+ ...constants
323
+ }))
320
324
  },
321
325
  buildInfo = {
322
326
  ...buildInfoForWriting,
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","rollupRemoveUnusedImportsPlugin","vxrnBuild","getLoaderPath","getPreloadPath","labelProcess","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","treeshake","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","moduleSideEffects","filter","Boolean","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","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,SACEC,WAAA,EACAC,eAAA,EACAC,+BAAA,EACAJ,KAAA,IAASK,SAAA,QAEJ;AACP,SAASC,aAAA,EAAeC,cAAA,QAAsB;AAC9C,SAASC,YAAA,QAAoB;AAG7B,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAG9B,MAAM;EAAEC,SAAA;EAAWC,QAAA;EAAUC;AAAW,IAAItB,OAAA;AAE5CuB,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBjB,MAAMqB,IAAA,EAGzB;EACDb,YAAA,CAAa,OAAO;EAEpB,MAAMc,WAAA,GAAc,MAAMZ,kBAAA,CAAmB,OAAO;IAC9Ca,kBAAA,GAAqBD,WAAA,CAAYtB,KAAA,EAAOwB,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,MAAMzB,SAAA,CACvB;MACEmB,MAAA,EAAQF,WAAA,CAAYE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pD;UACA,OAAOmC,KAAA;QACT;QACA,OAAO6F,IAAA;MACT,CAAC,EACA7N,IAAA,CAAK,GAAG,CAAC;IACd,GAAG;EAEH,OAAO,GAAGgG,OAAO,GAAG4H,cAAc,GAAG/H,OAAA,CAAQ,WAAW,GAAG;AAC7D;AAEA,SAASkI,YAAYC,MAAA,EAAgB;EACnC,OAAOA,MAAA,CAAOnI,OAAA,CAAQ,uBAAuB,MAAM;AACrD;AAEA,SAASjC,wBAAwBqK,IAAA,EAAgB;EAM/C,MAAMC,YAAA,GAAe,oBAJCD,IAAA,CAAK3K,GAAA,CAAK6K,GAAA,IAAQJ,WAAA,CAAYI,GAAG,CAAC,EAEjBnO,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAIoO,MAAA,CAAOF,YAAY;AAChC","ignoreList":[]}
1
+ {"version":3,"names":["constants","FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","rollupRemoveUnusedImportsPlugin","vxrnBuild","getLoaderPath","getPreloadPath","labelProcess","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","treeshake","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","moduleSideEffects","filter","Boolean","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","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","parse","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,YAAYA,SAAA,MAAe;AAC3B,OAAOC,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,SACEC,WAAA,EACAC,eAAA,EACAC,+BAAA,EACAJ,KAAA,IAASK,SAAA,QAEJ;AACP,SAASC,aAAA,EAAeC,cAAA,QAAsB;AAC9C,SAASC,YAAA,QAAoB;AAG7B,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAG9B,MAAM;EAAEC,SAAA;EAAWC,QAAA;EAAUC;AAAW,IA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2
3
  import MicroMatch from "micromatch";
3
4
  import { createRequire } from "node:module";
@@ -360,7 +361,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
360
361
  return acc[cleanPath] = htmlPath, acc;
361
362
  }, {}), buildInfoForWriting = {
362
363
  routeMap,
363
- builtRoutes
364
+ builtRoutes,
365
+ constants: JSON.parse(JSON.stringify({
366
+ ...constants
367
+ }))
364
368
  }, buildInfo = {
365
369
  ...buildInfoForWriting,
366
370
  ...vxrnOutput
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/build.ts"],
4
- "mappings": "AAAA,OAAOA,aAAa;AACpB,OAAOC,gBAAgB;AACvB,SAASC,qBAAqB;AAC9B,OAAOC,QAAQC,MAAMC,gBAAgB;AAErC,SAASC,qBAAqB;AAC9B,SAASC,aAAaC,SAASC,iBAAoC;AACnE,SACEC,aACAC,iBACAC,iCACAJ,SAASK,iBAEJ;AACP,SAASC,eAAeC,sBAAsB;AAC9C,SAASC,oBAAoB;AAG7B,SAASC,mBAAmB;AAC5B,SAASC,0BAA0B;AACnC,SAASC,qBAAqB;AAG9B,IAAM,EAAEC,WAAWC,UAAUC,WAAU,IAAKtB;AAE5CuB,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAMF,KAAKG,WAAWH,GAAAA;AAChC,CAAA;AAEA,eAAsBjB,MAAMqB,MAG3B;MAI4BC,2BAAAA,oBAseVA,kBAA2BC;AAze5Cf,eAAa,OAAA;AAEb,MAAMc,cAAc,MAAMZ,mBAAmB,OAAA,GAClBY,wCAArBE,sBAAqBF,0CAAAA,qBAAAA,YAAYtB,WAAK,QAAjBsB,uBAAAA,WAAAA,4BAAAA,mBAAmBG,YAAM,QAAzBH,8BAAAA,SAAAA,SAAAA,0BAA2BI,kBAAY,QAAvCJ,2CAAAA,SAAAA,yCAA2C;AAGtEP,UAAQY,IAAIC,gBAAgB,KA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EAAA;AACvD,aAAKkF,OAAO4C,IAAAA,KACVrM,QAAQY,KAAK,oBAAoBoI,QAAAA,oBAA4BL,IAAAA,EAAM,GAE9D,IAAIc,OAAO4C,IAAAA,CAAK;IACzB;AACA,WAAO,IAAIrD,SACRsD,MAAM,GAAA,EACNtK,IAAI,SAACqK,OAAAA;AACJ,UAAIA,MAAK,CAAA,MAAO,KAAK;AACnB,YAAMzE,QAAQ6B,OAAO4C,MAAKzJ,MAAM,GAAGyJ,MAAK3K,SAAS,CAAA,CAAA;AACjD,YAAI,CAACkG,OAAO;AACV,cAAIuE;AACF,kBAAM,IAAIlD,MACR;;0BAEUN,IAAAA;0BACA0D,KAAAA;8BACIrD,QAAAA;;;IAG1B7G,KAAKC,UAAUqH,QAAQ,MAAM,CAAA,CAAA,EAAI;AAIzB,iBAAO,MAAM4C,MAAK9H,QAAQ,KAAK,EAAA,EAAIA,QAAQ,KAAK,EAAA;QAClD;AACA,eAAOqD;MACT;AACA,aAAOyE;IACT,CAAA,EACC3N,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGgG,OAAAA,GAAU0H,cAAAA,GAAiB7H,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASgI,YAAYC,QAAc;AACjC,SAAOA,OAAOjI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASjC,wBAAwBmK,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKzK,IAAI,SAAC2K,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAchO,KAAK,GAAA,GAEtCmO,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
5
- "names": ["FSExtra", "MicroMatch", "createRequire", "Path", "join", "relative", "nodeExternals", "mergeConfig", "build", "viteBuild", "fillOptions", "getOptimizeDeps", "rollupRemoveUnusedImportsPlugin", "vxrnBuild", "getLoaderPath", "getPreloadPath", "labelProcess", "getManifest", "loadUserOneOptions", "replaceLoader", "ensureDir", "readFile", "outputFile", "process", "on", "err", "console", "error", "message", "args", "userOptions", "options", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "analyze", "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", "treeshake", "plugins", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "cwd", "onlyBuild", "buildArgs", "only", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "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", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "loaderPartialPath", "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"]
4
+ "mappings": "AAAA,YAAYA,eAAe;AAC3B,OAAOC,aAAa;AACpB,OAAOC,gBAAgB;AACvB,SAASC,qBAAqB;AAC9B,OAAOC,QAAQC,MAAMC,gBAAgB;AAErC,SAASC,qBAAqB;AAC9B,SAASC,aAAaC,SAASC,iBAAoC;AACnE,SACEC,aACAC,iBACAC,iCACAJ,SAASK,iBAEJ;AACP,SAASC,eAAeC,sBAAsB;AAC9C,SAASC,oBAAoB;AAG7B,SAASC,mBAAmB;AAC5B,SAASC,0BAA0B;AACnC,SAASC,qBAAqB;AAG9B,IAAM,EAAEC,WAAWC,UAAUC,WAAU,IAAKtB;AAE5CuB,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAMF,KAAKG,WAAWH,GAAAA;AAChC,CAAA;AAEA,eAAsBjB,MAAMqB,MAG3B;MAI4BC,2BAAAA,oBAueVA,kBAA2BC;AA1e5Cf,eAAa,OAAA;AAEb,MAAMc,cAAc,MAAMZ,mBAAmB,OAAA,GAClBY,wCAArBE,sBAAqBF,0CAAAA,qBAAAA,YAAYtB,WAAK,QAAjBsB,uBAAAA,WAAAA,4BAAAA,mBAAmBG,YAAM,QAAzBH,8BAAAA,SAAAA,SAAAA,0BAA2BI,kBAAY,QAAvCJ,2CAAAA,SAAAA,yCAA2C;AAGtEP,UAAQY,IAAIC,gBAAgB,KAEvBb,QAAQY,IAAIE,kBACfX,QAAQY,KACN,+FAAqF;AAIzF,MAAMC,aAAa,MAAM1B,UACvB;IACEoB,QAAQH,YAAYG;IACpBzB,OAAO;M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,QAAQY,KAAK,oBAAoBoI,QAAAA,oBAA4BL,IAAAA,EAAM,GAE9D,IAAIc,OAAO6C,IAAAA,CAAK;IACzB;AACA,WAAO,IAAItD,SACRuD,MAAM,GAAA,EACNvK,IAAI,SAACsK,OAAAA;AACJ,UAAIA,MAAK,CAAA,MAAO,KAAK;AACnB,YAAM1E,QAAQ6B,OAAO6C,MAAK1J,MAAM,GAAG0J,MAAK5K,SAAS,CAAA,CAAA;AACjD,YAAI,CAACkG,OAAO;AACV,cAAIwE;AACF,kBAAM,IAAInD,MACR;;0BAEUN,IAAAA;0BACA2D,KAAAA;8BACItD,QAAAA;;;IAG1B7G,KAAKC,UAAUqH,QAAQ,MAAM,CAAA,CAAA,EAAI;AAIzB,iBAAO,MAAM6C,MAAK/H,QAAQ,KAAK,EAAA,EAAIA,QAAQ,KAAK,EAAA;QAClD;AACA,eAAOqD;MACT;AACA,aAAO0E;IACT,CAAA,EACC5N,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGgG,OAAAA,GAAU2H,cAAAA,GAAiB9H,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASiI,YAAYC,QAAc;AACjC,SAAOA,OAAOlI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASjC,wBAAwBoK,MAAc;AAE7C,MAAMC,gBAAgBD,KAAK1K,IAAI,SAAC4K,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAcjO,KAAK,GAAA,GAEtCoO,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
5
+ "names": ["constants", "FSExtra", "MicroMatch", "createRequire", "Path", "join", "relative", "nodeExternals", "mergeConfig", "build", "viteBuild", "fillOptions", "getOptimizeDeps", "rollupRemoveUnusedImportsPlugin", "vxrnBuild", "getLoaderPath", "getPreloadPath", "labelProcess", "getManifest", "loadUserOneOptions", "replaceLoader", "ensureDir", "readFile", "outputFile", "process", "on", "err", "console", "error", "message", "args", "userOptions", "options", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "analyze", "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", "treeshake", "plugins", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "cwd", "onlyBuild", "buildArgs", "only", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "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", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "loaderPartialPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "parse", "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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.312",
3
+ "version": "1.1.313",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "sideEffects": false,
@@ -91,14 +91,14 @@
91
91
  "@react-navigation/native-stack": "~6.9.13",
92
92
  "@react-navigation/routers": "~6.1.9",
93
93
  "@ungap/structured-clone": "^1.2.0",
94
- "@vxrn/resolve": "1.1.312",
95
- "@vxrn/tslib-lite": "1.1.312",
96
- "@vxrn/universal-color-scheme": "1.1.312",
97
- "@vxrn/use-isomorphic-layout-effect": "1.1.312",
94
+ "@vxrn/resolve": "1.1.313",
95
+ "@vxrn/tslib-lite": "1.1.313",
96
+ "@vxrn/universal-color-scheme": "1.1.313",
97
+ "@vxrn/use-isomorphic-layout-effect": "1.1.313",
98
98
  "babel-dead-code-elimination": "^1.0.6",
99
99
  "citty": "^0.1.6",
100
100
  "core-js": "^3.38.1",
101
- "create-vxrn": "1.1.312",
101
+ "create-vxrn": "1.1.313",
102
102
  "escape-string-regexp": "^5.0.0",
103
103
  "expo-linking": "~6.3.1",
104
104
  "expo-modules-core": "^1.12.24",
@@ -120,7 +120,7 @@
120
120
  "url-parse": "^1.5.10",
121
121
  "vite": "6.0.0-beta.1",
122
122
  "vite-tsconfig-paths": "^5.0.1",
123
- "vxrn": "1.1.312",
123
+ "vxrn": "1.1.313",
124
124
  "ws": "^8.18.0",
125
125
  "xxhashjs": "^0.2.2"
126
126
  },