@vc-shell/config-generator 2.0.0-alpha.7 → 2.0.0-alpha.9
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [2.0.0-alpha.9](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2026-03-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* topological build order, deprecation fixes, and dependency updates ([bf01eaf](https://github.com/VirtoCommerce/vc-shell/commit/bf01eaf7574eda5ae393941b553cbea5918a768f))
|
|
7
|
+
# [2.0.0-alpha.8](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2026-03-12)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **mf:** extract Module Federation loader into @vc-shell/mf-config and @vc-shell/mf-host ([9b079c2](https://github.com/VirtoCommerce/vc-shell/commit/9b079c27bc1497d89849b909f62c1403eff0c9b4))
|
|
1
13
|
# [2.0.0-alpha.7](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2026-03-11)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
requiredVersion?: string;
|
|
4
|
-
eager?: boolean;
|
|
5
|
-
import?: false | string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Canonical list of shared dependency names.
|
|
9
|
-
* This is the SINGLE SOURCE OF TRUTH — loader-mf.ts imports this
|
|
10
|
-
* to build its runtime shared config, ensuring build and runtime stay in sync.
|
|
11
|
-
*/
|
|
12
|
-
export declare const SHARED_DEP_NAMES: ReadonlyArray<"vue" | "vue-router" | "vue-i18n" | "vee-validate" | "lodash-es" | "@vueuse/core" | "@vc-shell/framework">;
|
|
13
|
-
/**
|
|
14
|
-
* Shared deps for HOST app — bundles all deps (provides them to remotes).
|
|
15
|
-
*/
|
|
16
|
-
export declare const DEFAULT_SHARED: Record<string, SharedDepConfig>;
|
|
17
|
-
/**
|
|
18
|
-
* Shared deps for REMOTE modules — `import: false` prevents bundling fallback chunks.
|
|
19
|
-
* The remote relies entirely on the host to provide these deps at runtime.
|
|
20
|
-
* This eliminates multi-MB fallback bundles (vue, framework, lodash, etc).
|
|
21
|
-
*/
|
|
22
|
-
export declare const REMOTE_SHARED: Record<string, SharedDepConfig>;
|
|
1
|
+
export { SHARED_DEP_NAMES, DEFAULT_SHARED, REMOTE_SHARED } from "@vc-shell/mf-config";
|
|
2
|
+
export type { SharedDepConfig } from "@vc-shell/mf-config";
|
|
23
3
|
//# sourceMappingURL=shared-deps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-deps.d.ts","sourceRoot":"","sources":["../../src/templates/shared-deps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared-deps.d.ts","sourceRoot":"","sources":["../../src/templates/shared-deps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtF,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Both host and remote use the same dep list with singleton negotiation.
|
|
4
|
-
*/
|
|
5
|
-
const SHARED_DEPS_BASE = {
|
|
6
|
-
vue: { singleton: true, requiredVersion: "^3.4.0" },
|
|
7
|
-
"vue-router": { singleton: true, requiredVersion: "^4.0.0" },
|
|
8
|
-
"vue-i18n": { singleton: true, requiredVersion: "^9.0.0" },
|
|
9
|
-
"vee-validate": { singleton: true },
|
|
10
|
-
"lodash-es": { singleton: true },
|
|
11
|
-
"@vueuse/core": { singleton: true },
|
|
12
|
-
"@vc-shell/framework": { singleton: true },
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Canonical list of shared dependency names.
|
|
16
|
-
* This is the SINGLE SOURCE OF TRUTH — loader-mf.ts imports this
|
|
17
|
-
* to build its runtime shared config, ensuring build and runtime stay in sync.
|
|
18
|
-
*/
|
|
19
|
-
export const SHARED_DEP_NAMES = Object.keys(SHARED_DEPS_BASE);
|
|
20
|
-
/**
|
|
21
|
-
* Shared deps for HOST app — bundles all deps (provides them to remotes).
|
|
22
|
-
*/
|
|
23
|
-
export const DEFAULT_SHARED = { ...SHARED_DEPS_BASE };
|
|
24
|
-
/**
|
|
25
|
-
* Shared deps for REMOTE modules — `import: false` prevents bundling fallback chunks.
|
|
26
|
-
* The remote relies entirely on the host to provide these deps at runtime.
|
|
27
|
-
* This eliminates multi-MB fallback bundles (vue, framework, lodash, etc).
|
|
28
|
-
*/
|
|
29
|
-
export const REMOTE_SHARED = Object.fromEntries(Object.entries(SHARED_DEPS_BASE).map(([key, config]) => [
|
|
30
|
-
key,
|
|
31
|
-
{ ...config, import: false },
|
|
32
|
-
]));
|
|
1
|
+
// Re-export from canonical source
|
|
2
|
+
export { SHARED_DEP_NAMES, DEFAULT_SHARED, REMOTE_SHARED } from "@vc-shell/mf-config";
|
|
33
3
|
//# sourceMappingURL=shared-deps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-deps.js","sourceRoot":"","sources":["../../src/templates/shared-deps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared-deps.js","sourceRoot":"","sources":["../../src/templates/shared-deps.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/config-generator",
|
|
3
3
|
"description": "Generate Vite configurations",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -9,20 +9,21 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsc && tsc-alias"
|
|
12
|
+
"build": "echo 'Building @vc-shell/config-generator...' && tsc -b --clean && tsc && tsc-alias && echo '@vc-shell/config-generator built.'"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@module-federation/dts-plugin": "2.0.1",
|
|
16
16
|
"@module-federation/vite": "^1.12.2",
|
|
17
|
+
"@vc-shell/mf-config": "2.0.0-alpha.9",
|
|
17
18
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
18
19
|
"vite": "^6.3.3",
|
|
19
20
|
"vite-plugin-checker": "^0.9.1",
|
|
20
21
|
"vite-plugin-circular-dependency": "^0.5.0",
|
|
21
22
|
"vite-plugin-mkcert": "^1.17.1",
|
|
22
|
-
"vue": "^3.5.
|
|
23
|
+
"vue": "^3.5.30"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@vc-shell/ts-config": "2.0.0-alpha.
|
|
26
|
+
"@vc-shell/ts-config": "2.0.0-alpha.9",
|
|
26
27
|
"http-proxy-middleware": "^3.0.2",
|
|
27
28
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
28
29
|
"tsc-alias": "^1.8.8",
|