@tanstack/router-generator 1.58.1 → 1.58.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const api = require("tsx/esm/api");
4
- var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
5
4
  async function loadConfigFile(filePath) {
6
- const loaded = await api.tsImport(filePath, typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("cjs/filesystem/virtual/loadConfigFile.cjs", document.baseURI).href);
5
+ const loaded = await api.tsImport(filePath, "./");
7
6
  return loaded;
8
7
  }
9
8
  exports.loadConfigFile = loadConfigFile;
@@ -1 +1 @@
1
- {"version":3,"file":"loadConfigFile.cjs","sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { tsImport } from 'tsx/esm/api'\n\nexport async function loadConfigFile(filePath: string) {\n const loaded = await tsImport(filePath, import.meta.url)\n return loaded\n}\n"],"names":["tsImport"],"mappings":";;;;AAEA,eAAsB,eAAe,UAAkB;AACrD,QAAM,SAAS,MAAMA,IAAAA,SAAS,UAAyB,OAAA,aAAA,cAAA,QAAA,KAAA,EAAA,cAAA,UAAA,EAAA,OAAA,0BAAA,uBAAA,OAAA,IAAA,IAAA,6CAAA,SAAA,OAAA,EAAA,IAAA;AAChD,SAAA;AACT;;"}
1
+ {"version":3,"file":"loadConfigFile.cjs","sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { tsImport } from 'tsx/esm/api'\n\nexport async function loadConfigFile(filePath: string) {\n const loaded = await tsImport(filePath, './')\n return loaded\n}\n"],"names":["tsImport"],"mappings":";;;AAEA,eAAsB,eAAe,UAAkB;AACrD,QAAM,SAAS,MAAMA,IAAAA,SAAS,UAAU,IAAI;AACrC,SAAA;AACT;;"}
@@ -1,6 +1,6 @@
1
1
  import { tsImport } from "tsx/esm/api";
2
2
  async function loadConfigFile(filePath) {
3
- const loaded = await tsImport(filePath, import.meta.url);
3
+ const loaded = await tsImport(filePath, "./");
4
4
  return loaded;
5
5
  }
6
6
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"loadConfigFile.js","sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { tsImport } from 'tsx/esm/api'\n\nexport async function loadConfigFile(filePath: string) {\n const loaded = await tsImport(filePath, import.meta.url)\n return loaded\n}\n"],"names":[],"mappings":";AAEA,eAAsB,eAAe,UAAkB;AACrD,QAAM,SAAS,MAAM,SAAS,UAAU,YAAY,GAAG;AAChD,SAAA;AACT;"}
1
+ {"version":3,"file":"loadConfigFile.js","sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { tsImport } from 'tsx/esm/api'\n\nexport async function loadConfigFile(filePath: string) {\n const loaded = await tsImport(filePath, './')\n return loaded\n}\n"],"names":[],"mappings":";AAEA,eAAsB,eAAe,UAAkB;AACrD,QAAM,SAAS,MAAM,SAAS,UAAU,IAAI;AACrC,SAAA;AACT;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-generator",
3
- "version": "1.58.1",
3
+ "version": "1.58.12",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  import { tsImport } from 'tsx/esm/api'
2
2
 
3
3
  export async function loadConfigFile(filePath: string) {
4
- const loaded = await tsImport(filePath, import.meta.url)
4
+ const loaded = await tsImport(filePath, './')
5
5
  return loaded
6
6
  }