@esmx/core 3.0.0-rc.32 → 3.0.0-rc.34
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/README.md +1 -1
- package/dist/core.mjs +3 -4
- package/dist/module-config.d.ts +1 -1
- package/package.json +4 -4
- package/src/core.ts +6 -4
- package/src/module-config.ts +2 -2
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
- **Dependency Management** - Centralized dependency management with content-hash-based strong caching strategy
|
|
34
34
|
- **Application Isolation** - ESM native module isolation ensuring runtime stability
|
|
35
35
|
- **SSR Support** - Flexible server-side rendering strategy supporting any frontend framework
|
|
36
|
-
- **Developer Experience** - Complete TypeScript support with native
|
|
36
|
+
- **Developer Experience** - Complete TypeScript support with native Module Linking capabilities
|
|
37
37
|
|
|
38
38
|
## 📦 Installation
|
|
39
39
|
|
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
|
-
|
|
697
|
-
|
|
698
|
-
|
|
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/dist/module-config.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"build": "unbuild"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@esmx/import": "3.0.0-rc.
|
|
62
|
+
"@esmx/import": "3.0.0-rc.34",
|
|
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.
|
|
71
|
+
"@esmx/lint": "3.0.0-rc.34",
|
|
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.
|
|
82
|
+
"version": "3.0.0-rc.34",
|
|
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": "
|
|
105
|
+
"gitHead": "bdd13d12f341475f24531882f22e36d68e9130f9"
|
|
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
|
-
|
|
879
|
-
|
|
880
|
-
|
|
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;
|
package/src/module-config.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { BuildSsrTarget } from './core';
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ModuleConfig {
|
|
9
9
|
/**
|
|
10
|
-
* Module
|
|
10
|
+
* Module linking configuration.
|
|
11
11
|
* Key is remote module name, value is module build output directory path.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
@@ -207,7 +207,7 @@ const PREFIX = {
|
|
|
207
207
|
} as const;
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* Process and resolve module
|
|
210
|
+
* Process and resolve module linking configuration.
|
|
211
211
|
* Creates absolute paths for client/server directories and manifest files.
|
|
212
212
|
* Automatically includes the current module as a self-link.
|
|
213
213
|
*
|