one 1.1.310 → 1.1.312

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/dist/cjs/Root.cjs +2 -1
  2. package/dist/cjs/Root.cjs.map +1 -1
  3. package/dist/cjs/Root.native.js +2 -2
  4. package/dist/cjs/Root.native.js.map +2 -2
  5. package/dist/cjs/cleanUrl.cjs +3 -8
  6. package/dist/cjs/cleanUrl.cjs.map +2 -2
  7. package/dist/cjs/cleanUrl.native.js +5 -8
  8. package/dist/cjs/cleanUrl.native.js.map +2 -2
  9. package/dist/cjs/cli.cjs +0 -2
  10. package/dist/cjs/cli.cjs.map +1 -1
  11. package/dist/cjs/cli.native.js +1 -2
  12. package/dist/cjs/cli.native.js.map +2 -2
  13. package/dist/cjs/config.cjs +1 -1
  14. package/dist/cjs/config.native.js +1 -1
  15. package/dist/cjs/config.native.js.map +1 -1
  16. package/dist/cjs/constants.cjs +9 -1
  17. package/dist/cjs/constants.cjs.map +1 -1
  18. package/dist/cjs/constants.native.js +9 -1
  19. package/dist/cjs/constants.native.js.map +2 -2
  20. package/dist/cjs/createApp.native.cjs +1 -1
  21. package/dist/cjs/createApp.native.js +1 -1
  22. package/dist/cjs/createApp.native.js.map +1 -1
  23. package/dist/cjs/createHandleRequest.cjs +3 -1
  24. package/dist/cjs/createHandleRequest.cjs.map +1 -1
  25. package/dist/cjs/createHandleRequest.native.js +3 -2
  26. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  27. package/dist/cjs/getURL.cjs +1 -1
  28. package/dist/cjs/matchers.cjs +1 -1
  29. package/dist/cjs/matchers.cjs.map +1 -1
  30. package/dist/cjs/matchers.native.js +1 -1
  31. package/dist/cjs/matchers.native.js.map +1 -1
  32. package/dist/cjs/serve.cjs +3 -3
  33. package/dist/cjs/serve.cjs.map +1 -1
  34. package/dist/cjs/serve.native.js +2 -2
  35. package/dist/cjs/serve.native.js.map +2 -2
  36. package/dist/cjs/useLoader.cjs +1 -1
  37. package/dist/cjs/useLoader.native.js +1 -1
  38. package/dist/cjs/vite/build.cjs +2 -2
  39. package/dist/cjs/vite/build.cjs.map +1 -1
  40. package/dist/cjs/vite/build.native.js +1 -1
  41. package/dist/cjs/vite/build.native.js.map +1 -1
  42. package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -1
  43. package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -1
  44. package/dist/cjs/vite/createFileSystemRouter.cjs +1 -1
  45. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  46. package/dist/cjs/vite/one.cjs +43 -14
  47. package/dist/cjs/vite/one.cjs.map +1 -1
  48. package/dist/cjs/vite/one.native.js +39 -12
  49. package/dist/cjs/vite/one.native.js.map +2 -2
  50. package/dist/cjs/vite/virtualEntryPlugin.cjs +5 -5
  51. package/dist/cjs/vite/virtualEntryPlugin.native.js +5 -5
  52. package/dist/cjs/vite/virtualEntryPlugin.native.js.map +1 -1
  53. package/dist/cjs/vite/vitePluginSsrCss.cjs +1 -1
  54. package/dist/cjs/vite/vitePluginSsrCss.native.js +1 -1
  55. package/dist/esm/Root.js +2 -1
  56. package/dist/esm/Root.js.map +1 -1
  57. package/dist/esm/Root.mjs +2 -1
  58. package/dist/esm/Root.mjs.map +1 -1
  59. package/dist/esm/Root.native.js +2 -1
  60. package/dist/esm/Root.native.js.map +2 -2
  61. package/dist/esm/cleanUrl.js +10 -9
  62. package/dist/esm/cleanUrl.js.map +1 -1
  63. package/dist/esm/cleanUrl.mjs +4 -9
  64. package/dist/esm/cleanUrl.mjs.map +1 -1
  65. package/dist/esm/cleanUrl.native.js +5 -9
  66. package/dist/esm/cleanUrl.native.js.map +2 -2
  67. package/dist/esm/cli.js +0 -2
  68. package/dist/esm/cli.js.map +1 -1
  69. package/dist/esm/cli.mjs +0 -2
  70. package/dist/esm/cli.mjs.map +1 -1
  71. package/dist/esm/cli.native.js +0 -2
  72. package/dist/esm/cli.native.js.map +2 -2
  73. package/dist/esm/config.js +1 -1
  74. package/dist/esm/config.mjs +1 -1
  75. package/dist/esm/config.mjs.map +1 -1
  76. package/dist/esm/config.native.js +1 -1
  77. package/dist/esm/config.native.js.map +1 -1
  78. package/dist/esm/constants.js +5 -1
  79. package/dist/esm/constants.js.map +1 -1
  80. package/dist/esm/constants.mjs +6 -2
  81. package/dist/esm/constants.mjs.map +1 -1
  82. package/dist/esm/constants.native.js +5 -1
  83. package/dist/esm/constants.native.js.map +2 -2
  84. package/dist/esm/createApp.native.js +1 -1
  85. package/dist/esm/createApp.native.js.map +1 -1
  86. package/dist/esm/createHandleRequest.js +3 -1
  87. package/dist/esm/createHandleRequest.js.map +1 -1
  88. package/dist/esm/createHandleRequest.mjs +3 -1
  89. package/dist/esm/createHandleRequest.mjs.map +1 -1
  90. package/dist/esm/createHandleRequest.native.js +3 -1
  91. package/dist/esm/createHandleRequest.native.js.map +2 -2
  92. package/dist/esm/getURL.js +1 -1
  93. package/dist/esm/getURL.mjs +1 -1
  94. package/dist/esm/matchers.js +1 -1
  95. package/dist/esm/matchers.js.map +1 -1
  96. package/dist/esm/matchers.mjs +1 -1
  97. package/dist/esm/matchers.mjs.map +1 -1
  98. package/dist/esm/matchers.native.js +1 -1
  99. package/dist/esm/matchers.native.js.map +1 -1
  100. package/dist/esm/serve.js +4 -4
  101. package/dist/esm/serve.js.map +1 -1
  102. package/dist/esm/serve.mjs +4 -4
  103. package/dist/esm/serve.mjs.map +1 -1
  104. package/dist/esm/serve.native.js +4 -4
  105. package/dist/esm/serve.native.js.map +2 -2
  106. package/dist/esm/useLoader.js +1 -1
  107. package/dist/esm/useLoader.mjs +1 -1
  108. package/dist/esm/useLoader.native.js +1 -1
  109. package/dist/esm/vite/build.js +1 -1
  110. package/dist/esm/vite/build.js.map +1 -1
  111. package/dist/esm/vite/build.mjs +1 -1
  112. package/dist/esm/vite/build.mjs.map +1 -1
  113. package/dist/esm/vite/build.native.js +1 -1
  114. package/dist/esm/vite/build.native.js.map +2 -2
  115. package/dist/esm/vite/clientTreeShakePlugin.js +1 -1
  116. package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -1
  117. package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -1
  118. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  119. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  120. package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
  121. package/dist/esm/vite/one.js +43 -14
  122. package/dist/esm/vite/one.js.map +1 -1
  123. package/dist/esm/vite/one.mjs +43 -14
  124. package/dist/esm/vite/one.mjs.map +1 -1
  125. package/dist/esm/vite/one.native.js +41 -14
  126. package/dist/esm/vite/one.native.js.map +2 -2
  127. package/dist/esm/vite/virtualEntryPlugin.js +5 -5
  128. package/dist/esm/vite/virtualEntryPlugin.mjs +5 -5
  129. package/dist/esm/vite/virtualEntryPlugin.mjs.map +1 -1
  130. package/dist/esm/vite/virtualEntryPlugin.native.js +5 -5
  131. package/dist/esm/vite/virtualEntryPlugin.native.js.map +1 -1
  132. package/dist/esm/vite/vitePluginSsrCss.js +1 -1
  133. package/dist/esm/vite/vitePluginSsrCss.mjs +1 -1
  134. package/dist/esm/vite/vitePluginSsrCss.native.js +1 -1
  135. package/package.json +8 -8
  136. package/src/Root.tsx +2 -1
  137. package/src/cleanUrl.ts +10 -14
  138. package/src/cli.ts +0 -3
  139. package/src/config.ts +1 -1
  140. package/src/constants.ts +6 -0
  141. package/src/createApp.native.tsx +2 -2
  142. package/src/createHandleRequest.ts +7 -1
  143. package/src/getURL.ts +1 -1
  144. package/src/matchers.ts +1 -1
  145. package/src/serve.ts +5 -3
  146. package/src/useLoader.ts +1 -1
  147. package/src/vite/build.ts +2 -1
  148. package/src/vite/clientTreeShakePlugin.ts +1 -1
  149. package/src/vite/createFileSystemRouter.tsx +1 -1
  150. package/src/vite/one.ts +44 -11
  151. package/src/vite/virtualEntryPlugin.ts +5 -5
  152. package/src/vite/vitePluginSsrCss.ts +1 -1
  153. package/types/Root.d.ts.map +1 -1
  154. package/types/cleanUrl.d.ts.map +1 -1
  155. package/types/constants.d.ts +4 -0
  156. package/types/constants.d.ts.map +1 -1
  157. package/types/createHandleRequest.d.ts.map +1 -1
  158. package/types/serve.d.ts.map +1 -1
  159. package/types/vite/build.d.ts.map +1 -1
  160. package/types/vite/one.d.ts.map +1 -1
  161. package/dist/cjs/router/constants.cjs +0 -26
  162. package/dist/cjs/router/constants.cjs.map +0 -6
  163. package/dist/cjs/router/constants.native.js +0 -26
  164. package/dist/cjs/router/constants.native.js.map +0 -6
  165. package/dist/cjs/vite/loadEnv.cjs +0 -47
  166. package/dist/cjs/vite/loadEnv.cjs.map +0 -6
  167. package/dist/cjs/vite/loadEnv.native.js +0 -44
  168. package/dist/cjs/vite/loadEnv.native.js.map +0 -6
  169. package/dist/esm/router/constants.js +0 -5
  170. package/dist/esm/router/constants.js.map +0 -6
  171. package/dist/esm/router/constants.mjs +0 -3
  172. package/dist/esm/router/constants.mjs.map +0 -1
  173. package/dist/esm/router/constants.native.js +0 -5
  174. package/dist/esm/router/constants.native.js.map +0 -6
  175. package/dist/esm/vite/loadEnv.js +0 -13
  176. package/dist/esm/vite/loadEnv.js.map +0 -6
  177. package/dist/esm/vite/loadEnv.mjs +0 -13
  178. package/dist/esm/vite/loadEnv.mjs.map +0 -1
  179. package/dist/esm/vite/loadEnv.native.js +0 -16
  180. package/dist/esm/vite/loadEnv.native.js.map +0 -6
  181. package/src/router/constants.ts +0 -4
  182. package/src/vite/loadEnv.ts +0 -11
  183. package/types/router/constants.d.ts +0 -2
  184. package/types/router/constants.d.ts.map +0 -1
  185. package/types/vite/loadEnv.d.ts +0 -2
  186. package/types/vite/loadEnv.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/serve.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAO,+BAEP,kBAAoB,iCAEpB,mBAA2B,kCAE3B,cAAmD,iBACnD,6BAAoC,kCAEpC,oBAA2B,+BAC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AE/B,UAAM,OAAO,UAAU,QAAQ,IAAI,IAAI;AACvC,QAAI;AACF,aAAO,QAAQ,KAAK,IAAI;AAG1B,QAAI;AACF,YAAM,UAAU,QAAQ,IAAI,KACtB,WAAW,MAAM,cAAc,QAAQ,OAAO;AAEpD,UAAI,UAAU;AACZ,gBAAI,8BAAW,QAAQ,GAAG;AACxB,kBAAI,kCAAiB,SAAS,MAAM,GAAG;AACrC,kBAAM,WAAW,GAAG,SAAS,QAAQ,IAAI,UAAU,KAAK,EAAE;AAC1D,mBAAO,QAAQ,SAAS,UAAU,SAAS,MAAM;AAAA,UACnD;AAEA,cAAI,aAAa,IAAI,OAAO;AAC1B,gBAAI;AAEF,uBAAS,QAAQ,IAAI,iBAAiB,UAAU;AAAA,YAClD,SAAS,KAAK;AACZ,sBAAQ;AAAA,gBACN,6CACE,QAAQ,IAAI,IACd,wBAAwB,SAAS,QAAQ,IAAI,eAAe,CAAC;AAAA,gBAC7D;AAAA,cACF;AAAA,YACF;AAGF,iBAAO;AAAA,QACT;AAEA,eAAO,QAAQ;AAAA,UACb;AAAA,UACA;AAAA,UACA,aAAa,IAAI,OAAO,IACpB;AAAA,YACE,iBAAiB;AAAA,UACnB,IACA;AAAA,QACN;AAAA,MACF;AAAA,IACF,SAAS,KAAK;AACZ,cAAQ,MAAM,kCAAmC,IAAY,KAAQ,EAAE;AAAA,IACzE;AAEA,UAAM,KAAK;AAAA,EACb,CAAC;AACH;",
