@eggjs/tegg-loader 4.0.2-beta.1 → 4.0.2-beta.2

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.
@@ -30,6 +30,7 @@ var LoaderUtil = class LoaderUtil {
30
30
  ];
31
31
  }
32
32
  static async loadFile(filePath) {
33
+ const originalFilePath = filePath;
33
34
  if (process.platform === "win32") filePath = pathToFileURL(filePath).toString();
34
35
  let exports;
35
36
  try {
@@ -44,6 +45,7 @@ var LoaderUtil = class LoaderUtil {
44
45
  for (const exportName of exportNames) {
45
46
  const clazz = exports[exportName];
46
47
  if (!(isClass(clazz) && (PrototypeUtil.isEggPrototype(clazz) || PrototypeUtil.isEggMultiInstancePrototype(clazz)))) continue;
48
+ PrototypeUtil.setFilePath(clazz, originalFilePath);
47
49
  clazzList.push(clazz);
48
50
  }
49
51
  return clazzList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/tegg-loader",
3
- "version": "4.0.2-beta.1",
3
+ "version": "4.0.2-beta.2",
4
4
  "description": "tegg default loader implement",
5
5
  "keywords": [
6
6
  "egg",
@@ -36,9 +36,9 @@
36
36
  "dependencies": {
37
37
  "globby": "^11.0.2",
38
38
  "is-type-of": "^2.2.0",
39
- "@eggjs/core-decorator": "4.0.2-beta.1",
40
- "@eggjs/tegg-types": "4.0.2-beta.1",
41
- "@eggjs/metadata": "4.0.2-beta.1"
39
+ "@eggjs/metadata": "4.0.2-beta.2",
40
+ "@eggjs/core-decorator": "4.0.2-beta.2",
41
+ "@eggjs/tegg-types": "4.0.2-beta.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^24.10.2",