@esmx/core 3.0.0-rc.32 → 3.0.0-rc.33

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.
package/dist/core.mjs CHANGED
@@ -693,10 +693,9 @@ export class Esmx {
693
693
  return path.join(realPath, "/");
694
694
  },
695
695
  getFile: (name, file) => {
696
- return path.resolve(
697
- moduleConfig.links[name].server,
698
- file
699
- );
696
+ const linkPath = moduleConfig.links[name].server;
697
+ const realPath = fs.realpathSync(linkPath);
698
+ return path.resolve(realPath, file);
700
699
  }
701
700
  });
702
701
  break;
package/package.json CHANGED
@@ -59,7 +59,7 @@
59
59
  "build": "unbuild"
60
60
  },
61
61
  "dependencies": {
62
- "@esmx/import": "3.0.0-rc.32",
62
+ "@esmx/import": "3.0.0-rc.33",
63
63
  "@types/serialize-javascript": "^5.0.4",
64
64
  "es-module-lexer": "^1.7.0",
65
65
  "find": "^0.3.0",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@biomejs/biome": "1.9.4",
71
- "@esmx/lint": "3.0.0-rc.32",
71
+ "@esmx/lint": "3.0.0-rc.33",
72
72
  "@types/find": "^0.2.4",
73
73
  "@types/node": "^24.0.0",
74
74
  "@types/send": "^0.17.4",
@@ -79,7 +79,7 @@
79
79
  "unbuild": "3.5.0",
80
80
  "vitest": "3.2.4"
81
81
  },
82
- "version": "3.0.0-rc.32",
82
+ "version": "3.0.0-rc.33",
83
83
  "type": "module",
84
84
  "private": false,
85
85
  "exports": {
@@ -102,5 +102,5 @@
102
102
  "template",
103
103
  "public"
104
104
  ],
105
- "gitHead": "8f7c52dde97c2cf74a783e578328cc72bde78c3b"
105
+ "gitHead": "b38d6e27a1e1df3e4a11474e91e5838ddf26a3c4"
106
106
  }
package/src/core.ts CHANGED
@@ -875,10 +875,12 @@ export class Esmx {
875
875
  return path.join(realPath, '/');
876
876
  },
877
877
  getFile: (name: string, file: string) => {
878
- return path.resolve(
879
- moduleConfig.links[name].server,
880
- file
881
- );
878
+ const linkPath = moduleConfig.links[name].server;
879
+ // Get the real physical path instead of symbolic link
880
+ // This is crucial to maintain consistency with getScope function
881
+ // and ensure proper module resolution at runtime
882
+ const realPath = fs.realpathSync(linkPath);
883
+ return path.resolve(realPath, file);
882
884
  }
883
885
  });
884
886
  break;