5
5
  "names": ["vxrnServe", "Path", "FSExtra", "buildInfo"]
6
6
  }
@@ -26,13 +26,13 @@ __export(serve_exports, {
26
26
  serve: () => serve
27
27
  });
28
28
  module.exports = __toCommonJS(serve_exports);
29
- var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path = __toESM(require("node:path"), 1), import_vxrn = require("vxrn"), import_createHandleRequest = require("./createHandleRequest"), import_isResponse = require("./utils/isResponse"), import_isStatus = require("./utils/isStatus"), import_removeUndefined = require("./utils/removeUndefined"), import_resolveAPIRequest = require("./vite/resolveAPIRequest"), import_one = require("./vite/one"), import_label_process = require("./cli/label-process");
29
+ var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path = __toESM(require("node:path"), 1), import_vxrn = require("vxrn"), import_label_process = require("./cli/label-process"), import_createHandleRequest = require("./createHandleRequest"), import_isResponse = require("./utils/isResponse"), import_isStatus = require("./utils/isStatus"), import_removeUndefined = require("./utils/removeUndefined"), import_one = require("./vite/one"), import_resolveAPIRequest = require("./vite/resolveAPIRequest");
30
30
  process.on("uncaughtException", function(err) {
31
31
  console.error("[one] Uncaught exception", (err == null ? void 0 : err.stack) || err);
32
32
  });
