one 1.1.275 → 1.1.277

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/cjs/cleanUrl.js +33 -0
  2. package/dist/cjs/cleanUrl.js.map +6 -0
  3. package/dist/cjs/cleanUrl.native.js +40 -0
  4. package/dist/cjs/cleanUrl.native.js.map +6 -0
  5. package/dist/cjs/router/router.js +7 -7
  6. package/dist/cjs/router/router.js.map +1 -1
  7. package/dist/cjs/router/router.native.js +8 -6
  8. package/dist/cjs/router/router.native.js.map +2 -2
  9. package/dist/cjs/views/PreloadLinks.js +5 -3
  10. package/dist/cjs/views/PreloadLinks.js.map +1 -1
  11. package/dist/cjs/vite/build.js +9 -8
  12. package/dist/cjs/vite/build.js.map +1 -1
  13. package/dist/cjs/vite/build.native.js +8 -4
  14. package/dist/cjs/vite/build.native.js.map +2 -2
  15. package/dist/esm/cleanUrl.js +18 -0
  16. package/dist/esm/cleanUrl.js.map +6 -0
  17. package/dist/esm/cleanUrl.mjs +15 -0
  18. package/dist/esm/cleanUrl.mjs.map +1 -0
  19. package/dist/esm/cleanUrl.native.js +15 -0
  20. package/dist/esm/cleanUrl.native.js.map +1 -0
  21. package/dist/esm/router/router.js +7 -6
  22. package/dist/esm/router/router.js.map +1 -1
  23. package/dist/esm/router/router.mjs +4 -5
  24. package/dist/esm/router/router.mjs.map +1 -1
  25. package/dist/esm/router/router.native.js +6 -5
  26. package/dist/esm/router/router.native.js.map +1 -1
  27. package/dist/esm/views/PreloadLinks.js +4 -2
  28. package/dist/esm/views/PreloadLinks.js.map +1 -1
  29. package/dist/esm/views/PreloadLinks.mjs +4 -2
  30. package/dist/esm/views/PreloadLinks.mjs.map +1 -1
  31. package/dist/esm/vite/build.js +9 -7
  32. package/dist/esm/vite/build.js.map +1 -1
  33. package/dist/esm/vite/build.mjs +7 -3
  34. package/dist/esm/vite/build.mjs.map +1 -1
  35. package/dist/esm/vite/build.native.js +9 -3
  36. package/dist/esm/vite/build.native.js.map +1 -1
  37. package/package.json +5 -5
  38. package/src/cleanUrl.ts +22 -0
  39. package/src/router/router.ts +11 -10
  40. package/src/views/PreloadLinks.tsx +19 -13
  41. package/src/vite/build.ts +11 -9
  42. package/src/vite/types.ts +1 -0
  43. package/types/cleanUrl.d.ts +4 -0
  44. package/types/cleanUrl.d.ts.map +1 -0
  45. package/types/router/router.d.ts.map +1 -1
  46. package/types/views/PreloadLinks.d.ts.map +1 -1
  47. package/types/vite/build.d.ts.map +1 -1
  48. package/types/vite/types.d.ts +1 -0
  49. package/types/vite/types.d.ts.map +1 -1
@@ -8,6 +8,7 @@ import { fillOptions, getOptimizeDeps, build as vxrnBuild } from "vxrn";
8
8
  import { getManifest } from "./getManifest.native.js";
9
9
  import { loadUserOneOptions } from "./one.native.js";
10
10
  import { replaceLoader } from "./replaceLoader.native.js";
