one 1.1.269 → 1.1.271

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/cli.js +2 -2
  3. package/dist/cjs/cli.js.map +1 -1
  4. package/dist/cjs/cli.native.js +2 -2
  5. package/dist/cjs/cli.native.js.map +2 -2
  6. package/dist/cjs/serve.js +1 -1
  7. package/dist/cjs/serve.js.map +1 -1
  8. package/dist/cjs/serve.native.js +1 -1
  9. package/dist/cjs/serve.native.js.map +2 -2
  10. package/dist/cjs/server/createRoutesManifest.js.map +1 -1
  11. package/dist/cjs/server/createRoutesManifest.native.js.map +1 -1
  12. package/dist/cjs/vite/build.js +8 -1
  13. package/dist/cjs/vite/build.js.map +1 -1
  14. package/dist/cjs/vite/build.native.js +13 -3
  15. package/dist/cjs/vite/build.native.js.map +2 -2
  16. package/dist/cjs/vite/createFileSystemRouter.js +7 -3
  17. package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
  18. package/dist/cjs/vite/createFileSystemRouter.native.js +12 -3
  19. package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
  20. package/dist/cjs/vite/one.js +11 -1
  21. package/dist/cjs/vite/one.js.map +2 -2
  22. package/dist/cjs/vite/one.native.js +14 -1
  23. package/dist/cjs/vite/one.native.js.map +2 -2
  24. package/dist/cjs/vite/types.native.js.map +1 -1
  25. package/dist/esm/cli.js +2 -2
  26. package/dist/esm/cli.js.map +1 -1
  27. package/dist/esm/cli.mjs +2 -2
  28. package/dist/esm/cli.mjs.map +1 -1
  29. package/dist/esm/cli.native.js +2 -2
  30. package/dist/esm/cli.native.js.map +1 -1
  31. package/dist/esm/serve.js +1 -1
  32. package/dist/esm/serve.js.map +1 -1
  33. package/dist/esm/serve.mjs +1 -1
  34. package/dist/esm/serve.mjs.map +1 -1
  35. package/dist/esm/serve.native.js +1 -1
  36. package/dist/esm/serve.native.js.map +1 -1
  37. package/dist/esm/server/createRoutesManifest.js.map +1 -1
  38. package/dist/esm/server/createRoutesManifest.mjs.map +1 -1
  39. package/dist/esm/server/createRoutesManifest.native.js.map +1 -1
  40. package/dist/esm/vite/build.js +8 -1
  41. package/dist/esm/vite/build.js.map +1 -1
  42. package/dist/esm/vite/build.mjs +8 -1
  43. package/dist/esm/vite/build.mjs.map +1 -1
  44. package/dist/esm/vite/build.native.js +12 -2
  45. package/dist/esm/vite/build.native.js.map +1 -1
  46. package/dist/esm/vite/createFileSystemRouter.js +7 -3
  47. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  48. package/dist/esm/vite/createFileSystemRouter.mjs +18 -8
  49. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  50. package/dist/esm/vite/createFileSystemRouter.native.js +18 -8
  51. package/dist/esm/vite/createFileSystemRouter.native.js.map +1 -1
  52. package/dist/esm/vite/one.js +11 -1
  53. package/dist/esm/vite/one.js.map +1 -1
  54. package/dist/esm/vite/one.mjs +15 -1
  55. package/dist/esm/vite/one.mjs.map +1 -1
  56. package/dist/esm/vite/one.native.js +19 -1
  57. package/dist/esm/vite/one.native.js.map +1 -1
  58. package/package.json +12 -8
  59. package/src/cli.ts +2 -3
  60. package/src/serve.ts +1 -1
  61. package/src/server/createRoutesManifest.ts +1 -0
  62. package/src/vite/build.ts +11 -1
  63. package/src/vite/createFileSystemRouter.tsx +11 -4
  64. package/src/vite/one.ts +25 -1
  65. package/src/vite/types.ts +33 -20
  66. package/types/serve.d.ts.map +1 -1
  67. package/types/server/createRoutesManifest.d.ts +1 -0
  68. package/types/server/createRoutesManifest.d.ts.map +1 -1
  69. package/types/vite/build.d.ts.map +1 -1
  70. package/types/vite/createFileSystemRouter.d.ts.map +1 -1
  71. package/types/vite/one.d.ts.map +1 -1
  72. package/types/vite/types.d.ts +30 -17
  73. package/types/vite/types.d.ts.map +1 -1
