@module-federation/sdk 0.0.0-perf-devtools-20260108034446 → 0.0.0-perf-website-code-usage-20260914033703

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.
Files changed (125) hide show
  1. package/README.md +9 -3
  2. package/dist/_virtual/_rolldown/runtime.cjs +19 -0
  3. package/dist/_virtual/_rolldown/runtime.js +18 -0
  4. package/dist/constant.cjs +62 -0
  5. package/dist/constant.cjs.map +1 -0
  6. package/dist/constant.d.ts +46 -0
  7. package/dist/constant.js +48 -0
  8. package/dist/constant.js.map +1 -0
  9. package/dist/createModuleFederationConfig.cjs +9 -0
  10. package/dist/createModuleFederationConfig.cjs.map +1 -0
  11. package/dist/createModuleFederationConfig.d.ts +6 -0
  12. package/dist/createModuleFederationConfig.js +8 -0
  13. package/dist/createModuleFederationConfig.js.map +1 -0
  14. package/dist/dom.cjs +214 -0
  15. package/dist/dom.cjs.map +1 -0
  16. package/dist/dom.d.ts +33 -0
  17. package/dist/dom.js +210 -0
  18. package/dist/dom.js.map +1 -0
  19. package/dist/env.cjs +34 -0
  20. package/dist/env.cjs.map +1 -0
  21. package/dist/env.d.ts +12 -0
  22. package/dist/env.js +30 -0
  23. package/dist/env.js.map +1 -0
  24. package/dist/generateSnapshotFromManifest.cjs +123 -0
  25. package/dist/generateSnapshotFromManifest.cjs.map +1 -0
  26. package/dist/generateSnapshotFromManifest.d.ts +20 -0
  27. package/dist/generateSnapshotFromManifest.js +119 -0
  28. package/dist/generateSnapshotFromManifest.js.map +1 -0
  29. package/dist/index.cjs +103 -0
  30. package/dist/index.d.ts +21 -1
  31. package/dist/index.js +17 -0
  32. package/dist/logger.cjs +129 -0
  33. package/dist/logger.cjs.map +1 -0
  34. package/dist/logger.d.ts +34 -0
  35. package/dist/logger.js +125 -0
  36. package/dist/logger.js.map +1 -0
  37. package/dist/node.cjs +180 -0
  38. package/dist/node.cjs.map +1 -0
  39. package/dist/node.d.ts +15 -0
  40. package/dist/node.js +178 -0
  41. package/dist/node.js.map +1 -0
  42. package/dist/normalize-webpack-path.cjs +28 -0
  43. package/dist/normalize-webpack-path.cjs.map +1 -0
  44. package/dist/normalize-webpack-path.d.ts +10 -1
  45. package/dist/normalize-webpack-path.js +26 -0
  46. package/dist/normalize-webpack-path.js.map +1 -0
  47. package/dist/normalizeOptions.cjs +19 -0
  48. package/dist/normalizeOptions.cjs.map +1 -0
  49. package/dist/normalizeOptions.d.ts +5 -0
  50. package/dist/normalizeOptions.js +18 -0
  51. package/dist/normalizeOptions.js.map +1 -0
  52. package/dist/types/common.d.ts +14 -0
  53. package/dist/types/hooks.d.ts +21 -0
  54. package/dist/types/index.d.ts +11 -0
  55. package/dist/types/manifest.d.ts +34 -0
  56. package/dist/types/plugins/ConsumeSharedPlugin.cjs +13 -0
  57. package/dist/types/plugins/ConsumeSharedPlugin.cjs.map +1 -0
  58. package/dist/types/plugins/ConsumeSharedPlugin.d.ts +109 -0
  59. package/dist/types/plugins/ConsumeSharedPlugin.js +8 -0
  60. package/dist/types/plugins/ConsumeSharedPlugin.js.map +1 -0
  61. package/dist/types/plugins/ContainerPlugin.cjs +13 -0
  62. package/dist/types/plugins/ContainerPlugin.cjs.map +1 -0
  63. package/dist/types/plugins/ContainerPlugin.d.ts +38 -0
  64. package/dist/types/plugins/ContainerPlugin.js +8 -0
  65. package/dist/types/plugins/ContainerPlugin.js.map +1 -0
  66. package/dist/types/plugins/ContainerReferencePlugin.cjs +13 -0
  67. package/dist/types/plugins/ContainerReferencePlugin.cjs.map +1 -0
  68. package/dist/types/plugins/ContainerReferencePlugin.d.ts +24 -0
  69. package/dist/types/plugins/ContainerReferencePlugin.js +8 -0
  70. package/dist/types/plugins/ContainerReferencePlugin.js.map +1 -0
  71. package/dist/types/plugins/ModuleFederationPlugin.cjs +13 -0
  72. package/dist/types/plugins/ModuleFederationPlugin.cjs.map +1 -0
  73. package/dist/types/plugins/ModuleFederationPlugin.d.ts +470 -0
  74. package/dist/types/plugins/ModuleFederationPlugin.js +8 -0
  75. package/dist/types/plugins/ModuleFederationPlugin.js.map +1 -0
  76. package/dist/types/plugins/ProvideSharedPlugin.cjs +13 -0
  77. package/dist/types/plugins/ProvideSharedPlugin.cjs.map +1 -0
  78. package/dist/types/plugins/ProvideSharedPlugin.d.ts +97 -0
  79. package/dist/types/plugins/ProvideSharedPlugin.js +8 -0
  80. package/dist/types/plugins/ProvideSharedPlugin.js.map +1 -0
  81. package/dist/types/plugins/SharePlugin.cjs +13 -0
  82. package/dist/types/plugins/SharePlugin.cjs.map +1 -0
  83. package/dist/types/plugins/SharePlugin.d.ts +26 -0
  84. package/dist/types/plugins/SharePlugin.js +8 -0
  85. package/dist/types/plugins/SharePlugin.js.map +1 -0
  86. package/dist/types/plugins/index.d.ts +6 -0
  87. package/dist/types/snapshot.d.ts +78 -0
  88. package/dist/types/stats.d.ts +101 -0
  89. package/dist/utils.cjs +127 -0
  90. package/dist/utils.cjs.map +1 -0
  91. package/dist/{src/utils.d.ts → utils.d.ts} +15 -4
  92. package/dist/utils.js +116 -0
  93. package/dist/utils.js.map +1 -0
  94. package/package.json +21 -7
  95. package/dist/index.cjs.cjs +0 -1048
  96. package/dist/index.cjs.cjs.map +0 -1
  97. package/dist/index.cjs.d.ts +0 -1
  98. package/dist/index.esm.js +0 -994
  99. package/dist/index.esm.js.map +0 -1
  100. package/dist/normalize-webpack-path.cjs.cjs +0 -42
  101. package/dist/normalize-webpack-path.cjs.cjs.map +0 -1
  102. package/dist/normalize-webpack-path.cjs.d.ts +0 -1
  103. package/dist/normalize-webpack-path.esm.js +0 -39
  104. package/dist/normalize-webpack-path.esm.js.map +0 -1
  105. package/dist/src/constant.d.ts +0 -35
  106. package/dist/src/createModuleFederationConfig.d.ts +0 -2
  107. package/dist/src/dom.d.ts +0 -29
  108. package/dist/src/env.d.ts +0 -8
  109. package/dist/src/generateSnapshotFromManifest.d.ts +0 -15
  110. package/dist/src/index.d.ts +0 -11
  111. package/dist/src/logger.d.ts +0 -32
  112. package/dist/src/node.d.ts +0 -11
  113. package/dist/src/normalize-webpack-path.d.ts +0 -5
  114. package/dist/src/normalizeOptions.d.ts +0 -1
  115. package/dist/src/types/common.d.ts +0 -10
  116. package/dist/src/types/hooks.d.ts +0 -12
  117. package/dist/src/types/index.d.ts +0 -6
  118. package/dist/src/types/manifest.d.ts +0 -26
  119. package/dist/src/types/plugins/ContainerPlugin.d.ts +0 -164
  120. package/dist/src/types/plugins/ContainerReferencePlugin.d.ts +0 -52
  121. package/dist/src/types/plugins/ModuleFederationPlugin.d.ts +0 -409
  122. package/dist/src/types/plugins/SharePlugin.d.ts +0 -78
  123. package/dist/src/types/plugins/index.d.ts +0 -4
  124. package/dist/src/types/snapshot.d.ts +0 -70
  125. package/dist/src/types/stats.d.ts +0 -90
