@module-federation/enhanced 0.0.8 → 0.0.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.
Files changed (55) hide show
  1. package/dist/package.json +2 -1
  2. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +57 -0
  3. package/dist/src/declarations/plugins/container/ContainerPlugin.d.ts +187 -0
  4. package/dist/src/declarations/plugins/container/ContainerReferencePlugin.d.ts +80 -0
  5. package/dist/src/declarations/plugins/container/Dependency.d.ts +285 -0
  6. package/dist/src/declarations/plugins/container/Module.d.ts +138 -0
  7. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +33 -0
  8. package/dist/src/declarations/plugins/container/ModuleFederationPlugin.d.ts +320 -0
  9. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +4 -0
  10. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +28 -0
  11. package/dist/src/declarations/plugins/container/Template.d.ts +198 -0
  12. package/dist/src/declarations/plugins/container/WebpackError.d.ts +32 -0
  13. package/dist/src/declarations/plugins/container/WebpackOptions.d.ts +140 -0
  14. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +74 -0
  15. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +67 -0
  16. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +78 -0
  17. package/dist/src/lib/container/ContainerEntryDependency.d.ts +22 -20
  18. package/dist/src/lib/container/ContainerEntryModule.d.ts +70 -81
  19. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +14 -10
  20. package/dist/src/lib/container/ContainerExposedDependency.d.ts +18 -25
  21. package/dist/src/lib/container/ContainerPlugin.d.ts +31 -10
  22. package/dist/src/lib/container/ContainerReferencePlugin.d.ts +27 -12
  23. package/dist/src/lib/container/FallbackDependency.d.ts +14 -20
  24. package/dist/src/lib/container/FallbackItemDependency.d.ts +3 -10
  25. package/dist/src/lib/container/FallbackModule.d.ts +52 -70
  26. package/dist/src/lib/container/FallbackModuleFactory.d.ts +10 -10
  27. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +22 -15
  28. package/dist/src/lib/container/ModuleFederationPlugin.js +2 -2
  29. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  30. package/dist/src/lib/container/ModuleFederationPluginTypes.d.ts +271 -0
  31. package/dist/src/lib/container/ModuleFederationPluginTypes.js +8 -0
  32. package/dist/src/lib/container/ModuleFederationPluginTypes.js.map +1 -0
  33. package/dist/src/lib/container/RemoteModule.d.ts +88 -73
  34. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +10 -7
  35. package/dist/src/lib/container/RemoteToExternalDependency.d.ts +3 -9
  36. package/dist/src/lib/container/options.d.ts +12 -4
  37. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +11 -2
  38. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  39. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -10
  40. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +97 -104
  41. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +28 -6
  42. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +1 -1
  43. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  44. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +29 -11
  45. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +3 -11
  46. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +35 -37
  47. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +65 -83
  48. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +17 -10
  49. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +37 -19
  50. package/dist/src/lib/sharing/SharePlugin.d.ts +39 -13
  51. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
  52. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +12 -8
  53. package/dist/src/lib/sharing/utils.d.ts +21 -29
  54. package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +9 -7
  55. package/package.json +5 -4