@@ -19,6 +19,7 @@ process.on("uncaughtException", function (err) {
19
19
  async function build(args) {
20
20
  var _userOptions_build_server,
21
21
  _userOptions_build,
22
+ _userOptions_web,
22
23
  _options_server,
23
24
  userOptions = await loadUserOneOptions("build"),
24
25
  _userOptions_build_server_outputFormat,
@@ -76,7 +77,14 @@ async function build(args) {
76
77
  define: {
77
78
  ...processEnvDefines
78
79
  },
80
+ ssr: {
81
+ noExternal: !0,
82
+ // we patched them to switch to react 19
83
+ external: ["react", "react-dom"],
84
+ optimizeDeps
85
+ },
79
86
  build: {
87
+ ssr: !0,
80
88
  emptyOutDir: !1,
81
89
  outDir: "dist/api",
82
90
  copyPublicDir: !1,
@@ -379,8 +387,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
379
387
  ...vxrnOutput
380
388
  };
381
389
  await FSExtra.writeJSON(toAbsolute("dist/buildInfo.json"), buildInfoForWriting);
382
- var postBuildLogs = [];
383
- if (((_options_server = options.server) === null || _options_server === void 0 ? void 0 : _options_server.platform) === "vercel" && (await FSExtra.writeFile(join(options.root, "dist", "index.js"), `import { serve } from 'one/serve'
390
+ var postBuildLogs = [],
391
+ _userOptions_web_deploy,
392
+ platform = (_userOptions_web_deploy = (_userOptions_web = userOptions.web) === null || _userOptions_web === void 0 ? void 0 : _userOptions_web.deploy) !== null && _userOptions_web_deploy !== void 0 ? _userOptions_web_deploy : (_options_server = options.server) === null || _options_server === void 0 ? void 0 : _options_server.platform;
393
+ if (platform === "vercel" && (await FSExtra.writeFile(join(options.root, "dist", "index.js"), `import { serve } from 'one/serve'
384
394
  const handler = await serve()
385
395
  export const { GET, POST, PUT, PATCH, OPTIONS } = handler`), postBuildLogs.push(`wrote vercel entry to: ${join(".", "dist", "index.js")}`), postBuildLogs.push("point vercel outputDirectory to dist")), userOptions?.afterBuild) {
386
396
  var _userOptions_afterBuild;
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_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","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","external","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","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","replaceAll","html","preload","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc","buildInfoForWriting","buildInfo"],"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;AAG9B;EAAMC,SAAE;EAAAC,QAAW;EAAAC;AAAU,IAAWlB,OAAI;AAE5CmB,OAAA,CAAQC,EAAA,CAAG,qBAAqB,UAASC,GAAA;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBb,MAAMiB,IAAA,EAGzB;EACD,IAAAC,yBAA0B;IAAAC,kBAAmB;IAAAC,eACvC;IAAAC,WAAqB,SAAYf,kBAAe;IAAAgB,sCAAgB;IAAAC,kBAAA,IAAAD,sCAAA,IAAAH,kBAAA,GAAAE,WAAA,CAAArB,KAAA,cAAAmB,kBAAA,gBAAAD,yBAAA,GAAAC,kBAAA,CAAAK,MAAA,cAAAN,yBAAA,uBAAAA,yBAAA,CAAAO,YAAA,cAAAH,sCAAA,cAAAA,sCAAA;EAGtEX,OAAA,CAAQe,GAAA,CAAIC,aAAA,GAAgB,KAEvBhB,OAAA,CAAQe,GAAA,CAAIE,cAAA,IACfd,OAAA,CAAQe,IAAA;EAAA,IACNC,UAAA,SAAA1B,SAAA;MACFoB,MAAA,EAAAH,WAAA,CAAAG,MAAA;MAGFx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AA,CAAAC,KAAA,CAAAF,GAAA,GAAAF,OAAA,CAAAsG,IAAA;YACf;UAEE;QACF,SAAMpG,GAAA,EAAO;UACb+K,kBAAgB,GACd,IAAAC,eAAa,GAAAhL,GAAA;QAGjB;UACA,IAAO;YAGC,CAAA8K,0BAAiB,IAAAG,UAAA,CAAA+B,MAAA,YAAA/B,UAAA,CAAA+B,MAAA;UACnB,UAAM;YACN,IAAKjC,kBAAO,EACV,MAAIC,eAAA;UACF;QAAU;MACR,GAAAiC,SAAA,GAAAzG,aAAA,CAAA0E,MAAA,CAAAC,QAAA,KAAApE,KAAA,IAAAL,yBAAA,IAAAK,KAAA,GAAAkG,SAAA,CAAA5B,IAAA,IAAAC,IAAA,GAAA5E,yBAAA,aAAAG,KAAA;EAAA,SAAA7G,GAAA;IAEc2G,iBAAA,KACJ,EAAAC,cAAI,GAAA5G,GAAA;EAAA;IACQ;MAAA,CAAA0G,yBAAA,IAAAuG,SAAA,CAAAD,MAAA,YAAAC,SAAA,CAAAD,MAAA;IAGlC,UAAK;MAA0B,IAAArG,iBACrB,EAGF,MAAAC,cAAkB;IAAgC;EAEpD;EAAO,MACTsG,YAAA,CAAA5G,SAAA,EAAAC,SAAA,SAAA5H,OAAA,CAAAwO,EAAA,CAAA7G,SAAA;IACA8G,KAAA,IAAO;IACTC,SACM,EAAG,CAAC;EACd;EAEA,IAAAC,QAAU,GAAAzH,WAAU,CAAA5C,MAAA,CAAc,UAAGsK,GAAQ,EAAA/K,KAAA;MAC/C;QAAAwJ,SAAA;QAAAL;MAAA,IAAAnJ,KAAA;MAEA,OAAS+K,GAAA,CAAAvB,SAAY,IAAAL,QAAgB,EAAA4B,GAAA;IACnC;IAAOC,mBAAe;MACxBF,QAAA;MAEAzH;IAME;IAAA4H,SAAM;MACN,GAAAD,mBAAkB;MACpB,GAAAvM","ignoreList":[]}
1
+ {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_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","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","replaceAll","html","preload","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc","buildInfoForWriting"],"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;AAG9B;EAAMC,SAAE;EAAAC,QAAW;EAAAC;AAAU,IAAWlB,OAAI;AAE5CmB,OAAA,CAAQC,EAAA,CAAG,qBAAqB,UAASC,GAAA;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBb,MAAMiB,IAAA,EAGzB;EACD,IAAAC,yBAA0B;IAAAC,kBAAmB;IAAAC,gBACvC;IAAAC,eAAqB;IAAAC,WAAmB,SAAQhB,kBAAgB;IAAAiB,sCAAA;IAAAC,kBAAA,IAAAD,sCAAA,IAAAJ,kBAAA,GAAAG,WAAA,CAAAtB,KAAA,cAAAmB,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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M;MACrD;QAAA0J,SAAA;QAAAL;MAAA,IAAArJ,KAAA;MAEA,OAASiL,GAAA,CAAAvB,SAAA,IAAAL,QAAwB,EAAA4B,GAAgB;IAM/C,MAAM;IAAAC,mBAAe;MACrBF,QAAO;MACTzH","ignoreList":[]}
@@ -35,19 +35,23 @@ function createFileSystemRouter(options) {
35
35
  renderPromise = promise;
36
36
  try {
37
37
  const routeFile = join("app", route.file);
38
- runner.clearCache(), globalThis.__vxrnresetState?.();
38
+ console.log({ routeFile, url }), runner.clearCache(), globalThis.__vxrnresetState?.();
39
39
  const exported = routeFile === "" ? {} : await runner.import(routeFile), loaderData = await exported.loader?.(loaderProps);
40
40
  eval("process.env.TAMAGUI_IS_SERVER = '1'");
41
41
  const entry = await runner.import(virtualEntryId), render = entry.default.render;
42
42
  globalThis.__vxrnLoaderData__ = loaderData, globalThis.__vxrnLoaderProps__ = loaderProps, LoaderDataCache[route.file] = loaderData;
43
- const html = await render({
43
+ const is404 = route.isNotFound || !exported.default, html = await render({
44
44
  loaderData,
45
45
  loaderProps,
46
46
  path: loaderProps?.path || "/",
47
47
  preloads
48
48
  });
49
- return html;
49
+ return is404 ? new Response(html, {
50
+ status: 404,
51
+ headers: { "Content-Type": "text/html" }
52
+ }) : html;
50
53
  } catch (err) {
54
+ console.error("Error in handleSSR:", err);
51
55
  const title = `Error rendering ${url.pathname} on server`, message = err instanceof Error ? err.message : `${err}`, stack = err instanceof Error ? err.stack : "";
52
56
  return console.error(`${title}
53
57
  ${message}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/createFileSystemRouter.tsx"],
4
- "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAEzB,SAAS,gCAAgC;AAEzC,SAAS,2BAA2B;AAEpC,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,yBAAy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", "routeFile", "loaderData", "resolve"]
6
6
  }
@@ -44,21 +44,31 @@ function createFileSystemRouter(options) {
44
44
  renderPromise = promise;
45
45
  try {
46
46
  const routeFile = join("app", route.file);
47
- runner.clearCache(), globalThis.__vxrnresetState?.();
47
+ console.log({
48
+ routeFile,
49
+ url
50
+ }), runner.clearCache(), globalThis.__vxrnresetState?.();
48
51
  const exported = routeFile === "" ? {} : await runner.import(routeFile),
49
52
  loaderData = await exported.loader?.(loaderProps);
50
53
  eval("process.env.TAMAGUI_IS_SERVER = '1'");
51
54
  const entry = await runner.import(virtualEntryId),
52
55
  render = entry.default.render;
53
56
  globalThis.__vxrnLoaderData__ = loaderData, globalThis.__vxrnLoaderProps__ = loaderProps, LoaderDataCache[route.file] = loaderData;
54
- const html = await render({
55
- loaderData,
56
- loaderProps,
57
- path: loaderProps?.path || "/",
58
- preloads
59
- });
60
- return html;
57
+ const is404 = route.isNotFound || !exported.default,
58
+ html = await render({
59
+ loaderData,
60
+ loaderProps,
61
+ path: loaderProps?.path || "/",
62
+ preloads
63
+ });
64
+ return is404 ? new Response(html, {
65
+ status: 404,
66
+ headers: {
67
+ "Content-Type": "text/html"
68
+ }
69
+ }) : html;
61
70
  } catch (err) {
71
+ console.error("Error in handleSSR:", err);
62
72
  const title = `Error rendering ${url.pathname} on server`,
63
73
  message = err instanceof Error ? err.message : `${err}`,
64
74
  stack = err instanceof Error ? err.stack : "";
@@ -1 +1 @@
1
- {"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","html","path","err","title","pathname","message","Error","stack","error","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","headers","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","status","location","statusCode","statusMessage","statusText","value","key","cookies","split","cookie","appendHeader","setHeader","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,MAAMC,cAAA,GAAiB;AAAM;AAEtB,SAASC,uBAAuBC,OAAA,EAAoC;EAGzE,MAAMC,QAAA,GAAW,CAAC,iBAAiBL,mBAAmB;EAEtD,IAAIM,MAAA;IACAC,MAAA;IAEAC,aAAA,GAAgBC,oBAAA,CAAqB;IAErCC,aAAA,GAAsC;EAE1C,SAASD,qBAAA,EAAuB;IAC9B,OAAOhB,mBAAA,CAAoBW,OAAA,EAAS;MAClC,MAAMO,UAAU;QAAEC,KAAA;QAAOC,GAAA;QAAKC;MAAY,GA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3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","log","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","location","statusCode","statusMessage","statusText","value","key","cookies","split","cookie","appendHeader","setHeader","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;A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D,OAAA,CAAQ2D,IAAI;IACpC+C,SAAA,GAAYrD,GAAA,CAAImD,WAAA,IAAe;IAC/B7F,IAAA,GAAM,IAAI+C,GAAA,CAAIgD,SAAA,EAAWD,OAAO;IAEhCzG,OAAA,GAAU,IAAI2G,OAAA,CAAQ;EAC5B,WAAWxB,GAAA,IAAO9B,GAAA,CAAIrD,OAAA,EAChBqD,GAAA,CAAIrD,OAAA,CAAQmF,GAAG,KAAGnF,OAAA,CAAQ4G,MAAA,CAAOzB,GAAA,EAAK9B,GAAA,CAAIrD,OAAA,CAAQmF,GAAG,CAAW;EAGtE,OAAO,IAAI0B,OAAA,CAAQlG,IAAA,EAAK;IACtBmG,MAAA,EAAQzD,GAAA,CAAIyD,MAAA;IACZpB,IAAA,EAAM,CAAC,QAAQ,OAAO,SAAS,QAAQ,EAAEqB,QAAA,CAAS1D,GAAA,CAAIyD,MAAA,IAAU,EAAE,IAC9D,MAAME,UAAA,CAAW3D,GAAG,IACpB;IACJrD;EACF,CAAC;AACH;AAEA,SAASgH,WAAWlB,MAAA,EAAkD;EACpE,OAAO,IAAImB,OAAA,CAAQ,CAACC,QAAA,EAASC,MAAA,KAAW;IACtC,MAAMC,MAAA,GAAuB,EAAC;IAC9BtB,MAAA,CAAOuB,EAAA,CAAG,QAASC,KAAA,IAAsBF,MAAA,CAAOG,IAAA,CAAKD,KAAK,CAAC,GAC3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
@@ -53,21 +53,31 @@ function createFileSystemRouter(options) {
53
53
  _globalThis,
54
54
  _exported_loader,
55
55
  routeFile = join("app", route.file);
56
- runner.clearCache(), (_globalThis___vxrnresetState = (_globalThis = globalThis).__vxrnresetState) === null || _globalThis___vxrnresetState === void 0 || _globalThis___vxrnresetState.call(_globalThis);
56
+ console.log({
57
+ routeFile,
58
+ url
59
+ }), runner.clearCache(), (_globalThis___vxrnresetState = (_globalThis = globalThis).__vxrnresetState) === null || _globalThis___vxrnresetState === void 0 || _globalThis___vxrnresetState.call(_globalThis);
57
60
  var exported = routeFile === "" ? {} : await runner.import(routeFile),
58
61
  loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps));
59
62
  eval("process.env.TAMAGUI_IS_SERVER = '1'");
60
63
  var entry = await runner.import(virtualEntryId),
61
64
  render = entry.default.render;
62
65
  globalThis.__vxrnLoaderData__ = loaderData, globalThis.__vxrnLoaderProps__ = loaderProps, LoaderDataCache[route.file] = loaderData;
63
- var html = await render({
64
- loaderData,
65
- loaderProps,
66
- path: loaderProps?.path || "/",
67
- preloads
68
- });
69
- return html;
66
+ var is404 = route.isNotFound || !exported.default,
67
+ html = await render({
68
+ loaderData,
69
+ loaderProps,
70
+ path: loaderProps?.path || "/",
71
+ preloads
72
+ });
73
+ return is404 ? new Response(html, {
74
+ status: 404,
75
+ headers: {
76
+ "Content-Type": "text/html"
77
+ }
78
+ }) : html;
70
79
  } catch (err) {
80
+ console.error("Error in handleSSR:", err);
71
81
  var title = `Error rendering ${url.pathname} on server`,
72
82
  message = err instanceof Error ? err.message : `${err}`,
73
83
  stack = err instanceof Error ? err.stack : "";
@@ -1 +1 @@
1
- {"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","_type_of","obj","Symbol","constructor","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","param","route","url","loaderProps","console","info","type","file","promise","resolve","_globalThis___vxrnresetState","_globalThis","_exported_loader","routeFile","clearCache","globalThis","__vxrnresetState","call","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","html","path","err","title","pathname","message","Error","stack","error","handleLoader","param2","request","route2","url2","loaderProps2","_this","_exported_loader2","routeFile2","transformedJS","transformRequest","code","exported2","loaderData2","platform","searchParams","get","environment","environments","nativeTransformedJS","JSON","stringify","handleAPI","result","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","routesAndLayouts","Set","flatMap","_route_layouts","layouts","map","layout","contextKey","optimizeDeps","entries","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","_options_web","redirects","web","URL","headers","host","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","redirect","_step","value","regexStr","source","replace","match","RegExp","destination","forEach","index","warn","writeHead","permanent","Location","end","v","_iterator","iterator","done","_ret","return","reply","handler","convertIncomingMessageToRequest","status","location","statusCode","statusMessage","statusText","key","cookies","split","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,SAAMC,SAAAC,GAAA,EAAiB;EAAM;;EAEtB,OAASA,GAAA,WAAAC,MAAA,GAAuB,OAAAD,GAAoC,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAGzE;AAEA,IAAAG,cACI,IAEA;AAIJ;AACE,SAAAC,sBAA2BA,CAAAC,OAAA,EAAS;EAAA,IAClCC,QAAM,IAGJ,eAFA,EAIET,mBAAO;IAAAU,MAAA;IAAAC,MAAA;IAAAC,aAAA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DC,+BAAA,CAAArC,GAAA;YACvF,KAAAmC,KAAA,EACG,OAAMjC,IAAA;YAGZ,WAAUiC,KAAU,IAAI,QAAQ,IAAIpJ,UACpC,CAAAoJ,KAAY;cAIP,IAAAnJ,gBAAW,CAAAmJ,KAAA,CAAAG,MAAA;gBACJ,IAAGC,QAAG,MAAQJ,KAAO,CAAA5B,OAAK,CAAI7C,GAAA,WAAsB;gBAG3D,IAAAjD,OAAa,CAAAC,IAAA,qBAAA6H,QAAA,KAAAA,QAAA;kBACVtC,GAAA,CAAAwB,SAAA,CAAAU,KAAA,CAAAG,MAAA;oBACGX,QAAO,EAAAY;kBAGtB,IAAAtC,GAAA,CAAA2B,GAAA;kBACD;gBACH;gBAESnH,OAAW,CAAAgC,KAAkD,oDAAA0F,KAAA;cACzD;cACHlC,GAAA,CAAAuC,UAAwB,GAAAL,KAAA,CAAAG,MAAA,EAAArC,GAAA,CAAAwC,aAAA,GAAAN,KAAA,CAAAO,UAAA,EAAAP,KAAA,CAAA5B,OAAA,CAAAe,OAAA,WAAAP,KAAA,EAAA4B,GAAA;gBACpB,IAAAA,GAAS,iBAA6B;kBAGjD,IAAAC,OAAA,GAAA7B,KAAA,CAAA8B,KAAA;oBAAAC,0BAAA;oBAAAC,kBAAA;oBAAAC,eAAA;kBACH","ignoreList":[]}
1
+ {"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","_type_of","obj","Symbol","constructor","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","param","route","url","loaderProps","console","info","type","file","promise","resolve","_globalThis___vxrnresetState","_globalThis","_exported_loader","routeFile","log","clearCache","globalThis","__vxrnresetState","call","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","param2","request","route2","url2","loaderProps2","_this","_exported_loader2","routeFile2","transformedJS","transformRequest","code","exported2","loaderData2","platform","searchParams","get","environment","environments","nativeTransformedJS","JSON","stringify","handleAPI","result","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","routesAndLayouts","Set","flatMap","_route_layouts","layouts","map","layout","contextKey","optimizeDeps","entries","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","_options_web","redirects","web","URL","host","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","redirect","_step","value","regexStr","source","replace","match","RegExp","destination","forEach","index","warn","writeHead","permanent","Location","end","v","_iterator","iterator","done","_ret","return","reply","handler","convertIncomingMessageToRequest","location"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,SAAMC,SAAAC,GAAA,EAAiB;EAAM;;EAEtB,OAASA,GAAA,WAAAC,MAAA,GAAuB,OAAAD,GAAoC,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAGzE;AAEA,IAAAG,cACI,IAEA;AAIJ;AACE,SAAAC,sBAA2BA,CAAAC,OAAA,EAAS;EAAA,IAClCC,QAAM,IAGJ,eAFA,EAIET,mBAAO;IAAAU,MAAA;IAAAC,MAAA;IAAAC,aAAA,GAAAC,oBAAA;IAAAC,aAAA;EAAA,SAAAD,qBAAA;IAAA,OAAApB,mBAAA,CAAAe,OAAA;MAAA,MAAAO,U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,SAAA,CAAAI,MAAA,YAAAJ,SAAA,CAAAI,MAAA;gBACT;kBAEM,IAAAxB,iBAAA,EACK,MAAAC,cAAA;gBACG;cAGN;YAKN;YACU,IAAQwB,KAAG,GAAG,MAAAvI,aAAe,CAAKwI,OAAI,OAAQC,+BAAc,CAAApC,GAAA;YAG/D,IAAI,CAAAkC,KAAQ,EACT,OAAIhC,IAAA;YACL,WAAQgC,KAAO,YAAS,IAAQzJ,UAAW,CAAAyJ,KAAI;cAGtD,IAAAxJ,gBAAA,CAAAwJ,KAAA,CAAAjG,MAAA;gBACD,IAAAoG,QAAA,MAAAH,KAAA,CAAAhG,OAAA,CAAAwB,GAAA;gBACH,IAAAvD,OAAA,CAAAC,IAAA,qBAAAiI,QAAA,KAAAA,QAAA;kBAESpC,GAAW,CAAAuB,SAAkD,CAAAU,KAAA,CAAAjG,MAAA;oBACzDyF,QAAS,EAAAW;kBACZ,CAAuB,CAAC,EAAApC,GAAA,CAAA0B,GAAA;kBACpB;gBAGX;gBACHxH,OAAA,CAAAiC,KAAA,oDAAA8F,KAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import events from "node:events";
2
- import { dirname, resolve } from "node:path";
2
+ import path, { dirname, resolve } from "node:path";
3
3
  import { loadConfigFromFile } from "vite";
4
4
  import tsconfigPaths from "vite-tsconfig-paths";
5
5
  import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from "vxrn";
@@ -15,6 +15,7 @@ import { loadEnv } from "./loadEnv";
15
15
  import { createVirtualEntry, virtualEntryId } from "./virtualEntryPlugin";
16
16
  import { vitePluginSsrCss } from "./vitePluginSsrCss";
17
17
  events.setMaxListeners(1e3);
18
+ globalThis.__vxrnEnableNativeEnv = !0;
18
19
  function one(options = {}) {
19
20
  oneOptions = options, loadEnv(process.cwd()), options.config?.ensureTSConfig !== !1 && ensureTSConfig(), globalThis.__vxrnPluginConfig__ = options;
20
21
  const { optimizeDeps } = getOptimizeDeps("build"), optimizeIds = optimizeDeps.include, optimizeIdRegex = new RegExp(
@@ -102,6 +103,15 @@ function one(options = {}) {
102
103
  }
103
104
  };
104
105
  }
106
+ },
107
+ {
108
+ name: "route-module-hmr-fix",
109
+ hotUpdate({ server, modules }) {
110
+ return modules.map((m) => {
111
+ const { id } = m;
112
+ return id && path.relative(server.config.root, id).split(path.sep)[0] === "app" && (m.acceptedHmrExports = /* @__PURE__ */ new Set()), m;
113
+ });
114
+ }
105
115
  }
106
116
  ];
107
117
  return globalThis.__vxrnAddNativePlugins = [clientTreeShakePlugin()], globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins, [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/one.ts"],
4
- "mappings": "AAAA,OAAO,YAAY;AACnB,SAAS,SAAS,eAAe;AACjC,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,SAAS,iBAAiB,kBAAkB,wBAAwB;AACpE,OAAO;AACP,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,eAAe;AAExB,SAAS,oBAAoB,sBAAsB;AACnD,SAAS,wBAAwB;AAEjC,OAAO,gBAAgB,GAAK;AAErB,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,SAER,QAAQ,QAAQ,IAAI,CAAC,GAGtB,QAAQ,QAAQ,mBAAmB,MAChC,eAAe,GAGtB,WAAW,uBAA0B;AAGrC,QAAM,EAAE,aAAa,IAAI,gBAAgB,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,cAAc,iBAA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WAAW,EAAE,IAAI;AACtD,cAAI,YAAY,GAAI;AACpB,cAAI;AACF,kBAAM,gBAAgB,eAAe;AACrC,gBAAI,MAAM,YAAY,aAAa;AACjC,qBAAO;AAET,gBAAI,MAAM,YAAY,OAAO;AAC3B,qBAAO;AAAA,UAEX,SAAS,KAAK;AACZ,oBAAQ,KAAK,uBAAuB,GAAG;AAAA,UACzC;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IAEA,iBAAiB;AAAA,MACf,SAAS,CAAC,cAAc;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAEA,IAAI,aAAuC;AAE3C,eAAe,kBAAkB,SAA6B;AAC5D,MAAI,CAAC,YAAY;AACf,QAAI,CAAC,QAAS,OAAM,IAAI,MAAM,yCAAyC;AACvE,UAAM,mBAAmB,OAAO;AAAA,EAClC;AACA,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,uBAAuB;AAEzC,SAAO;AACT;AAEA,eAAsB,mBAAmB,SAA4B;AAKnE,MAAI,CAJU,MAAM,mBAAmB;AAAA,IACrC,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AAEC,UAAM,IAAI,MAAM,iBAAiB;AAEnC,QAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,+BAA+B;AAEjD,SAAO;AACT;",
5
5
  "names": []
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import events from "node:events";
2
- import { dirname, resolve } from "node:path";
2
+ import path, { dirname, resolve } from "node:path";
3
3
  import { loadConfigFromFile } from "vite";
4
4
  import tsconfigPaths from "vite-tsconfig-paths";
5
5
  import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from "vxrn";
@@ -15,6 +15,7 @@ import { loadEnv } from "./loadEnv.mjs";
15
15
  import { createVirtualEntry, virtualEntryId } from "./virtualEntryPlugin.mjs";
16
16
  import { vitePluginSsrCss } from "./vitePluginSsrCss.mjs";
17
17
  events.setMaxListeners(1e3);
18
+ globalThis.__vxrnEnableNativeEnv = !0;
18
19
  function one(options = {}) {
19
20
  oneOptions = options, loadEnv(process.cwd()), options.config?.ensureTSConfig !== !1 && ensureTSConfig(), globalThis.__vxrnPluginConfig__ = options;
20
21
  const {
@@ -93,6 +94,19 @@ function one(options = {}) {
93
94
  }
94
95
  };
95
96
  }
97
+ }, {
98
+ name: "route-module-hmr-fix",
99
+ hotUpdate({
100
+ server,
101
+ modules
102
+ }) {
103
+ return modules.map(m => {
104
+ const {
105
+ id
106
+ } = m;
107
+ return id && path.relative(server.config.root, id).split(path.sep)[0] === "app" && (m.acceptedHmrExports = /* @__PURE__ */new Set()), m;
108
+ });
109
+ }
96
110
  }];
97
111
  return globalThis.__vxrnAddNativePlugins = [clientTreeShakePlugin()], globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins, [...devAndProdPlugins,
98
112
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["events","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","one","options","oneOptions","process","cwd","config","globalThis","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","define","web","defaultRenderMode","JSON","stringify","setupFile","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","root","app","enforce","sharedNativeConfig","alias","react","ios","android","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","mode","foundOptions"],"sources":["../../../src/vite/one.ts"],"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AIC,KAAA,CAAM,iBAAiB;EAEnC,MAAMG,YAAA,GAAeL,iBAAA,CAAkB;EACvC,IAAI,CAACK,YAAA,EACH,MAAM,IAAIH,KAAA,CAAM,+BAA+B;EAEjD,OAAOG,YAAA;AACT","ignoreList":[]}
1
+ {"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","process","cwd","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","define","web","defaultRenderMode","JSON","stringify","setupFile","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","enforce","sharedNativeConfig","alias","react","ios","android","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","mode","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,QAAwB;AACpE,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,S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F,KAAA,CAAM,uBAAuB;EAEzC,OAAOhF,UAAA;AACT;AAEA,eAAsBiF,mBAAmBF,OAAA,EAA4B;EAKnE,IAAI,EAJU,MAAMpG,kBAAA,CAAmB;IACrCuG,IAAA,EAAM;IACNH;EACF,CAAC,IAEC,MAAM,IAAIC,KAAA,CAAM,iBAAiB;EAEnC,MAAMG,YAAA,GAAeL,iBAAA,CAAkB;EACvC,IAAI,CAACK,YAAA,EACH,MAAM,IAAIH,KAAA,CAAM,+BAA+B;EAEjD,OAAOG,YAAA;AACT","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import events from "node:events";
2
- import { dirname, resolve } from "node:path";
2
+ import path, { dirname, resolve } from "node:path";
3
3
  import { loadConfigFromFile } from "vite";
4
4
  import tsconfigPaths from "vite-tsconfig-paths";
5
5
  import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from "vxrn";
@@ -15,6 +15,7 @@ import { loadEnv } from "./loadEnv.native.js";
15
15
  import { createVirtualEntry, virtualEntryId } from "./virtualEntryPlugin.native.js";
16
16
  import { vitePluginSsrCss } from "./vitePluginSsrCss.native.js";
17
17
  events.setMaxListeners(1e3);
18
+ globalThis.__vxrnEnableNativeEnv = !0;
18
19
  function one() {
19
20
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
20
21
  _options_config;
@@ -102,6 +103,23 @@ function one() {
102
103
  }
103
104
  };
104
105
  }
106
+ }, {
107
+ name: "route-module-hmr-fix",
108
+ hotUpdate(param) {
109
+ var {
110
+ server,
111
+ modules
112
+ } = param;
113
+ return modules.map(function (m) {
114
+ var {
115
+ id
116
+ } = m;
117
+ if (!id) return m;
118
+ var relativePath = path.relative(server.config.root, id),
119
+ rootDir = relativePath.split(path.sep)[0];
120
+ return rootDir === "app" && (m.acceptedHmrExports = /* @__PURE__ */new Set()), m;
121
+ });
122
+ }
105
123
  }];
106
124
  return globalThis.__vxrnAddNativePlugins = [clientTreeShakePlugin()], globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins, [...devAndProdPlugins,
107
125
  /**