@@ -0,0 +1,109 @@
1
+ declare namespace ConsumeSharedPlugin_d_exports {
2
+ export { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject, IncludeExcludeOptions };
3
+ }
4
+ /**
5
+ * A module that should be consumed from share scope.
6
+ */
7
+ type ConsumesItem = string;
8
+ /**
9
+ * Advanced configuration for modules that should be consumed from share scope.
10
+ */
11
+ interface ConsumesConfig {
12
+ /**
13
+ * Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.
14
+ */
15
+ eager?: boolean;
16
+ /**
17
+ * Fallback module if no shared module is found in share scope. Defaults to the property name.
18
+ */
19
+ import?: false | ConsumesItem;
20
+ /**
21
+ * Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.
22
+ */
23
+ packageName?: string;
24
+ /**
25
+ * Version requirement from module in share scope.
26
+ */
27
+ requiredVersion?: false | string;
28
+ /**
29
+ * Module is looked up under this key from the share scope.
30
+ */
31
+ shareKey?: string;
32
+ /**
33
+ * Share scope name.
34
+ */
35
+ shareScope?: string | string[];
36
+ /**
37
+ * Layer in which the shared module should be placed.
38
+ */
39
+ layer?: string;
40
+ /**
41
+ * Layer of the issuer.
42
+ */
43
+ issuerLayer?: string;
44
+ /**
45
+ * Import request to match on
46
+ */
47
+ request?: string;
48
+ /**
49
+ * Allow only a single version of the shared module in share scope (disabled by default).
50
+ */
51
+ singleton?: boolean;
52
+ /**
53
+ * Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).
54
+ */
55
+ strictVersion?: boolean;
56
+ /**
57
+ * Filter consumed modules based on the request path.
58
+ */
59
+ exclude?: IncludeExcludeOptions;
60
+ /**
61
+ * Filter consumed modules based on the request path (only include matches).
62
+ */
63
+ include?: IncludeExcludeOptions;
64
+ /**
65
+ * Enable reconstructed lookup for node_modules paths for this share item
66
+ */
67
+ allowNodeModulesSuffixMatch?: boolean;
68
+ /**
69
+ * Tree shaking mode for the shared module.
70
+ */
71
+ treeShakingMode?: 'server-calc' | 'runtime-infer';
72
+ }
73
+ /**
74
+ * Modules that should be consumed from share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.
75
+ */
76
+ interface ConsumesObject {
77
+ [k: string]: ConsumesConfig | ConsumesItem;
78
+ }
79
+ /**
80
+ * Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.
81
+ */
82
+ type Consumes = (ConsumesItem | ConsumesObject)[] | ConsumesObject;
83
+ interface IncludeExcludeOptions {
84
+ request?: string | RegExp;
85
+ /**
86
+ * Semantic versioning range to match against the module's version.
87
+ */
88
+ version?: string;
89
+ /**
90
+ * Optional specific version string to check against the version range instead of reading package.json.
91
+ */
92
+ fallbackVersion?: string;
93
+ }
94
+ interface ConsumeSharedPluginOptions {
95
+ consumes: Consumes;
96
+ /**
97
+ * Share scope name used for all consumed modules (defaults to 'default').
98
+ */
99
+ shareScope?: string | string[];
100
+ /**
101
+ * Experimental features configuration
102
+ */
103
+ experiments?: {
104
+ /** Enable reconstructed lookup for node_modules paths */allowNodeModulesSuffixMatch?: boolean;
105
+ };
106
+ }
107
+ //#endregion
108
+ export { ConsumeSharedPlugin_d_exports, IncludeExcludeOptions };
109
+ //# sourceMappingURL=ConsumeSharedPlugin.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
2
+
3
+ //#region src/types/plugins/ConsumeSharedPlugin.ts
4
+ var ConsumeSharedPlugin_exports = /* @__PURE__ */ __exportAll({});
5
+
6
+ //#endregion
7
+ export { ConsumeSharedPlugin_exports };
8
+ //# sourceMappingURL=ConsumeSharedPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConsumeSharedPlugin.js","names":[],"sources":["../../../src/types/plugins/ConsumeSharedPlugin.ts"],"sourcesContent":["/*\n * This file was automatically generated.\n * DO NOT MODIFY BY HAND.\n * Run `pnpm generate:schema -w` to update.\n */\n\n/**\n * A module that should be consumed from share scope.\n */\nexport type ConsumesItem = string;\n\n/**\n * Advanced configuration for modules that should be consumed from share scope.\n */\nexport interface ConsumesConfig {\n /**\n * Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.\n */\n eager?: boolean;\n /**\n * Fallback module if no shared module is found in share scope. Defaults to the property name.\n */\n import?: false | ConsumesItem;\n /**\n * Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.\n */\n packageName?: string;\n /**\n * Version requirement from module in share scope.\n */\n requiredVersion?: false | string;\n /**\n * Module is looked up under this key from the share scope.\n */\n shareKey?: string;\n /**\n * Share scope name.\n */\n shareScope?: string | string[];\n /**\n * Layer in which the shared module should be placed.\n */\n layer?: string;\n /**\n * Layer of the issuer.\n */\n issuerLayer?: string;\n /**\n * Import request to match on\n */\n request?: string;\n /**\n * Allow only a single version of the shared module in share scope (disabled by default).\n */\n singleton?: boolean;\n /**\n * Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).\n */\n strictVersion?: boolean;\n /**\n * Filter consumed modules based on the request path.\n */\n exclude?: IncludeExcludeOptions;\n /**\n * Filter consumed modules based on the request path (only include matches).\n */\n include?: IncludeExcludeOptions;\n /**\n * Enable reconstructed lookup for node_modules paths for this share item\n */\n allowNodeModulesSuffixMatch?: boolean;\n /**\n * Tree shaking mode for the shared module.\n */\n treeShakingMode?: 'server-calc' | 'runtime-infer';\n}\n\n/**\n * Modules that should be consumed from share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.\n */\nexport interface ConsumesObject {\n [k: string]: ConsumesConfig | ConsumesItem;\n}\n\n/**\n * Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.\n */\nexport type Consumes = (ConsumesItem | ConsumesObject)[] | ConsumesObject;\n\nexport interface IncludeExcludeOptions {\n request?: string | RegExp;\n /**\n * Semantic versioning range to match against the module's version.\n */\n version?: string;\n /**\n * Optional specific version string to check against the version range instead of reading package.json.\n */\n fallbackVersion?: string;\n}\n\nexport interface ConsumeSharedPluginOptions {\n consumes: Consumes;\n /**\n * Share scope name used for all consumed modules (defaults to 'default').\n */\n shareScope?: string | string[];\n /**\n * Experimental features configuration\n */\n experiments?: {\n /** Enable reconstructed lookup for node_modules paths */\n allowNodeModulesSuffixMatch?: boolean;\n };\n}\n"],"mappings":""}
@@ -0,0 +1,13 @@
1
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
+
3
+ //#region src/types/plugins/ContainerPlugin.ts
4
+ var ContainerPlugin_exports = /* @__PURE__ */ require_runtime.__exportAll({});
5
+
6
+ //#endregion
7
+ Object.defineProperty(exports, 'ContainerPlugin_exports', {
8
+ enumerable: true,
9
+ get: function () {
10
+ return ContainerPlugin_exports;
11
+ }
12
+ });
13
+ //# sourceMappingURL=ContainerPlugin.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerPlugin.cjs","names":[],"sources":["../../../src/types/plugins/ContainerPlugin.ts"],"sourcesContent":["/*\n * This file was automatically generated.\n * DO NOT MODIFY BY HAND.\n * Run `pnpm generate:schema -w` to update.\n */\n\nimport type {\n Exposes,\n EntryRuntime,\n LibraryOptions,\n} from './ModuleFederationPlugin';\n\nexport interface ContainerPluginOptions {\n exposes: Exposes;\n /**\n * The filename for this container relative path inside the `output.path` directory.\n */\n filename?: string;\n library?: LibraryOptions;\n /**\n * The name for this container.\n */\n name: string;\n runtime?: EntryRuntime;\n /**\n * The name of the share scope which is shared with the host (defaults to 'default').\n */\n shareScope?: string | string[];\n /**\n * Experimental features configuration\n */\n experiments?: {\n /** Enable async startup for the container */\n asyncStartup?: boolean;\n /** After setting true, the external MF runtime will be used and the runtime provided by the consumer will be used. (Please make sure your consumer has provideExternalRuntime: true set, otherwise it will not run properly!) */\n externalRuntime?: boolean;\n /** Enable providing external runtime */\n provideExternalRuntime?: boolean;\n };\n /**\n * Array of runtime plugins to be applied\n */\n runtimePlugins?: (string | unknown[])[];\n}\n"],"mappings":""}
@@ -0,0 +1,38 @@
1
+ import { EntryRuntime, Exposes, LibraryOptions } from "./ModuleFederationPlugin.js";
2
+
3
+ //#region src/types/plugins/ContainerPlugin.d.ts
4
+ declare namespace ContainerPlugin_d_exports {
5
+ export { ContainerPluginOptions };
6
+ }
7
+ interface ContainerPluginOptions {
8
+ exposes: Exposes;
9
+ /**
10
+ * The filename for this container relative path inside the `output.path` directory.
11
+ */
12
+ filename?: string;
13
+ library?: LibraryOptions;
14
+ /**
15
+ * The name for this container.
16
+ */
17
+ name: string;
18
+ runtime?: EntryRuntime;
19
+ /**
20
+ * The name of the share scope which is shared with the host (defaults to 'default').
21
+ */
22
+ shareScope?: string | string[];
23
+ /**
24
+ * Experimental features configuration
25
+ */
26
+ experiments?: {
27
+ /** Enable async startup for the container */asyncStartup?: boolean; /** After setting true, the external MF runtime will be used and the runtime provided by the consumer will be used. (Please make sure your consumer has provideExternalRuntime: true set, otherwise it will not run properly!) */
28
+ externalRuntime?: boolean; /** Enable providing external runtime */
29
+ provideExternalRuntime?: boolean;
30
+ };
31
+ /**
32
+ * Array of runtime plugins to be applied
33
+ */
34
+ runtimePlugins?: (string | unknown[])[];
35
+ }
36
+ //#endregion
37
+ export { ContainerPlugin_d_exports };
38
+ //# sourceMappingURL=ContainerPlugin.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
2
+
3
+ //#region src/types/plugins/ContainerPlugin.ts
4
+ var ContainerPlugin_exports = /* @__PURE__ */ __exportAll({});
5
+
6
+ //#endregion
7
+ export { ContainerPlugin_exports };
8
+ //# sourceMappingURL=ContainerPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerPlugin.js","names":[],"sources":["../../../src/types/plugins/ContainerPlugin.ts"],"sourcesContent":["/*\n * This file was automatically generated.\n * DO NOT MODIFY BY HAND.\n * Run `pnpm generate:schema -w` to update.\n */\n\nimport type {\n Exposes,\n EntryRuntime,\n LibraryOptions,\n} from './ModuleFederationPlugin';\n\nexport interface ContainerPluginOptions {\n exposes: Exposes;\n /**\n * The filename for this container relative path inside the `output.path` directory.\n */\n filename?: string;\n library?: LibraryOptions;\n /**\n * The name for this container.\n */\n name: string;\n runtime?: EntryRuntime;\n /**\n * The name of the share scope which is shared with the host (defaults to 'default').\n */\n shareScope?: string | string[];\n /**\n * Experimental features configuration\n */\n experiments?: {\n /** Enable async startup for the container */\n asyncStartup?: boolean;\n /** After setting true, the external MF runtime will be used and the runtime provided by the consumer will be used. (Please make sure your consumer has provideExternalRuntime: true set, otherwise it will not run properly!) */\n externalRuntime?: boolean;\n /** Enable providing external runtime */\n provideExternalRuntime?: boolean;\n };\n /**\n * Array of runtime plugins to be applied\n */\n runtimePlugins?: (string | unknown[])[];\n}\n"],"mappings":""}
@@ -0,0 +1,13 @@
1
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
+
3
+ //#region src/types/plugins/ContainerReferencePlugin.ts
4
+ var ContainerReferencePlugin_exports = /* @__PURE__ */ require_runtime.__exportAll({});
5
+
6
+ //#endregion
7
+ Object.defineProperty(exports, 'ContainerReferencePlugin_exports', {
8
+ enumerable: true,
9
+ get: function () {
10
+ return ContainerReferencePlugin_exports;
11
+ }
12
+ });
13
+ //# sourceMappingURL=ContainerReferencePlugin.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerReferencePlugin.cjs","names":[],"sources":["../../../src/types/plugins/ContainerReferencePlugin.ts"],"sourcesContent":["/*\n * This file was automatically generated.\n * DO NOT MODIFY BY HAND.\n * Run `pnpm generate:schema -w` to update.\n */\n\nimport type { ExternalsType, Remotes } from './ModuleFederationPlugin';\n\nexport interface ContainerReferencePluginOptions {\n /**\n * Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.\n */\n async?: boolean;\n /**\n * The external type of the remote containers.\n */\n remoteType: ExternalsType;\n remotes: Remotes;\n /**\n * The name of the share scope shared with all remotes (defaults to 'default').\n */\n shareScope?: string | string[];\n}\n"],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { ExternalsType, Remotes } from "./ModuleFederationPlugin.js";
2
+
3
+ //#region src/types/plugins/ContainerReferencePlugin.d.ts
4
+ declare namespace ContainerReferencePlugin_d_exports {
5
+ export { ContainerReferencePluginOptions };
6
+ }
7
+ interface ContainerReferencePluginOptions {
8
+ /**
9
+ * Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.
10
+ */
11
+ async?: boolean;
12
+ /**
13
+ * The external type of the remote containers.
14
+ */
15
+ remoteType: ExternalsType;
16
+ remotes: Remotes;
17
+ /**
18
+ * The name of the share scope shared with all remotes (defaults to 'default').
19
+ */
20
+ shareScope?: string | string[];
21
+ }
22
+ //#endregion
23
+ export { ContainerReferencePlugin_d_exports };
24
+ //# sourceMappingURL=ContainerReferencePlugin.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
2
+
3
+ //#region src/types/plugins/ContainerReferencePlugin.ts
4
+ var ContainerReferencePlugin_exports = /* @__PURE__ */ __exportAll({});
5
+
6
+ //#endregion
7
+ export { ContainerReferencePlugin_exports };
8
+ //# sourceMappingURL=ContainerReferencePlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerReferencePlugin.js","names":[],"sources":["../../../src/types/plugins/ContainerReferencePlugin.ts"],"sourcesContent":["/*\n * This file was automatically generated.\n * DO NOT MODIFY BY HAND.\n * Run `pnpm generate:schema -w` to update.\n */\n\nimport type { ExternalsType, Remotes } from './ModuleFederationPlugin';\n\nexport interface ContainerReferencePluginOptions {\n /**\n * Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.\n */\n async?: boolean;\n /**\n * The external type of the remote containers.\n */\n remoteType: ExternalsType;\n remotes: Remotes;\n /**\n * The name of the share scope shared with all remotes (defaults to 'default').\n */\n shareScope?: string | string[];\n}\n"],"mappings":""}
@@ -0,0 +1,13 @@
1
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
+
3
+ //#region src/types/plugins/ModuleFederationPlugin.ts
4
+ var ModuleFederationPlugin_exports = /* @__PURE__ */ require_runtime.__exportAll({});
5
+
6
+ //#endregion
7
+ Object.defineProperty(exports, 'ModuleFederationPlugin_exports', {
8
+ enumerable: true,
9
+ get: function () {
10
+ return ModuleFederationPlugin_exports;
11
+ }
12
+ });
13
+ //# sourceMappingURL=ModuleFederationPlugin.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleFederationPlugin.cjs","names":[],"sources":["../../../src/types/plugins/ModuleFederationPlugin.ts"],"sourcesContent":["import type { Stats } from '../stats';\nimport type webpack from 'webpack';\n\n// <-- BEGIN SCHEMA-GENERATED TYPES -->\n/**\n * Module that should be exposed by this container.\n */\nexport type ExposesItem = string;\n\n/**\n * Modules that should be exposed by this container.\n */\nexport type ExposesItems = ExposesItem[];\n\n/**\n * Modules that should be exposed by this container. Property names are used as public paths.\n */\nexport interface ExposesObject {\n [k: string]: ExposesConfig | ExposesItem | ExposesItems;\n}\n\n/**\n * Advanced configuration for modules that should be exposed by this container.\n */\nexport interface ExposesConfig {\n /**\n * Request to a module that should be exposed by this container.\n */\n import: ExposesItem | ExposesItems;\n /**\n * Custom chunk name for the exposed module.\n */\n name?: string;\n}\n\n/**\n * Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.\n */\nexport type Exposes = (ExposesItem | ExposesObject)[] | ExposesObject;\n\n/**\n * Add a container for define/require functions in the AMD module.\n */\nexport type AmdContainer = string;\n\n/**\n * Add a comment in the UMD wrapper.\n */\nexport type AuxiliaryComment = string | LibraryCustomUmdCommentObject;\n\n/**\n * Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.\n */\nexport interface LibraryCustomUmdCommentObject {\n /**\n * Set comment for `amd` section in UMD.\n */\n amd?: string;\n /**\n * Set comment for `commonjs` (exports) section in UMD.\n */\n commonjs?: string;\n /**\n * Set comment for `commonjs2` (module.exports) section in UMD.\n */\n commonjs2?: string;\n /**\n * Set comment for `root` (global variable) section in UMD.\n */\n root?: string;\n}\n\n/**\n * Description object for all UMD variants of the library name.\n */\nexport interface LibraryCustomUmdObject {\n /**\n * Name of the exposed AMD library in the UMD.\n */\n amd?: string;\n /**\n * Name of the exposed commonjs export in the UMD.\n */\n commonjs?: string;\n /**\n * Name of the property exposed globally by a UMD library.\n */\n root?: string[] | string;\n}\n\n/**\n * Specify which export should be exposed as library.\n */\nexport type LibraryExport = string[] | string;\n\n/**\n * The name of the library (some types allow unnamed libraries too).\n */\nexport type LibraryName = string[] | string | LibraryCustomUmdObject;\n\n/**\n * Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).\n */\nexport type LibraryType =\n | 'var'\n | 'module'\n | 'assign'\n | 'assign-properties'\n | 'this'\n | 'window'\n | 'self'\n | 'global'\n | 'commonjs'\n | 'commonjs2'\n | 'commonjs-module'\n | 'commonjs-static'\n | 'amd'\n | 'amd-require'\n | 'umd'\n | 'umd2'\n | 'jsonp'\n | 'system'\n | string;\n\n/**\n * Options for library.\n */\nexport interface LibraryOptions {\n amdContainer?: AmdContainer;\n auxiliaryComment?: AuxiliaryComment;\n export?: LibraryExport;\n name?: LibraryName;\n type: LibraryType;\n umdNamedDefine?: UmdNamedDefine;\n}\n\n/**\n * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.\n */\nexport type UmdNamedDefine = boolean;\n\n/**\n * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).\n */\nexport type ExternalsType =\n | 'var'\n | 'module'\n | 'assign'\n | 'this'\n | 'window'\n | 'self'\n | 'global'\n | 'commonjs'\n | 'commonjs2'\n | 'commonjs-module'\n | 'commonjs-static'\n | 'amd'\n | 'amd-require'\n | 'umd'\n | 'umd2'\n | 'jsonp'\n | 'system'\n | 'promise'\n | 'import'\n | 'module-import'\n | 'script'\n | 'node-commonjs';\n\n/**\n * Container location from which modules should be resolved and loaded at runtime.\n */\nexport type RemotesItem = string;\n\n/**\n * Container locations from which modules should be resolved and loaded at runtime.\n */\nexport type RemotesItems = RemotesItem[];\n\n/**\n * Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.\n */\nexport interface RemotesObject {\n [k: string]: RemotesConfig | RemotesItem | RemotesItems;\n}\n\n/**\n * Advanced configuration for container locations from which modules should be resolved and loaded at runtime.\n */\nexport interface RemotesConfig {\n /**\n * Container locations from which modules should be resolved and loaded at runtime.\n */\n external: RemotesItem | RemotesItems;\n /**\n * The name of the share scope shared with this remote.\n */\n shareScope?: string | string[];\n}\n\n/**\n * Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.\n */\nexport type Remotes = (RemotesItem | RemotesObject)[] | RemotesObject;\n\n/**\n * The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.\n */\nexport type EntryRuntime = false | string;\n\n/**\n * A module that should be shared in the share scope.\n */\nexport type SharedItem = string;\n\n/**\n * Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.\n */\nexport interface SharedObject {\n [k: string]: SharedConfig | SharedItem;\n}\n\n/**\n * Advanced configuration for modules that should be shared in the share scope.\n */\nexport interface SharedConfig {\n /**\n * Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.\n */\n eager?: boolean;\n /**\n * Options for excluding specific versions or request paths of the shared module. When specified, matching modules will not be shared. Cannot be used with 'include'.\n */\n exclude?: IncludeExcludeOptions;\n /**\n * Options for including only specific versions or request paths of the shared module. When specified, only matching modules will be shared. Cannot be used with 'exclude'.\n */\n include?: IncludeExcludeOptions;\n /**\n * Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.\n */\n import?: false | SharedItem;\n /**\n * Import request to match on\n */\n request?: string;\n /**\n * Layer in which the shared module should be placed.\n */\n layer?: string;\n /**\n * Layer of the issuer.\n */\n issuerLayer?: string;\n /**\n * Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.\n */\n packageName?: string;\n /**\n * Version requirement from module in share scope.\n */\n requiredVersion?: false | string;\n /**\n * Module is looked up under this key from the share scope.\n */\n shareKey?: string;\n /**\n * Share scope name.\n */\n shareScope?: string | string[];\n /**\n * [Deprecated]: load shared strategy(defaults to 'version-first').\n */\n shareStrategy?: 'version-first' | 'loaded-first';\n /**\n * Allow only a single version of the shared module in share scope (disabled by default).\n */\n singleton?: boolean;\n /**\n * Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).\n */\n strictVersion?: boolean;\n /**\n * Version of the provided module. Will replace lower matching versions, but not higher.\n */\n version?: false | string;\n /**\n * Enable reconstructed lookup for node_modules paths for this share item\n */\n allowNodeModulesSuffixMatch?: boolean;\n /**\n * Enable tree-shaking for the shared module or configure it.\n */\n treeShaking?: boolean | TreeShakingConfig;\n}\n\n/**\n * Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.\n */\nexport type Shared = (SharedItem | SharedObject)[] | SharedObject;\n\nexport interface IncludeExcludeOptions {\n /**\n * A string (which can be a regex pattern) or a RegExp object to match the request path.\n */\n request?: string | RegExp;\n /**\n * Semantic versioning range to match against the module's version.\n */\n version?: string;\n /**\n * Semantic versioning range to match against the fallback module's version for exclusion/inclusion context where applicable.\n */\n fallbackVersion?: string;\n}\n\n/**\n * Tree-shake configuration for shared module.\n */\nexport interface TreeShakingConfig {\n /**\n * List of export names used from the shared module.\n */\n usedExports?: string[];\n /**\n * Tree-shake analysis mode.\n */\n mode?: 'server-calc' | 'runtime-infer';\n /**\n * Filename for generated treeShaking metadata.\n */\n filename?: string;\n}\n\n// <-- END SCHEMA-GENERATED TYPES -->\n\nexport interface AdditionalDataOptions {\n stats: Stats;\n compiler: webpack.Compiler;\n compilation: webpack.Compilation;\n bundler: 'webpack' | 'rspack';\n}\nexport interface PluginManifestOptions {\n filePath?: string;\n disableAssetsAnalyze?: boolean;\n fileName?: string;\n additionalData?: (\n options: AdditionalDataOptions,\n ) => Promise<void | Stats> | Stats | void;\n}\n\nexport interface PluginDevOptions {\n disableLiveReload?: boolean;\n disableHotTypesReload?: boolean;\n disableDynamicRemoteTypeHints?: boolean;\n}\n\ninterface RemoteTypeUrl {\n alias?: string;\n api: string;\n zip: string;\n}\n\nexport interface RemoteTypeUrls {\n [remoteName: string]: RemoteTypeUrl;\n}\n\nexport interface DtsGenerateTypesHookOptions {\n zipTypesPath: string;\n apiTypesPath: string;\n zipName: string;\n apiFileName: string;\n}\n\nexport interface DtsHostOptions {\n typesFolder?: string;\n abortOnError?: boolean;\n remoteTypesFolder?: string;\n deleteTypesFolder?: boolean;\n maxRetries?: number;\n consumeAPITypes?: boolean;\n runtimePkgs?: string[];\n remoteTypeUrls?: (() => Promise<RemoteTypeUrls>) | RemoteTypeUrls;\n timeout?: number;\n /** The family of IP, used for network requests */\n family?: 0 | 4 | 6;\n typesOnBuild?: boolean;\n}\n\nexport interface DtsRemoteOptions {\n tsConfigPath?: string;\n typesFolder?: string;\n compiledTypesFolder?: string;\n /** Custom base output directory for generated types. When set, types will be emitted to this directory instead of the default compiler output directory. */\n outputDir?: string;\n deleteTypesFolder?: boolean;\n additionalFilesToCompile?: string[];\n compileInChildProcess?: boolean;\n compilerInstance?: 'tsc' | 'vue-tsc' | 'tspc' | string;\n generateAPITypes?: boolean;\n extractThirdParty?:\n | boolean\n | {\n exclude?: Array<string | RegExp>;\n };\n extractRemoteTypes?: boolean;\n abortOnError?: boolean;\n deleteTsConfig?: boolean;\n afterGenerate?: (\n options: DtsGenerateTypesHookOptions,\n ) => Promise<void> | void;\n}\n\nexport interface PluginDtsOptions {\n generateTypes?: boolean | DtsRemoteOptions;\n consumeTypes?: boolean | DtsHostOptions;\n tsConfigPath?: string;\n extraOptions?: Record<string, any>;\n implementation?: string;\n cwd?: string;\n displayErrorInTerminal?: boolean;\n}\n\nexport type AsyncBoundaryOptions = {\n eager?: RegExp | ((module: any) => boolean);\n excludeChunk?: (chunk: any) => boolean;\n};\n\nexport interface ModuleFederationPluginOptions {\n /**\n * Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.\n */\n exposes?: Exposes;\n /**\n * The filename of the container as relative path inside the `output.path` directory.\n */\n filename?: string;\n /**\n * Options for library.\n */\n library?: LibraryOptions;\n /**\n * The name of the container.\n */\n name?: string;\n /**\n * The external type of the remote containers.\n */\n remoteType?: ExternalsType;\n /**\n * Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.\n */\n remotes?: Remotes;\n /**\n * The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.\n */\n runtime?: EntryRuntime;\n /**\n * Share scope name used for all shared modules (defaults to 'default').\n */\n shareScope?: string | string[];\n /**\n * load shared strategy(defaults to 'version-first').\n */\n shareStrategy?: SharedStrategy;\n /**\n * Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.\n */\n shared?: Shared;\n /**\n * Runtime plugin file paths or package name. Supports tuple [path, params].\n */\n runtimePlugins?: (string | [string, Record<string, unknown>])[];\n /**\n * Custom public path function\n */\n getPublicPath?: string;\n /**\n * Bundler runtime path\n */\n implementation?: string;\n\n manifest?: boolean | PluginManifestOptions;\n dev?: boolean | PluginDevOptions;\n dts?: boolean | PluginDtsOptions;\n virtualRuntimeEntry?: boolean;\n experiments?: {\n externalRuntime?: boolean;\n provideExternalRuntime?: boolean;\n asyncStartup?: boolean;\n /**\n * Options related to build optimizations.\n */\n optimization?: {\n /**\n * Enable optimization to skip snapshot plugin\n */\n disableSnapshot?: boolean;\n /**\n * Disable remote loading code in runtime-core.\n */\n disableRemote?: boolean;\n /**\n * Disable shared dependency code in runtime-core.\n */\n disableShared?: boolean;\n /**\n * Target environment for the build\n */\n target?: 'web' | 'node';\n };\n };\n bridge?: {\n /**\n * Enables bridge router functionality for React applications.\n * When enabled, automatically handles routing context and basename injection\n * for micro-frontend applications using react-router-dom.\n *\n * @default false\n */\n enableBridgeRouter?: boolean;\n /**\n * @deprecated Use `enableBridgeRouter: false` instead.\n *\n * Disables the default alias setting in the bridge.\n * When true, users must manually handle basename through root component props.\n *\n * Migration:\n * - `disableAlias: true` → `enableBridgeRouter: false`\n * - `disableAlias: false` → `enableBridgeRouter: true`\n *\n * @default false\n */\n disableAlias?: boolean;\n };\n /**\n * Configuration for async boundary plugin\n */\n async?: boolean | AsyncBoundaryOptions;\n\n /**\n * The directory to output the tree shaking shared fallback resources.\n */\n treeShakingDir?: string;\n\n /**\n * Whether to inject shared used exports into bundler runtime.\n */\n injectTreeShakingUsedExports?: boolean;\n treeShakingSharedExcludePlugins?: string[];\n treeShakingSharedPlugins?: string[];\n}\n\nexport type SharedStrategy = 'version-first' | 'loaded-first';\n"],"mappings":""}