11
+ import { cleanUrl, getPreloadPath } from "../cleanUrl.native.js";
11
12
  var {
12
13
  ensureDir,
13
14
  readFile,
@@ -277,10 +278,15 @@ async function build(args) {
277
278
  loaderData = {};
278
279
  try {
279
280
  console.info(` \u21A6 route ${path}`);
280
- var cleanPath = path === "/" ? path : removeTrailingSlash(path);
281
- if (builtRoutes.push({
281
+ var cleanPath = path === "/" ? path : removeTrailingSlash(path),
282
+ preloadPath = getPreloadPath(path);
283
+ if (await FSExtra.writeFile(join(clientDir, preloadPath), preloads.map(function (preload) {
284
+ return `import "${preload}"`;
285
+ }).join(`
286
+ `)), builtRoutes.push({
282
287
  type: foundRoute.type,
283
288
  cleanPath,
289
+ preloadPath,
284
290
  clientJsPath,
285
291
  serverJsPath,
286
292
  htmlPath,
@@ -306,7 +312,7 @@ async function build(args) {
306
312
  code,
307
313
  loaderData
308
314
  }),
309
- loaderPartialPath = join(staticDir, "assets", path.slice(1).replaceAll("/", "_").replace(/_$/, "") + "_vxrn_loader.js");
315
+ loaderPartialPath = join(staticDir, "assets", cleanUrl(path.slice(1)));
310
316
  await outputFile(loaderPartialPath, withLoader);
311
317
  }
312
318
  if (foundRoute.type === "ssg") {
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","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,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IACZC,SAAA;EAEA;EACE,IAAAC,QAAO,GAAOzH,WAAQ,CAAA9C,MAAA,WAAAwK,GAAuB,EAAAjL,KAAM;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":[]}
1
+ {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","cleanUrl","getPreloadPath","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","_userOptions_build_api","_userOptions_build1","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","filter","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAG3F,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAE9B,SAASC,QAAA,EAAUC,cAAA,QAAsB;AAEzC;EAAMC,SAAE;EAAAC,QAAW;EAAAC;AAAU,IAAWpB,OAAI;AAE5CqB,OAAA,CAAQC,EAAA,CAAG,qBAAqB,UAASC,GAAA;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,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,CAAAgC,MAAA;UAAA;YAEc,IAAAlC,kBACA,QAAAC,eACA;UAAQ;QAAA;MAGlC,GAAAkC,SAAK,GAAU1G,aAAQ,CAAM0E,MAAE,CAAAC,QAAA,KAAApE,KAAA,IAAAL,yBAAA,IAAAK,KAAA,GAAAmG,SAAA,CAAA7B,IAAA,IAAAC,IAAA,GAAA5E,yBAAA,aAAAG,KAAA;EAAA,SAAAhH,GACrB;IAGF8G,iBAAO,GAAM,IAAKC,cAAa,GAAI/G,GAAA;EAAe,UACpD;IACA;MACF,CAAA6G,yBAAA,IAAAwG,SAAA,CAAAD,MAAA,YAAAC,SAAA,CAAAD,MAAA;IACA,UAAO;MACR,IACAtG,iBAAS,EACX,MAAAC,cAAA;IAEH;EACF;EAEA,MAAAuG,YAAS,CAAY7G,SAAgB,EAAAC,SAAA,SAAAjI,OAAA,CAAA8O,EAAA,CAAA9G,SAAA;IACnC+G,KAAO;IACTC,SAAA;EAEA;EAME,IAAAC,QAAM,GAAA1H,WAAe,CAAA9C,MAAA,WAJCyK,GAAK,EAAAlL,KAAK;MAKhC;QAAO0J,SAAI;QAAOL;MAAA,IAAYrJ,KAAA;MAChC,OAAAkL,GAAA,CAAAxB,SAAA,IAAAL,QAAA,EAAA6B,GAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.275",
3
+ "version": "1.1.277",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "sideEffects": false,
@@ -89,12 +89,12 @@
89
89
  "@react-navigation/native-stack": "~6.9.13",
90
90
  "@react-navigation/routers": "~6.1.9",
91
91
  "@ungap/structured-clone": "^1.2.0",
92
- "@vxrn/universal-color-scheme": "1.1.275",
93
- "@vxrn/use-isomorphic-layout-effect": "1.1.275",
92
+ "@vxrn/universal-color-scheme": "1.1.277",
93
+ "@vxrn/use-isomorphic-layout-effect": "1.1.277",
94
94
  "babel-dead-code-elimination": "^1.0.6",
95
95
  "citty": "^0.1.6",
96
96
  "core-js": "^3.38.1",
97
- "create-vxrn": "1.1.275",
97
+ "create-vxrn": "1.1.277",
98
98
  "dotenv": "^16.4.5",
99
99
  "escape-string-regexp": "^5.0.0",
100
100
  "expo-linking": "~6.3.1",
@@ -116,7 +116,7 @@
116
116
  "url-parse": "^1.5.10",
117
117
  "vite": "6.0.0-beta.1",
118
118
  "vite-tsconfig-paths": "^5.0.1",
119
- "vxrn": "1.1.275",
119
+ "vxrn": "1.1.277",
120
120
  "ws": "^8.18.0",
121
121
  "xxhashjs": "^0.2.2"
122
122
  },
@@ -0,0 +1,22 @@
1
+ import { CACHE_KEY, CLIENT_BASE_URL } from './router/constants'
2
+ import { removeSearch } from './utils/removeSearch'
3
+
4
+ export function cleanUrl(path: string) {
5
+ return (
6
+ removeSearch(path)
7
+ .replaceAll('/', '_')
8
+ // remove trailing _
9
+ .replace(/_$/, '')
10
+ )
11
+ }
12
+
13
+ const clientSideCacheKey = typeof window !== 'undefined' ? `?${CACHE_KEY}` : ''
14
+ const clientSideURL = typeof window !== 'undefined' ? CLIENT_BASE_URL : ''
15
+
16
+ export function getPreloadPath(currentPath: string) {
17
+ return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideCacheKey}`
18
+ }
19
+
20
+ export function getLoaderPath(currentPath: string) {
21
+ return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideCacheKey}`
22
+ }
@@ -28,6 +28,7 @@ import type { One } from '../vite/types'
28
28
  import { CACHE_KEY, CLIENT_BASE_URL } from './constants'
29
29
  import { getNormalizedStatePath, type UrlObject } from './getNormalizedStatePath'
30
30
  import { setLastAction } from './lastAction'
31
+ import { getLoaderPath, getPreloadPath } from '../cleanUrl'
31
32
 
32
33
  // Module-scoped variables
33
34
  export let routeNode: RouteNode | null = null
@@ -393,12 +394,14 @@ export const preloadingLoader = {}
393
394
  function setupPreload(href: string) {
394
395
  if (preloadingLoader[href]) return
395
396
  preloadingLoader[href] = async () => {
396
- const loaderJSUrl = `${CLIENT_BASE_URL}/assets/${removeSearch(
397
- href.slice(1).replaceAll('/', '_')
398
- )}_vxrn_loader.js?${CACHE_KEY}`
399
- const response = await dynamicImport(loaderJSUrl)
397
+ const [_preload, loader] = await Promise.all([
398
+ dynamicImport(getPreloadPath(href)),
399
+ dynamicImport(getLoaderPath(href)),
400
+ ])
401
+
400
402
  try {
401
- return await response.loader()
403
+ const response = await loader
404
+ return await response.loader?.()
402
405
  } catch (err) {
403
406
  console.error(`Error preloading loader: ${err}`)
404
407
  return null
@@ -407,11 +410,9 @@ function setupPreload(href: string) {
407
410
  }
408
411
 
409
412
  export function preloadRoute(href: string) {
410
- if (import.meta.env.PROD) {
411
- setupPreload(href)
412
- if (typeof preloadingLoader[href] === 'function') {
413
- void preloadingLoader[href]()
414
- }
413
+ setupPreload(href)
414
+ if (typeof preloadingLoader[href] === 'function') {
415
+ void preloadingLoader[href]()
415
416
  }
416
417
  }
417
418
 
@@ -1,20 +1,26 @@
1
1
  import { useEffect } from 'react'
2
2
  import { preloadRoute } from '../router/router'
3
+ import { getURL } from '../getURL'
3
4
 
4
5
  export function PreloadLinks() {
5
- useEffect(() => {
6
- document.addEventListener('mouseover', (e) => {
7
- let target = e.target
8
- if (!(target instanceof HTMLElement)) return
9
- target = target instanceof HTMLAnchorElement ? target : target.parentElement
10
- if (!(target instanceof HTMLAnchorElement)) return
11
- const href = target.getAttribute('href')
12
- if (href?.[0] === '/') {
13
- // local route
14
- preloadRoute(href)
15
- }
16
- })
17
- }, [])
6
+ // only in prod because we don't generate them until build
7
+ // @ts-ignore
8
+ if (import.meta.env.PROD) {
9
+ useEffect(() => {
10
+ const url = getURL()
11
+ document.addEventListener('mouseover', (e) => {
12
+ let target = e.target
13
+ if (!(target instanceof HTMLElement)) return
14
+ target = target instanceof HTMLAnchorElement ? target : target.parentElement
15
+ if (!(target instanceof HTMLAnchorElement)) return
16
+ const href = target.getAttribute('href')
17
+ if (href?.[0] === '/' || href?.[0].startsWith(url)) {
18
+ // local route
19
+ preloadRoute(href.replace(url, ''))
20
+ }
21
+ })
22
+ }, [])
23
+ }
18
24
 
19
25
  return null
20
26
  }
package/src/vite/build.ts CHANGED
@@ -12,6 +12,7 @@ import { getManifest } from './getManifest'
12
12
  import { loadUserOneOptions } from './one'
13
13
  import { replaceLoader } from './replaceLoader'
14
14
  import type { One } from './types'
15
+ import { cleanUrl, getPreloadPath } from '../cleanUrl'
15
16
 
16
17
  const { ensureDir, readFile, outputFile } = FSExtra
17
18
 
@@ -399,9 +400,18 @@ export async function build(args: {
399
400
 
400
401
  const cleanPath = path === '/' ? path : removeTrailingSlash(path)
401
402
 
403
+ const preloadPath = getPreloadPath(path)
404
+
405
+ // todo await optimize
406
+ await FSExtra.writeFile(
407
+ join(clientDir, preloadPath),
408
+ preloads.map((preload) => `import "${preload}"`).join('\n')
409
+ )
410
+
402
411
  builtRoutes.push({
403
412
  type: foundRoute.type,
404
413
  cleanPath,
414
+ preloadPath,
405
415
  clientJsPath,
406
416
  serverJsPath,
407
417
  htmlPath,
@@ -425,15 +435,7 @@ export async function build(args: {
425
435
  code,
426
436
  loaderData,
427
437
  })
428
- const loaderPartialPath = join(
429
- staticDir,
430
- 'assets',
431
- path
432
- .slice(1)
433
- .replaceAll('/', '_')
434
- // remove trailing _
435
- .replace(/_$/, '') + `_vxrn_loader.js`
436
- )
438
+ const loaderPartialPath = join(staticDir, 'assets', cleanUrl(path.slice(1)))
437
439
  await outputFile(loaderPartialPath, withLoader)
438
440
  }
439
441
 
package/src/vite/types.ts CHANGED
@@ -149,6 +149,7 @@ export namespace One {
149
149
  export type RouteBuildInfo = {
150
150
  type: RouteType
151
151
  path: string
152
+ preloadPath: string
152
153
  cleanPath: string
153
154
  htmlPath: string
154
155
  clientJsPath: string
@@ -0,0 +1,4 @@
1
+ export declare function cleanUrl(path: string): string;
2
+ export declare function getPreloadPath(currentPath: string): string;
3
+ export declare function getLoaderPath(currentPath: string): string;
4
+ //# sourceMappingURL=cleanUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cleanUrl.d.ts","sourceRoot":"","sources":["../src/cleanUrl.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,UAOpC;AAKD,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAEjD;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/router/router.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iCAAiC,EAEvC,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAmD,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAE3F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAIzC,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAUrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAExC,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAIjF,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,IAAW,CAAA;AAC7C,eAAO,IAAI,aAAa,EAAE,aAAa,CAAA;AACvC,eAAO,IAAI,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAA;AAElD,eAAO,IAAI,wBAAwB,SAAQ,CAAA;AAC3C,eAAO,IAAI,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAA;AAC1D,eAAO,IAAI,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAA;AAGvD,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;AAI3C,eAAO,IAAI,aAAa,EAAE,SAAS,CAAC,aAA2B,CAAA;AAQ/D,wBA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SAAS,CAAC,oBAAoB,cAKjF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,YAAY,QAI5D;AAUD,wBAAgB,QAAQ;;;;;;;;;;;;qCArPa,IAAI;;gCAIF,IAAI;EAmP1C;AAqBD,wBAAgB,iBAAiB,0BAEhC;AAED,wBAAgB,iBAAiB,cAEhC;AAGD,wBAAgB,YAAY;;;;;;;;;;;;qCArRS,IAAI;;gCAIF,IAAI;EAmR1C;AAcD,wBAAgB,iBAAiB,0BAGhC;AAED,wBAAgB,iBAAiB,cAGhC;AAoCD,wBAAgB,OAAO,SAItB;AAGD,eAAO,MAAM,gBAAgB,IAAK,CAAA;AAoBlC,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,QAKxC;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,aAAa,iBAwG3F"}
@@ -1 +1 @@
1
- {"version":3,"file":"PreloadLinks.d.ts","sourceRoot":"","sources":["../../src/views/PreloadLinks.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,SAgB3B"}
1
+ {"version":3,"file":"PreloadLinks.d.ts","sourceRoot":"","sources":["../../src/views/PreloadLinks.tsx"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,SAqB3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/vite/build.ts"],"names":[],"mappings":"AAqBA,wBAAsB,KAAK,CAAC,IAAI,EAAE;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,iBA6fA"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/vite/build.ts"],"names":[],"mappings":"AAsBA,wBAAsB,KAAK,CAAC,IAAI,EAAE;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,iBA8fA"}
@@ -120,6 +120,7 @@ export declare namespace One {
120
120
  type RouteBuildInfo = {
121
121
  type: RouteType;
122
122
  path: string;
123
+ preloadPath: string;
123
124
  cleanPath: string;
124
125
  htmlPath: string;
125
126
  clientJsPath: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/vite/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,eAAe,IAAI,mBAAmB,EACtC,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EAClB,MAAM,MAAM,CAAA;AAEb,yBAAiB,GAAG,CAAC;IACnB,KAAY,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,aAAa,CAAC,GAAG,aAAa,CAAA;IAE5E,KAAY,eAAe,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;IAEnD,KAAY,SAAS,GAAG,eAAe,GAAG,KAAK,GAAG,QAAQ,CAAA;IAE1D,KAAY,YAAY,GAAG;QACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;KAC7C,CAAA;IAED,KAAY,eAAe,GAAG;QAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAA;KACpD,CAAA;IAED,KAAY,aAAa,GAAG;QAC1B;;;;;WAKG;QACH,IAAI,CAAC,EAAE,OAAO,CAAA;QAEd;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,CAAA;QAElB,MAAM,CAAC,EAAE;YACP,cAAc,CAAC,EAAE,KAAK,CAAA;YAEtB;;;;;;;;eAQG;YACH,aAAa,CAAC,EAAE,OAAO,GAAG,qBAAqB,CAAA;SAChD,CAAA;QAED,GAAG,CAAC,EAAE;YACJ;;;eAGG;YACH,GAAG,CAAC,EAAE,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