33
33
  async function serve() {
34
34
  var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
35
- (0, import_label_process.labelProcess)("serve");
35
+ (0, import_label_process.labelProcess)("serve"), (0, import_vxrn.loadEnv)("production");
36
36
  var oneOptions = await (0, import_one.loadUserOneOptions)("serve");
37
37
  return process.env.VXRN_REACT_19 = "1", await (0, import_vxrn.serve)({
38
38
  server: {
@@ -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;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,mBAA2B,kCAE3B,cAAmD,iBACnD,6BAAoC,kCAEpC,oBAA2B,+BAC3B,kBAAiC,6BACjC,yBAAgC,oCAChC,2BAAkC,qCAElC,aAAmC,uBACnC,uBAA6B;AAE7BA,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,6BAA4BF,OAAAA,OAAAA,SAAAA,IAAKG,UAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBI,QAAAA;MAAMC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC;AAC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QAAMyC,OAAOvC,iBAAiBsC,GAAAA;AAE9B,KAAIC,QAAAA,OAAAA,SAAAA,KAAMZ,UAAS,UAKnBU,UAAUC,GAAAA,IAAO,MAAM3C,gBAAAA,QAAQ6C,aAASrB,uBAAK,eAAerB,SAASwC,GAAAA,CAAI,GAAG,OAAA;EAC9E;AAEApE,MAAIuE,IAAI,eAAOxD,SAASyD,MAAAA;AAEtB,QAAMC,OAAON,UAAUpD,QAAQO,IAAI4C,IAAI;AACvC,QAAIO;AACF,aAAO1D,QAAQ0D,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM3B,UAAU/B,QAAQO,IAAIoD,KACtBC,WAAW,MAAMhC,cAAciC,QAAQ9B,OAAAA;AAE7C,UAAI6B,UAAU;AACZ,gBAAIE,8BAAWF,QAAAA,GAAW;AACxB,kBAAIG,kCAAiBH,SAASI,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGL,SAASZ,QAAQlD,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAASoE,UAAUL,SAASI,MAAM;UACnD;AAEA,cAAI3E,aAAaS,IAAIiC,OAAAA;AACnB,gBAAI;AAEF6B,uBAASZ,QAAQX,IAAI,iBAAiB,UAAA;YACxC,SAAS1E,KAAK;AACZC,sBAAQ0F,KACN,6CACEtD,QAAQO,IAAI4C,IAAI,wBACMS,SAASZ,QAAQlD,IAAI,eAAA,CAAA,cAC7CnC,GAAAA;YAEJ;AAGF,iBAAOiG;QACT;AAEA,eAAO5D,QAAQkE,KACbN,UACA,KACAvE,aAAaS,IAAIiC,OAAAA,IACb;UACE,iBAAiB;QACnB,IACArD,MAAAA;MAER;IACF,SAASf,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAM8F,KAAAA;EACR,CAAA;AACF;",
5
- "names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "labelProcess", "oneOptions", "loadUserOneOptions", "env", "VXRN_REACT_19", "vxrnServe", "server", "removeUndefined", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "root", "isAPIRequest", "WeakMap", "toAbsolute", "p", "Path", "resolve", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "buildInfo", "FSExtra", "readJSON", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "createHandleRequest", "handleAPI", "request", "loaderProps", "apiFile", "join", "cwd", "page", "set", "resolveAPIRequest", "params", "handleSSR", "url", "type", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "isResponse", "isStatusRedirect", "status", "location", "json"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,mBAA2B,kCAE3B,cAA4D,iBAC5D,uBAA6B,gCAC7B,6BAAoC,kCAEpC,oBAA2B,+BAC3B,kBAAiC,6BACjC,yBAAgC,oCAChC,aAAmC,uBACnC,2BAAkC;AAGlCA,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,6BAA4BF,OAAAA,OAAAA,SAAAA,IAAKG,UAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBI,QAAAA;MAAMC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC;AACzDC,yCAAa,OAAA,OACbC,qBAAQ,YAAA;AAER,MAAMC,aAAa,UAAMC,+BAAmB,OAAA;AAG5CX,iBAAQY,IAAIC,gBAAgB,KAErB,UAAMC,YAAAA,OAAU;IACrBC,QAAQ;;MAEN,GAAGL,WAAWK;;MAEd,OAAGC,wCAAgB;QACjBC,MAAMV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OAAA;EAC9E;AAEApE,MAAIuE,IAAI,eAAOxD,SAASyD,MAAAA;AAEtB,QAAMC,OAAON,UAAUpD,QAAQO,IAAI4C,IAAI;AACvC,QAAIO;AACF,aAAO1D,QAAQ0D,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM3B,UAAU/B,QAAQO,IAAIoD,KACtBC,WAAW,MAAMhC,cAAciC,QAAQ9B,OAAAA;AAE7C,UAAI6B,UAAU;AACZ,gBAAIE,8BAAWF,QAAAA,GAAW;AACxB,kBAAIG,kCAAiBH,SAASI,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGL,SAASZ,QAAQlD,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAASoE,UAAUL,SAASI,MAAM;UACnD;AAEA,cAAI3E,aAAaS,IAAIiC,OAAAA;AACnB,gBAAI;AAEF6B,uBAASZ,QAAQX,IAAI,iBAAiB,UAAA;YACxC,SAAS3E,KAAK;AACZC,sBAAQ2F,KACN,6CACEtD,QAAQO,IAAI4C,IAAI,wBACMS,SAASZ,QAAQlD,IAAI,eAAA,CAAA,cAC7CpC,GAAAA;YAEJ;AAGF,iBAAOkG;QACT;AAEA,eAAO5D,QAAQkE,KACbN,UACA,KACAvE,aAAaS,IAAIiC,OAAAA,IACb;UACE,iBAAiB;QACnB,IACArD,MAAAA;MAER;IACF,SAAShB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAM+F,KAAAA;EACR,CAAA;AACF;",
5
+ "names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "labelProcess", "loadEnv", "oneOptions", "loadUserOneOptions", "env", "VXRN_REACT_19", "vxrnServe", "server", "removeUndefined", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "root", "isAPIRequest", "WeakMap", "toAbsolute", "p", "Path", "resolve", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "buildInfo", "FSExtra", "readJSON", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "createHandleRequest", "handleAPI", "request", "loaderProps", "apiFile", "join", "cwd", "page", "set", "resolveAPIRequest", "params", "handleSSR", "url", "type", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "isResponse", "isStatusRedirect", "status", "location", "json"]
6
6
  }
@@ -68,7 +68,7 @@ function useLoader(loader) {
68
68
  try {
69
69
  const response = await (async () => {
70
70
  if (isNative) {
71
- const nativeLoaderJSUrl = `${loaderJSUrl}&platform=ios`;
71
+ const nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
72
72
  try {
73
73
  const loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
74
74
  if (!loaderJsCodeResp.ok) throw new Error(`Response not ok: ${loaderJsCodeResp.status}`);
@@ -55,7 +55,7 @@ function useLoader(loader) {
55
55
  try {
56
56
  var response = await async function() {
57
57
  if (isNative) {
58
- var nativeLoaderJSUrl = `${loaderJSUrl}&platform=ios`;
58
+ var nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
59
59
  try {
60
60
  var loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
61
61
  if (!loaderJsCodeResp.ok)
@@ -42,10 +42,10 @@ var import_fs_extra = __toESM(require("fs-extra"), 1),
42
42
  import_vite = require("vite"),
43
43
  import_vxrn = require("vxrn"),
44
44
  import_cleanUrl = require("../cleanUrl.cjs"),
45
+ import_label_process = require("../cli/label-process.cjs"),
45
46
  import_getManifest = require("./getManifest.cjs"),
46
47
  import_one = require("./one.cjs"),
47
- import_replaceLoader = require("./replaceLoader.cjs"),
48
- import_label_process = require("../cli/label-process.cjs");
48
+ import_replaceLoader = require("./replaceLoader.cjs");
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,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": ["FSExtra", "vxrnBuild", "Path", "viteBuild", "MicroMatch", "file"]
6
6
  }
@@ -26,7 +26,7 @@ __export(build_exports, {
26
26
  build: () => build
27
27
  });
28
28
  module.exports = __toCommonJS(build_exports);
29
- var import_fs_extra = __toESM(require("fs-extra"), 1), import_micromatch = __toESM(require("micromatch"), 1), import_node_module = require("node:module"), import_node_path = __toESM(require("node:path"), 1), import_rollup_plugin_node_externals = require("rollup-plugin-node-externals"), import_vite = require("vite"), import_vxrn = require("vxrn"), import_cleanUrl = require("../cleanUrl"), import_getManifest = require("./getManifest"), import_one = require("./one"), import_replaceLoader = require("./replaceLoader"), import_label_process = require("../cli/label-process");
29
+ var import_fs_extra = __toESM(require("fs-extra"), 1), import_micromatch = __toESM(require("micromatch"), 1), import_node_module = require("node:module"), import_node_path = __toESM(require("node:path"), 1), import_rollup_plugin_node_externals = require("rollup-plugin-node-externals"), import_vite = require("vite"), import_vxrn = require("vxrn"), import_cleanUrl = require("../cleanUrl"), import_label_process = require("../cli/label-process"), import_getManifest = require("./getManifest"), import_one = require("./one"), import_replaceLoader = require("./replaceLoader");
30
30
  const import_meta = {};
31
31
  var { ensureDir, readFile, outputFile } = import_fs_extra.default;
32
32
  process.on("uncaughtException", function(err) {
@@ -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;;;;;sBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,cAAmE,iBACnE,cAMO,iBACP,kBAA8C,wBAG9C,qBAA4B,0BAC5B,aAAmC,kBACnC,uBAA8B,4BAE9B,uBAA6B;AArB7B;AAuBA,IAAM,EAAEA,WAAWC,UAAUC,WAAU,IAAKC,gBAAAA;AAE5CC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,OAAMF,OAAAA,OAAAA,SAAAA,IAAKG,YAAWH,GAAAA;AAChC,CAAA;AAEA,eAAsBI,MAAMC,MAG3B;MAG4BC,2BAAAA,oBAseVA,kBAA2BC;AAxe5CC,yCAAa,OAAA;AACb,MAAMF,cAAc,UAAMG,+BAAmB,OAAA,GAClBH,wCAArBI,sBAAqBJ,0CAAAA,qBAAAA,YAAYF,WAAK,QAAjBE,uBAAAA,WAAAA,4BAAAA,mBAAmBK,YAAM,QAAzBL,8BAAAA,SAAAA,SAAAA,0BAA2BM,kBAAY,QAAvCN,2CAAAA,SAAAA,yCAA2C;AAGtER,UAAQe,IAAIC,gBAAgB,KAEvBhB,QAAQe,IAAIE,kBACfd,QAAQe,KACN,+FAAqF;AAIzF,MAAMC,aAAa,UAAMC,YAAAA,OACvB;IACEP,QAAQL,YAAYK;IACpBP,OAAO;MACLe,SAAS;MACTR,QAAQ;QACNC,cAAcF;MAChB;IACF;EACF,GACAL,IAAAA,GAGIE,UAAU,UAAMa,yBAAYH,WAAWV,OAAO,GAE9Cc,aAAa,SAACC,GAAAA;WAAMC,iBAAAA,QAAKC,QAAQjB,QAAQkB,MAAMH,CAAAA;KAC/CI,eAAWC,gCAAAA,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AAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGiC,OAAAA,GAAUgI,cAAAA,GAAiBnI,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASsI,YAAYC,QAAc;AACjC,SAAOA,OAAOvI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASrC,wBAAwB6K,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKnL,IAAI,SAACqL,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAcvK,KAAK,GAAA,GAEtC0K,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", "labelProcess", "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", "treeshake", "viteBuild", "plugins", "nodeExternals", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "rollupRemoveUnusedImportsPlugin", "filter", "Boolean", "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", "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
  }
@@ -43,7 +43,7 @@ var import_generator = __toESM(require("@babel/generator"), 1),
43
43
  const traverse = import_traverse.default.default,
44
44
  generate = import_generator.default.default,
45
45
  clientTreeShakePlugin = () => ({
46
- name: "one:client-tree-shake",
46
+ name: "one-client-tree-shake",
47
47
  enforce: "pre",
48
48
  applyToEnvironment(env) {
49
49
  return env.name === "client" || env.name === "ios" || env.name === "android";
@@ -29,7 +29,7 @@ __export(clientTreeShakePlugin_exports, {
29
29
  module.exports = __toCommonJS(clientTreeShakePlugin_exports);
30
30
  var import_generator = __toESM(require("@babel/generator"), 1), import_parser = require("@babel/parser"), import_traverse = __toESM(require("@babel/traverse"), 1), import_babel_dead_code_elimination = require("babel-dead-code-elimination"), import_constants = require("./constants"), traverse = import_traverse.default.default, generate = import_generator.default.default, clientTreeShakePlugin = function() {
31
31
  return {
32
- name: "one:client-tree-shake",
32
+ name: "one-client-tree-shake",
33
33
  enforce: "pre",
34
34
  applyToEnvironment(env) {
35
35
  return env.name === "client" || env.name === "ios" || env.name === "android";
@@ -145,7 +145,7 @@ ${stack}
145
145
  });
146
146
  }
147
147
  return {
148
- name: "router-fs",
148
+ name: "one-router-fs",
149
149
  enforce: "post",
150
150
  apply: "serve",
151
151
  async config(userConfig) {
@@ -119,7 +119,7 @@ ${stack}
119
119
  });
120
120
  }
121
121
  return {
122
- name: "router-fs",
122
+ name: "one-router-fs",
123
123
  enforce: "post",
124
124
  apply: "serve",
125
125
  async config(userConfig) {
@@ -35,26 +35,26 @@ __export(one_exports, {
35
35
  one: () => one
36
36
  });
37
37
  module.exports = __toCommonJS(one_exports);
38
- var import_node_events = __toESM(require("node:events"), 1),
38
+ var import_resolve = require("@vxrn/resolve"),
39
+ import_node_events = __toESM(require("node:events"), 1),
39
40
  import_node_path = __toESM(require("node:path"), 1),
40
41
  import_vite = require("vite"),
41
42
  import_vite_tsconfig_paths = __toESM(require("vite-tsconfig-paths"), 1),
42
43
  import_vxrn = require("vxrn"),
44
+ import_constants = require("../constants.cjs"),
43
45
  import_polyfills_server = require("../polyfills-server.cjs"),
44
46
  import_existsAsync = require("../utils/existsAsync.cjs"),
45
- import_resolve = require("@vxrn/resolve"),
46
47
  import_clientTreeShakePlugin = require("./clientTreeShakePlugin.cjs"),
47
48
  import_createFileSystemRouter = require("./createFileSystemRouter.cjs"),
48
49
  import_ensureTsConfig = require("./ensureTsConfig.cjs"),
49
50
  import_fixDependenciesPlugin = require("./fixDependenciesPlugin.cjs"),
50
51
  import_generateTypesForRoutes = require("./generateTypesForRoutes.cjs"),
51
- import_loadEnv = require("./loadEnv.cjs"),
52
52
  import_virtualEntryPlugin = require("./virtualEntryPlugin.cjs"),
53
53
  import_vitePluginSsrCss = require("./vitePluginSsrCss.cjs");
54
54
  import_node_events.default.setMaxListeners(1e3);
55
55
  globalThis.__vxrnEnableNativeEnv = !0;
56
56
  function one(options = {}) {
57
- oneOptions = options, (0, import_loadEnv.loadEnv)(process.cwd()), options.config?.ensureTSConfig !== !1 && (0, import_ensureTsConfig.ensureTSConfig)(), globalThis.__vxrnPluginConfig__ = options;
57
+ oneOptions = options, options.config?.ensureTSConfig !== !1 && (0, import_ensureTsConfig.ensureTSConfig)(), globalThis.__vxrnPluginConfig__ = options;
58
58
  const {
59
59
  optimizeDeps
60
60
  } = (0, import_vxrn.getOptimizeDeps)("build"),
@@ -65,7 +65,17 @@ function one(options = {}) {
65
65
  `${optimizeIds.map(id => id.replace(/[#-.]|[[-^]|[?|{}]/g, "\\$&")).join("|")}`);
66
66
  let tsConfigPathsPlugin = null;
67
67
  const vxrnOptions = (0, import_vxrn.getOptionsFilled)(),
68
- devAndProdPlugins = [
68
+ {
69
+ clientEnvDefine
70
+ } = (0, import_vxrn.loadEnv)(vxrnOptions?.mode ?? "development"),
71
+ devAndProdPlugins = [{
72
+ name: "one-define-env",
73
+ config() {
74
+ return {
75
+ define: clientEnvDefine
76
+ };
77
+ }
78
+ },
69
79
  // proxy because you cant add a plugin inside a plugin
70
80
  new Proxy({
71
81
  name: "one:tsconfig-paths",
@@ -113,24 +123,40 @@ function one(options = {}) {
113
123
  return {
114
124
  define: {
115
125
  ...(options.web?.defaultRenderMode && {
116
- "process.env.One_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode)
126
+ "process.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode),
127
+ "import.meta.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode)
117
128
  }),
118
129
  ...(options.setupFile && {
119
- "process.env.One_SETUP_FILE": JSON.stringify(options.setupFile)
130
+ "process.env.ONE_SETUP_FILE": JSON.stringify(options.setupFile)
120
131
  }),
121
132
  ...(process.env.NODE_ENV !== "production" && vxrnOptions && {
122
- "process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
133
+ "process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url),
134
+ "import.meta.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
123
135
  })
124
136
  },
125
137
  environments: {
126
138
  client: {
127
139
  define: {
128
- "process.env.VITE_ENVIRONMENT": '"client"'
140
+ "process.env.VITE_ENVIRONMENT": '"client"',
141
+ "import.meta.env.VITE_ENVIRONMENT": '"client"'
129
142
  }
130
143
  },
131
144
  ssr: {
132
145
  define: {
133
- "process.env.VITE_ENVIRONMENT": '"ssr"'
146
+ "process.env.VITE_ENVIRONMENT": '"ssr"',
147
+ "import.meta.env.VITE_ENVIRONMENT": '"ssr"'
148
+ }
149
+ },
150
+ ios: {
151
+ define: {
152
+ "process.env.VITE_ENVIRONMENT": '"ios"',
153
+ "import.meta.env.VITE_ENVIRONMENT": '"ios"'
154
+ }
155
+ },
156
+ android: {
157
+ define: {
158
+ "process.env.VITE_ENVIRONMENT": '"android"',
159
+ "import.meta.env.VITE_ENVIRONMENT": '"android"'
134
160
  }
135
161
  }
136
162
  }
@@ -180,16 +206,19 @@ function one(options = {}) {
180
206
  ...options,
181
207
  root: "app"
182
208
  }), {
183
- name: "define-app-key",
209
+ name: "one-define-environment",
184
210
  config() {
185
211
  if (options.app?.key) return {
186
212
  define: {
187
- "process.env.One_APP_NAME": JSON.stringify(options.app.key)
213
+ "process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
214
+ "import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key),
215
+ "process.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY),
216
+ "import.meta.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY)
188
217
  }
189
218
  };
190
219
  }
191
220
  }, {
192
- name: "use-react-18-for-native",
221
+ name: "one-use-react-18-for-native",
193
222
  enforce: "pre",
194
223
  async config() {
195
224
  const sharedNativeConfig = {
@@ -213,7 +242,7 @@ function one(options = {}) {
213
242
  };
214
243
  }
215
244
  }, {
216
- name: "optimize-deps-load-web-extensions",
245
+ name: "one-optimize-deps-load-web-extensions",
217
246
  enforce: "pre",
218
247
  applyToEnvironment(environment) {
219
248
  return (0, import_vxrn.isWebEnvironment)(environment);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/one.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAAoE,iBACpE,0BAAO,gCACP,qBAA4B,iCAC5B,iBAA4B,0BAC5B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,iBAAwB,sBAExB,4BAAmD,iCACnD,0BAAiC;AAEjC,mBAAAA,QAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,aAER,wBAAQ,QAAQ,IAAI,CAAC,GAGtB,QAAQ,QAAQ,mBAAmB,UAChC,sCAAe,GAGtB,WAAW,uBAA0B;AAGrC,QAAM,EAAE,aAAa,QAAI,6BAAgB,OAAO,GAC1C,cAAc,aAAa,SAC3B,kBAAkB,IAAI;AAAA;AAAA;AAAA,IAG1B,GAAG,YAAY,IAAI,CAAC,OAAO,GAAG,QAAQ,uBAAuB,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC;AAAA,EACjF;AAEA,MAAI,sBAAqC;AAEzC,QAAM,kBAAc,8BAAiB,GAE/B,oBAAoB;AAAA;AAAA,IAExB,IAAI;AAAA,MACF;AAAA,QACE,MAAM;AAAA,QACN,OAAO,gBAAgB;AACrB,gBAAM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, {
27
27
  one: () => one
28
28
  });
29
29
  module.exports = __toCommonJS(one_exports);
30
- var import_node_events = __toESM(require("node:events"), 1), import_node_path = __toESM(require("node:path"), 1), import_vite = require("vite"), import_vite_tsconfig_paths = __toESM(require("vite-tsconfig-paths"), 1), import_vxrn = require("vxrn"), import_polyfills_server = require("../polyfills-server"), import_existsAsync = require("../utils/existsAsync"), import_resolve = require("@vxrn/resolve"), import_clientTreeShakePlugin = require("./clientTreeShakePlugin"), import_createFileSystemRouter = require("./createFileSystemRouter"), import_ensureTsConfig = require("./ensureTsConfig"), import_fixDependenciesPlugin = require("./fixDependenciesPlugin"), import_generateTypesForRoutes = require("./generateTypesForRoutes"), import_loadEnv = require("./loadEnv"), import_virtualEntryPlugin = require("./virtualEntryPlugin"), import_vitePluginSsrCss = require("./vitePluginSsrCss");
30
+ var import_resolve = require("@vxrn/resolve"), import_node_events = __toESM(require("node:events"), 1), import_node_path = __toESM(require("node:path"), 1), import_vite = require("vite"), import_vite_tsconfig_paths = __toESM(require("vite-tsconfig-paths"), 1), import_vxrn = require("vxrn"), import_constants = require("../constants"), import_polyfills_server = require("../polyfills-server"), import_existsAsync = require("../utils/existsAsync"), import_clientTreeShakePlugin = require("./clientTreeShakePlugin"), import_createFileSystemRouter = require("./createFileSystemRouter"), import_ensureTsConfig = require("./ensureTsConfig"), import_fixDependenciesPlugin = require("./fixDependenciesPlugin"), import_generateTypesForRoutes = require("./generateTypesForRoutes"), import_virtualEntryPlugin = require("./virtualEntryPlugin"), import_vitePluginSsrCss = require("./vitePluginSsrCss");
31
31
  import_node_events.default.setMaxListeners(1e3);
32
32
  globalThis.__vxrnEnableNativeEnv = !0;
33
33
  function one() {
34
34
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_config;
35
- oneOptions = options, (0, import_loadEnv.loadEnv)(process.cwd()), ((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== !1 && (0, import_ensureTsConfig.ensureTSConfig)(), globalThis.__vxrnPluginConfig__ = options;
35
+ oneOptions = options, ((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== !1 && (0, import_ensureTsConfig.ensureTSConfig)(), globalThis.__vxrnPluginConfig__ = options;
36
36
  var { optimizeDeps } = (0, import_vxrn.getOptimizeDeps)("build"), optimizeIds = optimizeDeps.include, optimizeIdRegex = new RegExp(
37
37
  // santize ids for regex
38
38
  // https://stackoverflow.com/questions/6300183/sanitize-string-of-regex-characters-before-regexp-build
39
39
  `${optimizeIds.map(function(id) {
40
40
  return id.replace(/[#-.]|[[-^]|[?|{}]/g, "\\$&");
41
41
  }).join("|")}`
42
- ), tsConfigPathsPlugin = null, vxrnOptions = (0, import_vxrn.getOptionsFilled)(), devAndProdPlugins = [
42
+ ), tsConfigPathsPlugin = null, vxrnOptions = (0, import_vxrn.getOptionsFilled)(), _vxrnOptions_mode, { clientEnvDefine } = (0, import_vxrn.loadEnv)((_vxrnOptions_mode = vxrnOptions == null ? void 0 : vxrnOptions.mode) !== null && _vxrnOptions_mode !== void 0 ? _vxrnOptions_mode : "development"), devAndProdPlugins = [
43
+ {
44
+ name: "one-define-env",
45
+ config() {
46
+ return {
47
+ define: clientEnvDefine
48
+ };
49
+ }
50
+ },
43
51
  // proxy because you cant add a plugin inside a plugin
44
52
  new Proxy({
45
53
  name: "one:tsconfig-paths",
@@ -96,24 +104,40 @@ function one() {
96
104
  return {
97
105
  define: {
98
106
  ...((_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.defaultRenderMode) && {
99
- "process.env.One_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode)
107
+ "process.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode),
108
+ "import.meta.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode)
100
109
  },
101
110
  ...options.setupFile && {
102
- "process.env.One_SETUP_FILE": JSON.stringify(options.setupFile)
111
+ "process.env.ONE_SETUP_FILE": JSON.stringify(options.setupFile)
103
112
  },
104
113
  ...process.env.NODE_ENV !== "production" && vxrnOptions && {
105
- "process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
114
+ "process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url),
115
+ "import.meta.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
106
116
  }
107
117
  },
108
118
  environments: {
109
119
  client: {
110
120
  define: {
111
- "process.env.VITE_ENVIRONMENT": '"client"'
121
+ "process.env.VITE_ENVIRONMENT": '"client"',
122
+ "import.meta.env.VITE_ENVIRONMENT": '"client"'
112
123
  }
113
124
  },
114
125
  ssr: {
115
126
  define: {
116
- "process.env.VITE_ENVIRONMENT": '"ssr"'
127
+ "process.env.VITE_ENVIRONMENT": '"ssr"',
128
+ "import.meta.env.VITE_ENVIRONMENT": '"ssr"'
129
+ }
130
+ },
131
+ ios: {
132
+ define: {
133
+ "process.env.VITE_ENVIRONMENT": '"ios"',
134
+ "import.meta.env.VITE_ENVIRONMENT": '"ios"'
135
+ }
136
+ },
137
+ android: {
138
+ define: {
139
+ "process.env.VITE_ENVIRONMENT": '"android"',
140
+ "import.meta.env.VITE_ENVIRONMENT": '"android"'
117
141
  }
118
142
  }
119
143
  }
@@ -174,19 +198,22 @@ function one() {
174
198
  root: "app"
175
199
  }),
176
200
  {
177
- name: "define-app-key",
201
+ name: "one-define-environment",
178
202
  config() {
179
203
  var _options_app;
180
204
  if (!((_options_app = options.app) === null || _options_app === void 0) && _options_app.key)
181
205
  return {
182
206
  define: {
183
- "process.env.One_APP_NAME": JSON.stringify(options.app.key)
207
+ "process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
208
+ "import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key),
209
+ "process.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY),
210
+ "import.meta.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY)
184
211
  }
185
212
  };
186
213
  }
187
214
  },
188
215
  {
189
- name: "use-react-18-for-native",
216
+ name: "one-use-react-18-for-native",
190
217
  enforce: "pre",
191
218
  async config() {
192
219
  var sharedNativeConfig = {
@@ -211,7 +238,7 @@ function one() {
211
238
  },
212
239
  // this started erroring for no reason..
213
240
  {
214
- name: "optimize-deps-load-web-extensions",
241
+ name: "one-optimize-deps-load-web-extensions",
215
242
  enforce: "pre",
216
243
  applyToEnvironment(environment) {
217
244
  return (0, import_vxrn.isWebEnvironment)(environment);