@@ -0,0 +1,271 @@
1
+ /**
2
+ * 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.
3
+ */
4
+ export type Exposes = (ExposesItem | ExposesObject)[] | ExposesObject;
5
+ /**
6
+ * Module that should be exposed by this container.
7
+ */
8
+ export type ExposesItem = string;
9
+ /**
10
+ * Modules that should be exposed by this container.
11
+ */
12
+ export type ExposesItems = ExposesItem[];
13
+ /**
14
+ * Add a container for define/require functions in the AMD module.
15
+ */
16
+ export type AmdContainer = string;
17
+ /**
18
+ * Add a comment in the UMD wrapper.
19
+ */
20
+ export type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
21
+ /**
22
+ * Specify which export should be exposed as library.
23
+ */
24
+ export type LibraryExport = string[] | string;
25
+ /**
26
+ * The name of the library (some types allow unnamed libraries too).
27
+ */
28
+ export type LibraryName = string[] | string | LibraryCustomUmdObject;
29
+ /**
30
+ * 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).
31
+ */
32
+ export type LibraryType = ('var' | 'module' | 'assign' | 'assign-properties' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system') | string;
33
+ /**
34
+ * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
35
+ */
36
+ export type UmdNamedDefine = boolean;
37
+ /**
38
+ * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
39
+ */
40
+ export type ExternalsType = 'var' | 'module' | 'assign' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system' | 'promise' | 'import' | 'script' | 'node-commonjs';
41
+ /**
42
+ * 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.
43
+ */
44
+ export type Remotes = (RemotesItem | RemotesObject)[] | RemotesObject;
45
+ /**
46
+ * Container location from which modules should be resolved and loaded at runtime.
47
+ */
48
+ export type RemotesItem = string;
49
+ /**
50
+ * Container locations from which modules should be resolved and loaded at runtime.
51
+ */
52
+ export type RemotesItems = RemotesItem[];
53
+ /**
54
+ * The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.
55
+ */
56
+ export type EntryRuntime = false | string;
57
+ /**
58
+ * Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
59
+ */
60
+ export type Shared = (SharedItem | SharedObject)[] | SharedObject;
61
+ /**
62
+ * A module that should be shared in the share scope.
63
+ */
64
+ export type SharedItem = string;
65
+ export interface ModuleFederationPluginOptions {
66
+ /**
67
+ * 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.
68
+ */
69
+ exposes?: Exposes;
70
+ /**
71
+ * The filename of the container as relative path inside the `output.path` directory.
72
+ */
73
+ filename?: string;
74
+ /**
75
+ * Options for library.
76
+ */
77
+ library?: LibraryOptions;
78
+ /**
79
+ * The name of the container.
80
+ */
81
+ name?: string;
82
+ /**
83
+ * The external type of the remote containers.
84
+ */
85
+ remoteType?: ExternalsType;
86
+ /**
87
+ * 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.
88
+ */
89
+ remotes?: Remotes;
90
+ /**
91
+ * The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.
92
+ */
93
+ runtime?: EntryRuntime;
94
+ /**
95
+ * Share scope name used for all shared modules (defaults to 'default').
96
+ */
97
+ shareScope?: string;
98
+ /**
99
+ * Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
100
+ */
101
+ shared?: Shared;
102
+ /**
103
+ * Runtime plugin file paths or package name.
104
+ */
105
+ runtimePlugins?: string[];
106
+ }
107
+ /**
108
+ * Modules that should be exposed by this container. Property names are used as public paths.
109
+ */
110
+ export interface ExposesObject {
111
+ /**
112
+ * Modules that should be exposed by this container.
113
+ */
114
+ [k: string]: ExposesConfig | ExposesItem | ExposesItems;
115
+ }
116
+ /**
117
+ * Advanced configuration for modules that should be exposed by this container.
118
+ */
119
+ export interface ExposesConfig {
120
+ /**
121
+ * Request to a module that should be exposed by this container.
122
+ */
123
+ import: ExposesItem | ExposesItems;
124
+ /**
125
+ * Custom chunk name for the exposed module.
126
+ */
127
+ name?: string;
128
+ }
129
+ /**
130
+ * Options for library.
131
+ */
132
+ export interface LibraryOptions {
133
+ /**
134
+ * Add a container for define/require functions in the AMD module.
135
+ */
136
+ amdContainer?: AmdContainer;
137
+ /**
138
+ * Add a comment in the UMD wrapper.
139
+ */
140
+ auxiliaryComment?: AuxiliaryComment;
141
+ /**
142
+ * Specify which export should be exposed as library.
143
+ */
144
+ export?: LibraryExport;
145
+ /**
146
+ * The name of the library (some types allow unnamed libraries too).
147
+ */
148
+ name?: LibraryName;
149
+ /**
150
+ * 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).
151
+ */
152
+ type: LibraryType;
153
+ /**
154
+ * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
155
+ */
156
+ umdNamedDefine?: UmdNamedDefine;
157
+ }
158
+ /**
159
+ * Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.
160
+ */
161
+ export interface LibraryCustomUmdCommentObject {
162
+ /**
163
+ * Set comment for `amd` section in UMD.
164
+ */
165
+ amd?: string;
166
+ /**
167
+ * Set comment for `commonjs` (exports) section in UMD.
168
+ */
169
+ commonjs?: string;
170
+ /**
171
+ * Set comment for `commonjs2` (module.exports) section in UMD.
172
+ */
173
+ commonjs2?: string;
174
+ /**
175
+ * Set comment for `root` (global variable) section in UMD.
176
+ */
177
+ root?: string;
178
+ }
179
+ /**
180
+ * Description object for all UMD variants of the library name.
181
+ */
182
+ export interface LibraryCustomUmdObject {
183
+ /**
184
+ * Name of the exposed AMD library in the UMD.
185
+ */
186
+ amd?: string;
187
+ /**
188
+ * Name of the exposed commonjs export in the UMD.
189
+ */
190
+ commonjs?: string;
191
+ /**
192
+ * Name of the property exposed globally by a UMD library.
193
+ */
194
+ root?: string[] | string;
195
+ }
196
+ /**
197
+ * Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.
198
+ */
199
+ export interface RemotesObject {
200
+ /**
201
+ * Container locations from which modules should be resolved and loaded at runtime.
202
+ */
203
+ [k: string]: RemotesConfig | RemotesItem | RemotesItems;
204
+ }
205
+ /**
206
+ * Advanced configuration for container locations from which modules should be resolved and loaded at runtime.
207
+ */
208
+ export interface RemotesConfig {
209
+ /**
210
+ * Container locations from which modules should be resolved and loaded at runtime.
211
+ */
212
+ external: RemotesItem | RemotesItems;
213
+ /**
214
+ * The name of the share scope shared with this remote.
215
+ */
216
+ shareScope?: string;
217
+ /**
218
+ * The name of remote instance
219
+ */
220
+ name?: string;
221
+ }
222
+ /**
223
+ * 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.
224
+ */
225
+ export interface SharedObject {
226
+ /**
227
+ * Modules that should be shared in the share scope.
228
+ */
229
+ [k: string]: SharedConfig | SharedItem;
230
+ }
231
+ /**
232
+ * Advanced configuration for modules that should be shared in the share scope.
233
+ */
234
+ export interface SharedConfig {
235
+ /**
236
+ * 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.
237
+ */
238
+ eager?: boolean;
239
+ /**
240
+ * 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.
241
+ */
242
+ import?: false | SharedItem;
243
+ /**
244
+ * Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.
245
+ */
246
+ packageName?: string;
247
+ /**
248
+ * Version requirement from module in share scope.
249
+ */
250
+ requiredVersion?: false | string;
251
+ /**
252
+ * Module is looked up under this key from the share scope.
253
+ */
254
+ shareKey?: string;
255
+ /**
256
+ * Share scope name.
257
+ */
258
+ shareScope?: string;
259
+ /**
260
+ * Allow only a single version of the shared module in share scope (disabled by default).
261
+ */
262
+ singleton?: boolean;
263
+ /**
264
+ * 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).
265
+ */
266
+ strictVersion?: boolean;
267
+ /**
268
+ * Version of the provided module. Will replace lower matching versions, but not higher.
269
+ */
270
+ version?: false | string;
271
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /*
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY BY HAND.
5
+ * Run `yarn special-lint-fix` to update
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=ModuleFederationPluginTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleFederationPluginTypes.js","sourceRoot":"","sources":["../../../../src/lib/container/ModuleFederationPluginTypes.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -1,75 +1,90 @@
1
- import type { Compilation, WebpackOptionsNormalized } from 'webpack';
2
- import type { CodeGenerationContext, CodeGenerationResult, LibIdentOptions, NeedBuildContext, WebpackError } from 'webpack/lib/Module';
3
- import type { ResolverWithOptions } from 'webpack/lib/ResolverFactory';
4
- import type { InputFileSystem } from 'webpack/lib/FileSystemInfo';
5
- import type { RequestShortener } from 'webpack/lib/RuntimeModule';
6
- import type { ObjectDeserializerContext } from 'webpack/lib/serialization/ObjectMiddleware';
7
- declare const Module: typeof import("webpack").Module;
1
+ export default RemoteModule;
8
2
  declare class RemoteModule extends Module {
9
- private _identifier;
10
- request: string;
11
- externalRequests: string[];
12
- internalRequest: string;
13
- shareScope: string;
14
- /**
15
- * @param {string} request request string
16
- * @param {string[]} externalRequests list of external requests to containers
17
- * @param {string} internalRequest name of exposed module in container
18
- * @param {string} shareScope the used share scope name
19
- */
20
- constructor(request: string, externalRequests: string[], internalRequest: string, shareScope: string);
21
- /**
22
- * @returns {string} a unique identifier of the module
23
- */
24
- identifier(): string;
25
- /**
26
- * @param {RequestShortener} requestShortener the request shortener
27
- * @returns {string} a user readable identifier of the module
28
- */
29
- readableIdentifier(requestShortener: RequestShortener): string;
30
- /**
31
- * @param {LibIdentOptions} options options
32
- * @returns {string | null} an identifier for library inclusion
33
- */
34
- libIdent(options: LibIdentOptions): string | null;
35
- /**
36
- * @param {NeedBuildContext} context context info
37
- * @param {function((WebpackError | null)=, boolean=): void} callback callback function, returns true, if the module needs a rebuild
38
- * @returns {void}
39
- */
40
- needBuild(context: NeedBuildContext, callback: (err: WebpackError | null, needsRebuild?: boolean) => void): void;
41
- /**
42
- * @param {WebpackOptions} options webpack options
43
- * @param {Compilation} compilation the compilation
44
- * @param {ResolverWithOptions} resolver the resolver
45
- * @param {InputFileSystem} fs the file system
46
- * @param {function(WebpackError=): void} callback callback function
47
- * @returns {void}
48
- */
49
- build(options: WebpackOptionsNormalized, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (err?: WebpackError | undefined) => void): void;
50
- /**
51
- * @param {string=} type the source type for which the size should be estimated
52
- * @returns {number} the estimated size of the module (must be non-zero)
53
- */
54
- size(type?: string): number;
55
- /**
56
- * @returns {Set<string>} types available (do not mutate)
57
- */
58
- getSourceTypes(): Set<string>;
59
- /**
60
- * @returns {string | null} absolute path which should be used for condition matching (usually the resource path)
61
- */
62
- nameForCondition(): string | null;
63
- /**
64
- * @param {CodeGenerationContext} context context for code generation
65
- * @returns {CodeGenerationResult} result
66
- */
67
- codeGeneration(context: CodeGenerationContext): CodeGenerationResult;
68
- serialize(context: any): void;
69
- /**
70
- * @param {ObjectDeserializerContext} context context
71
- * @returns {RemoteModule} deserialized module
72
- */
73
- static deserialize(context: ObjectDeserializerContext): RemoteModule;
3
+ /**
4
+ * @param {ObjectDeserializerContext} context context
5
+ * @returns {RemoteModule} deserialized module
6
+ */
7
+ static deserialize(context: ObjectDeserializerContext): RemoteModule;
8
+ /**
9
+ * @param {string} request request string
10
+ * @param {string[]} externalRequests list of external requests to containers
11
+ * @param {string} internalRequest name of exposed module in container
12
+ * @param {string} shareScope the used share scope name
13
+ */
14
+ constructor(
15
+ request: string,
16
+ externalRequests: string[],
17
+ internalRequest: string,
18
+ shareScope: string,
19
+ );
20
+ request: string;
21
+ externalRequests: string[];
22
+ internalRequest: string;
23
+ shareScope: string;
24
+ _identifier: string;
25
+ /**
26
+ * @param {NeedBuildContext} context context info
27
+ * @param {function((WebpackError | null)=, boolean=): void} callback callback function, returns true, if the module needs a rebuild
28
+ * @returns {void}
29
+ */
30
+ needBuild(
31
+ context: NeedBuildContext,
32
+ callback: (
33
+ arg0: (WebpackError | null) | undefined,
34
+ arg1: boolean | undefined,
35
+ ) => void,
36
+ ): void;
37
+ /**
38
+ * @param {WebpackOptions} options webpack options
39
+ * @param {Compilation} compilation the compilation
40
+ * @param {ResolverWithOptions} resolver the resolver
41
+ * @param {InputFileSystem} fs the file system
42
+ * @param {function(WebpackError=): void} callback callback function
43
+ * @returns {void}webpack
44
+ */
45
+ build(
46
+ options: WebpackOptions,
47
+ compilation: Compilation,
48
+ resolver: ResolverWithOptions,
49
+ fs: InputFileSystem,
50
+ callback: (arg0: WebpackError | undefined) => void,
51
+ ): void;
74
52
  }
75
- export default RemoteModule;
53
+ declare namespace RemoteModule {
54
+ export {
55
+ WebpackOptionsohunkGraph,
56
+ ChunkGroup,
57
+ Compilation,
58
+ CodeGenerationContext,
59
+ CodeGenerationResult,
60
+ LibIdentOptions,
61
+ NeedBuildContext,
62
+ RequestShortener,
63
+ ResolverWithOptions,
64
+ WebpackError,
65
+ ObjectDeserializerContext,
66
+ ObjectSerializerContext,
67
+ Hash,
68
+ InputFileSystem,
69
+ };
70
+ }
71
+ import Module = require('webpack/lib/Module');
72
+ type NeedBuildContext = import('webpack/lib/Module').NeedBuildContext;
73
+ type WebpackError = import('webpack/lib/WebpackError');
74
+ type WebpackOptions =
75
+ import('webpack/declarations/WebpackOptions').WebpackOptionsNormalized;
76
+ type Compilation = import('webpack/lib/Compilation');
77
+ type ResolverWithOptions =
78
+ import('webpack/lib/ResolverFactory').ResolverWithOptions;
79
+ type InputFileSystem = import('webpack/lib/util/fs').InputFileSystem;
80
+ type ObjectDeserializerContext =
81
+ import('webpack/lib/serialization/ObjectMiddleware').ObjectDeserializerContext;
82
+ type ChunkGraph = import('webpack/lib/ChunkGraph');
83
+ type ChunkGroup = import('webpack/lib/ChunkGroup');
84
+ type CodeGenerationContext = import('webpack/lib/Module').CodeGenerationContext;
85
+ type CodeGenerationResult = import('webpack/lib/Module').CodeGenerationResult;
86
+ type LibIdentOptions = import('webpack/lib/Module').LibIdentOptions;
87
+ type RequestShortener = import('webpack/lib/RequestShortener');
88
+ type ObjectSerializerContext =
89
+ import('webpack/lib/serialization/ObjectMiddleware').ObjectSerializerContext;
90
+ type Hash = import('webpack/lib/util/Hash');
@@ -1,9 +1,12 @@
1
- declare const RuntimeModule: typeof import("webpack").RuntimeModule;
1
+ export default RemoteRuntimeModule;
2
+ /** @typedef {import("webpack/lib/Chunk")} Chunk */
3
+ /** @typedef {import("./RemoteModule")} RemoteModule */
2
4
  declare class RemoteRuntimeModule extends RuntimeModule {
3
- constructor();
4
- /**
5
- * @returns {string | null} runtime code
6
- */
7
- generate(): string | null;
5
+ constructor();
8
6
  }
9
- export default RemoteRuntimeModule;
7
+ declare namespace RemoteRuntimeModule {
8
+ export { Chunk, RemoteModule };
9
+ }
10
+ import RuntimeModule = require('webpack/lib/RuntimeModule');
11
+ type Chunk = import('webpack/lib/Chunk');
12
+ type RemoteModule = import('./RemoteModule');
@@ -1,10 +1,4 @@
1
- declare const dependencies: typeof import("webpack").dependencies;
2
- declare class RemoteToExternalDependency extends dependencies.ModuleDependency {
3
- /**
4
- * @param {string} request request
5
- */
6
- constructor(request: string);
7
- get type(): string;
8
- get category(): string;
9
- }
10
1
  export default RemoteToExternalDependency;
2
+ declare class RemoteToExternalDependency extends ModuleDependency {}
3
+ // eslint-disable-next-line @typescript-eslint/no-restricted-imports
4
+ import ModuleDependency from 'webpack/lib/dependencies/ModuleDependency';
@@ -1,4 +1,6 @@
1
- export type ContainerOptionsFormat<T> = (string | Record<string, string | string[] | T>)[] | Record<string, string | string[] | T>;
1
+ export type ContainerOptionsFormat<T> =
2
+ | (string | Record<string, string | string[] | T>)[]
3
+ | Record<string, string | string[] | T>;
2
4
  /**
3
5
  * @template T
4
6
  * @template R
@@ -7,12 +9,18 @@ export type ContainerOptionsFormat<T> = (string | Record<string, string | string
7
9
  * @param {function(T, string) : R} normalizeOptions normalize a complex item
8
10
  * @returns {[string, R][]} parsed options
9
11
  */
10
- declare const parseOptions: <T, R>(options: ContainerOptionsFormat<T>, normalizeSimple: (item: string | string[], name: string) => R, normalizeOptions: (item: T, name: string) => R) => [string, R][];
12
+ export function parseOptions<T, R>(
13
+ options: ContainerOptionsFormat<T>,
14
+ normalizeSimple: (arg0: string | string[], arg1: string) => R,
15
+ normalizeOptions: (arg0: T, arg1: string) => R,
16
+ ): [string, R][];
11
17
  /**
12
18
  * @template T
13
19
  * @param {string} scope scope name
14
20
  * @param {ContainerOptionsFormat<T>} options options passed by the user
15
21
  * @returns {Record<string, string | string[] | T>} options to spread or pass
16
22
  */
17
- declare const scope: <T>(scope: string, options: ContainerOptionsFormat<T>) => Record<string, string | string[] | T>;
18
- export { parseOptions, scope };
23
+ export function scope<T>(
24
+ scope: string,
25
+ options: ContainerOptionsFormat<T>,
26
+ ): Record<string, string | string[] | T>;
@@ -138,11 +138,20 @@ class FederationRuntimePlugin {
138
138
  paths: [this.options.implementation],
139
139
  });
