@vc-shell/mf-module 2.6.0-rc.1-pr363.c856ba2 → 2.6.0-rc.1-pr364.e5e5c4c
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,11 +1,10 @@
|
|
|
1
1
|
import type { Plugin } from "vite";
|
|
2
2
|
/**
|
|
3
|
-
* Strips CSS
|
|
4
|
-
*
|
|
5
|
-
* because the host app already provides all base styles, component CSS, and fonts.
|
|
3
|
+
* Strips CSS from shared dependencies and files outside the module root: the host app
|
|
4
|
+
* already provides base styles, component CSS and fonts.
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
* controls
|
|
6
|
+
* SHARED_DEP_NAMES is the single source of truth — the list that controls JS sharing also
|
|
7
|
+
* controls CSS exclusion.
|
|
9
8
|
*/
|
|
10
9
|
export declare function stripExternalStyles(): Plugin;
|
|
11
10
|
//# sourceMappingURL=strip-external-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strip-external-styles.d.ts","sourceRoot":"","sources":["../src/strip-external-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAMnC
|
|
1
|
+
{"version":3,"file":"strip-external-styles.d.ts","sourceRoot":"","sources":["../src/strip-external-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAMnC;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CA4C5C"}
|
|
@@ -3,12 +3,11 @@ import { cwd } from "node:process";
|
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { realpathSync } from "node:fs";
|
|
5
5
|
/**
|
|
6
|
-
* Strips CSS
|
|
7
|
-
*
|
|
8
|
-
* because the host app already provides all base styles, component CSS, and fonts.
|
|
6
|
+
* Strips CSS from shared dependencies and files outside the module root: the host app
|
|
7
|
+
* already provides base styles, component CSS and fonts.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
11
|
-
* controls
|
|
9
|
+
* SHARED_DEP_NAMES is the single source of truth — the list that controls JS sharing also
|
|
10
|
+
* controls CSS exclusion.
|
|
12
11
|
*/
|
|
13
12
|
export function stripExternalStyles() {
|
|
14
13
|
let normalizedRoot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strip-external-styles.js","sourceRoot":"","sources":["../src/strip-external-styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC
|
|
1
|
+
{"version":3,"file":"strip-external-styles.js","sourceRoot":"","sources":["../src/strip-external-styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB;IACjC,IAAI,cAAsB,CAAC;IAC3B,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,IAAI,GAAG,CAAC,CAAC;IAEnF,OAAO;QACL,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,KAAK;QACd,UAAU;YACR,4DAA4D;YAC5D,gEAAgE;YAChE,IAAI,CAAC;gBACH,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YAChD,CAAC;YAAC,MAAM,CAAC;gBACP,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;QACD,SAAS,CAAC,IAAI,EAAE,EAAE;YAChB,MAAM,WAAW,GAAG,8BAA8B,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACrF,IAAI,CAAC,WAAW;gBAAE,OAAO,IAAI,CAAC;YAE9B,qDAAqD;YACrD,IAAI,YAAoB,CAAC;YACzB,IAAI,CAAC;gBACH,yDAAyD;gBACzD,MAAM,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;gBAChC,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;YACtC,CAAC;YAAC,MAAM,CAAC;gBACP,YAAY,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAClC,CAAC;YAED,gDAAgD;YAChD,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC5D,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;YACjC,CAAC;YAED,oFAAoF;YACpF,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;gBAC7C,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;YACjC,CAAC;YAED,qDAAqD;YACrD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -29,16 +29,12 @@ export interface DynamicModuleOptions extends UserConfig {
|
|
|
29
29
|
*/
|
|
30
30
|
appId?: string;
|
|
31
31
|
/**
|
|
32
|
-
* Absolute path to the .NET module root (the folder
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* directly at the .NET module root.
|
|
32
|
+
* Absolute path to the .NET module root (the folder holding module.manifest). Combined
|
|
33
|
+
* with `appId` to compute outDir. Defaults to `process.cwd()`, correct when
|
|
34
|
+
* vite.config.ts sits at the module root.
|
|
36
35
|
*
|
|
37
|
-
*
|
|
36
|
+
* When vite.config.ts is in a subfolder:
|
|
38
37
|
* ```ts
|
|
39
|
-
* import { fileURLToPath } from "node:url";
|
|
40
|
-
* import path from "node:path";
|
|
41
|
-
* const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
42
38
|
* moduleRoot: path.resolve(__dirname, "..");
|
|
43
39
|
* ```
|
|
44
40
|
*/
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACtD;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACtD;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;;OAGG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/mf-module",
|
|
3
3
|
"description": "Module Federation build config for VC Shell remote modules",
|
|
4
|
-
"version": "2.6.0-rc.1-
|
|
4
|
+
"version": "2.6.0-rc.1-pr364.e5e5c4c",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@module-federation/vite": "^1.12.2",
|
|
24
|
-
"@vc-shell/mf-config": "2.6.0-rc.1-
|
|
24
|
+
"@vc-shell/mf-config": "2.6.0-rc.1-pr364.e5e5c4c"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@vc-shell/ts-config": "2.6.0-rc.1-
|
|
27
|
+
"@vc-shell/ts-config": "2.6.0-rc.1-pr364.e5e5c4c",
|
|
28
28
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
29
29
|
"tsc-alias": "^1.8.8",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"vue": "^3.5.30"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@vc-shell/config-generator": "^2.6.0-rc.1-
|
|
36
|
+
"@vc-shell/config-generator": "^2.6.0-rc.1-pr364.e5e5c4c",
|
|
37
37
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
38
38
|
"vite": "^5.0.0 || ^6.0.0"
|
|
39
39
|
},
|