140
140
  }
141
+ if (Array.isArray(compiler.options.resolve.alias)) {
142
+ return;
143
+ }
141
144
  compiler.options.resolve.alias = {
142
145
  ...compiler.options.resolve.alias,
143
- '@module-federation/runtime$': runtimePath,
144
- '@module-federation/runtime-tools$': this.options?.implementation || RuntimeToolsPath,
145
146
  };
147
+ if (!compiler.options.resolve.alias['@module-federation/runtime$']) {
148
+ compiler.options.resolve.alias['@module-federation/runtime$'] =
149
+ runtimePath;
150
+ }
151
+ if (!compiler.options.resolve.alias['@module-federation/runtime-tools$']) {
152
+ compiler.options.resolve.alias['@module-federation/runtime-tools$'] =
153
+ this.options?.implementation || RuntimeToolsPath;
154
+ }
146
155
  }
147
156
  apply(compiler) {
148
157
  const useModuleFederationPlugin = compiler.options.plugins.find((p) => {
@@ -1 +1 @@
1
- {"version":3,"file":"FederationRuntimePlugin.js","sourceRoot":"","sources":["../../../../../src/lib/container/runtime/FederationRuntimePlugin.ts"],"names":[],"mappings":";;;;;AACA,0FAAqF;AACrF,wFAAgE;AAChE,mCAKiB;AACjB,4CAAoB;AACpB,gDAAwB;AACxB,0CAAuC;AAGvC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,OAAO,CAC1C,IAAA,6CAAoB,EAAC,SAAS,CAAC,CACJ,CAAC;AAC9B,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAC5B,IAAA,6CAAoB,EAAC,qBAAqB,CAAC,CACJ,CAAC;AAE1C,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAE7E,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CACxC,4CAA4C,EAC5C;IACE,KAAK,EAAE,CAAC,gBAAgB,CAAC;CAC1B,CACF,CAAC;AACF,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC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,CAAC;QAED,IAAI,CAAC,kBAAkB,IAAI,CAAC,yBAAyB,EAAE,CAAC;YACtD,IAAI,CAAC,OAAO,GAAG;gBACb,OAAO,EAAE,EAAE;gBACX,GAAG,IAAI,CAAC,OAAO;aAChB,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC;YACxC,sJAAsJ;YACtJ,IAAI,CAAC,OAAO,CAAC,IAAI;gBACf,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,IAAI,aAAa,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QACpE,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC;YACjC,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,OAAO,CACvC,4CAA4C,EAC5C;gBACE,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;aACrC,CACF,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC5B,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;CACF;AAED,kBAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"FederationRuntimePlugin.js","sourceRoot":"","sources":["../../../../../src/lib/container/runtime/FederationRuntimePlugin.ts"],"names":[],"mappings":";;;;;AACA,0FAAqF;AACrF,wFAAgE;AAChE,mCAKiB;AACjB,4CAAoB;AACpB,gDAAwB;AACxB,0CAAuC;AAGvC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,OAAO,CAC1C,IAAA,6CAAoB,EAAC,SAAS,CAAC,CACJ,CAAC;AAC9B,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAC5B,IAAA,6CAAoB,EAAC,qBAAqB,CAAC,CACJ,CAAC;AAE1C,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BACE,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;aACrC,CACF,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC5B,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;CACF;AAED,kBAAe,uBAAuB,CAAC"}
@@ -1,10 +1,3 @@
1
- declare const dependencies: typeof import("webpack").dependencies;
2
- declare class ConsumeSharedFallbackDependency extends dependencies.ModuleDependency {
3
- /**
4
- * @param {string} request the request
5
- */
6
- constructor(request: string);
7
- get type(): string;
8
- get category(): string;
9
- }
10
- export default ConsumeSharedFallbackDependency;
1
+ export = ConsumeSharedFallbackDependency;
2
+ declare class ConsumeSharedFallbackDependency extends ModuleDependency {}
3
+ import ModuleDependency = require('webpack/lib/dependencies/ModuleDependency');