@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
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/enhanced",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "./src/index.js",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "files": [
@@ -16,6 +16,7 @@
16
16
  "exports": {
17
17
  ".": {
18
18
  "require": "./dist/src/index.js",
19
+ "import": "./dist/src/index.js",
19
20
  "types": "./dist/index.d.ts"
20
21
  }
21
22
  },
@@ -0,0 +1,57 @@
1
+ export class AsyncDependenciesBlock extends DependenciesBlock {
2
+ /**
3
+ * @param {(ChunkGroupOptions & { entryOptions?: EntryOptions }) | null} groupOptions options for the group
4
+ * @param {(DependencyLocation | null)=} loc the line of code
5
+ * @param {(string | null)=} request the request
6
+ */
7
+ constructor(
8
+ groupOptions:
9
+ | (ChunkGroupOptions & {
10
+ entryOptions?: EntryOptions;
11
+ })
12
+ | null,
13
+ loc?: (DependencyLocation | null) | undefined,
14
+ request?: (string | null) | undefined,
15
+ );
16
+ groupOptions: import('./ChunkGroup').RawChunkGroupOptions & {
17
+ name?: string | undefined;
18
+ } & {
19
+ entryOptions?: import('./Entrypoint').EntryOptions | undefined;
20
+ };
21
+ loc: import('./Dependency').DependencyLocation | null | undefined;
22
+ request: string | null | undefined;
23
+ _stringifiedGroupOptions: string | undefined;
24
+ /**
25
+ * @param {string | undefined} value The new chunk name
26
+ * @returns {void}
27
+ */
28
+ set chunkName(arg: string | undefined);
29
+ /**
30
+ * @returns {string | undefined} The name of the chunk
31
+ */
32
+ get chunkName(): string | undefined;
33
+ set module(arg: any);
34
+ get module(): any;
35
+ }
36
+ declare namespace AsyncDependenciesBlock {
37
+ export {
38
+ ChunkGraph,
39
+ ChunkGroup,
40
+ ChunkGroupOptions,
41
+ DependencyLocation,
42
+ UpdateHashContext,
43
+ EntryOptions,
44
+ Module,
45
+ ObjectDeserializerContext,
46
+ ObjectSerializerContext,
47
+ Hash,
48
+ };
49
+ }
50
+ import DependenciesBlock = require('./DependenciesBlock');
51
+ type ChunkGroupOptions = import('./ChunkGroup').ChunkGroupOptions;
52
+ type EntryOptions = import('./Entrypoint').EntryOptions;
53
+ type DependencyLocation = import('./Dependency').DependencyLocation;
54
+ type ChunkGraph = import('./ChunkGraph');
55
+ type ChunkGroup = import('./ChunkGroup');
56
+ type UpdateHashContext = import('./Dependency').UpdateHashContext;
57
+ type Hash = import('./util/Hash');
@@ -0,0 +1,187 @@
1
+ /*
2
+ * This file was automatically generated.
3
+ * DO NOT MODIFY BY HAND.
4
+ * Run `yarn special-lint-fix` to update
5
+ */
6
+
7
+ /**
8
+ * 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.
9
+ */
10
+ export type Exposes = (ExposesItem | ExposesObject)[] | ExposesObject;
11
+ /**
12
+ * Module that should be exposed by this container.
13
+ */
14
+ export type ExposesItem = string;
15
+ /**
16
+ * Modules that should be exposed by this container.
17
+ */
18
+ export type ExposesItems = ExposesItem[];
19
+ /**
20
+ * Add a container for define/require functions in the AMD module.
21
+ */
22
+ export type AmdContainer = string;
23
+ /**
24
+ * Add a comment in the UMD wrapper.
25
+ */
26
+ export type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
27
+ /**
28
+ * Specify which export should be exposed as library.
29
+ */
30
+ export type LibraryExport = string[] | string;
31
+ /**
32
+ * The name of the library (some types allow unnamed libraries too).
33
+ */
34
+ export type LibraryName = string[] | string | LibraryCustomUmdObject;
35
+ /**
36
+ * 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).
37
+ */
38
+ export type LibraryType =
39
+ | (
40
+ | 'var'
41
+ | 'module'
42
+ | 'assign'
43
+ | 'assign-properties'
44
+ | 'this'
45
+ | 'window'
46
+ | 'self'
47
+ | 'global'
48
+ | 'commonjs'
49
+ | 'commonjs2'
50
+ | 'commonjs-module'
51
+ | 'commonjs-static'
52
+ | 'amd'
53
+ | 'amd-require'
54
+ | 'umd'
55
+ | 'umd2'
56
+ | 'jsonp'
57
+ | 'system'
58
+ )
59
+ | string;
60
+ /**
61
+ * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
62
+ */
63
+ export type UmdNamedDefine = boolean;
64
+ /**
65
+ * The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.
66
+ */
67
+ export type EntryRuntime = false | string;
68
+
69
+ export interface ContainerPluginOptions {
70
+ /**
71
+ * 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.
72
+ */
73
+ exposes: Exposes;
74
+ /**
75
+ * The filename for this container relative path inside the `output.path` directory.
76
+ */
77
+ filename?: string;
78
+ /**
79
+ * Options for library.
80
+ */
81
+ library?: LibraryOptions;
82
+ /**
83
+ * The name for this container.
84
+ */
85
+ name: string;
86
+ /**
87
+ * The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.
88
+ */
89
+ runtime?: EntryRuntime;
90
+ /**
91
+ * The name of the share scope which is shared with the host (defaults to 'default').
92
+ */
93
+ shareScope?: string;
94
+ /**
95
+ * Runtime plugin file paths or package name.
96
+ */
97
+ runtimePlugins?: string[];
98
+ }
99
+ /**
100
+ * Modules that should be exposed by this container. Property names are used as public paths.
101
+ */
102
+ export interface ExposesObject {
103
+ /**
104
+ * Modules that should be exposed by this container.
105
+ */
106
+ [k: string]: ExposesConfig | ExposesItem | ExposesItems;
107
+ }
108
+ /**
109
+ * Advanced configuration for modules that should be exposed by this container.
110
+ */
111
+ export interface ExposesConfig {
112
+ /**
113
+ * Request to a module that should be exposed by this container.
114
+ */
115
+ import: ExposesItem | ExposesItems;
116
+ /**
117
+ * Custom chunk name for the exposed module.
118
+ */
119
+ name?: string;
120
+ }
121
+ /**
122
+ * Options for library.
123
+ */
124
+ export interface LibraryOptions {
125
+ /**
126
+ * Add a container for define/require functions in the AMD module.
127
+ */
128
+ amdContainer?: AmdContainer;
129
+ /**
130
+ * Add a comment in the UMD wrapper.
131
+ */
132
+ auxiliaryComment?: AuxiliaryComment;
133
+ /**
134
+ * Specify which export should be exposed as library.
135
+ */
136
+ export?: LibraryExport;
137
+ /**
138
+ * The name of the library (some types allow unnamed libraries too).
139
+ */
140
+ name?: LibraryName;
141
+ /**
142
+ * 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).
143
+ */
144
+ type: LibraryType;
145
+ /**
146
+ * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
147
+ */
148
+ umdNamedDefine?: UmdNamedDefine;
149
+ }
150
+ /**
151
+ * Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.
152
+ */
153
+ export interface LibraryCustomUmdCommentObject {
154
+ /**
155
+ * Set comment for `amd` section in UMD.
156
+ */
157
+ amd?: string;
158
+ /**
159
+ * Set comment for `commonjs` (exports) section in UMD.
160
+ */
161
+ commonjs?: string;
162
+ /**
163
+ * Set comment for `commonjs2` (module.exports) section in UMD.
164
+ */
165
+ commonjs2?: string;
166
+ /**
167
+ * Set comment for `root` (global variable) section in UMD.
168
+ */
169
+ root?: string;
170
+ }
171
+ /**
172
+ * Description object for all UMD variants of the library name.
173
+ */
174
+ export interface LibraryCustomUmdObject {
175
+ /**
176
+ * Name of the exposed AMD library in the UMD.
177
+ */
178
+ amd?: string;
179
+ /**
180
+ * Name of the exposed commonjs export in the UMD.
181
+ */
182
+ commonjs?: string;
183
+ /**
184
+ * Name of the property exposed globally by a UMD library.
185
+ */
186
+ root?: string[] | string;
187
+ }
@@ -0,0 +1,80 @@
1
+ /*
2
+ * This file was automatically generated.
3
+ * DO NOT MODIFY BY HAND.
4
+ * Run `yarn special-lint-fix` to update
5
+ */
6
+
7
+ /**
8
+ * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
9
+ */
10
+ export type ExternalsType =
11
+ | 'var'
12
+ | 'module'
13
+ | 'assign'
14
+ | 'this'
15
+ | 'window'
16
+ | 'self'
17
+ | 'global'
18
+ | 'commonjs'
19
+ | 'commonjs2'
20
+ | 'commonjs-module'
21
+ | 'commonjs-static'
22
+ | 'amd'
23
+ | 'amd-require'
24
+ | 'umd'
25
+ | 'umd2'
26
+ | 'jsonp'
27
+ | 'system'
28
+ | 'promise'
29
+ | 'import'
30
+ | 'script'
31
+ | 'node-commonjs';
32
+ /**
33
+ * 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.
34
+ */
35
+ export type Remotes = (RemotesItem | RemotesObject)[] | RemotesObject;
36
+ /**
37
+ * Container location from which modules should be resolved and loaded at runtime.
38
+ */
39
+ export type RemotesItem = string;
40
+ /**
41
+ * Container locations from which modules should be resolved and loaded at runtime.
42
+ */
43
+ export type RemotesItems = RemotesItem[];
44
+
45
+ export interface ContainerReferencePluginOptions {
46
+ /**
47
+ * The external type of the remote containers.
48
+ */
49
+ remoteType: ExternalsType;
50
+ /**
51
+ * 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.
52
+ */
53
+ remotes: Remotes;
54
+ /**
55
+ * The name of the share scope shared with all remotes (defaults to 'default').
56
+ */
57
+ shareScope?: string;
58
+ }
59
+ /**
60
+ * Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.
61
+ */
62
+ export interface RemotesObject {
63
+ /**
64
+ * Container locations from which modules should be resolved and loaded at runtime.
65
+ */
66
+ [k: string]: RemotesConfig | RemotesItem | RemotesItems;
67
+ }
68
+ /**
69
+ * Advanced configuration for container locations from which modules should be resolved and loaded at runtime.
70
+ */
71
+ export interface RemotesConfig {
72
+ /**
73
+ * Container locations from which modules should be resolved and loaded at runtime.
74
+ */
75
+ external: RemotesItem | RemotesItems;
76
+ /**
77
+ * The name of the share scope shared with this remote.
78
+ */
79
+ shareScope?: string;
80
+ }
@@ -0,0 +1,285 @@
1
+ export class Dependency {
2
+ /** @type {Module | undefined} */
3
+ _parentModule: Module | undefined;
4
+ /** @type {DependenciesBlock | undefined} */
5
+ _parentDependenciesBlock: DependenciesBlock | undefined;
6
+ /** @type {number} */
7
+ _parentDependenciesBlockIndex: number;
8
+ /** @type {boolean} */
9
+ weak: boolean;
10
+ /** @type {boolean} */
11
+ optional: boolean;
12
+ _locSL: number;
13
+ _locSC: number;
14
+ _locEL: number;
15
+ _locEC: number;
16
+ _locI: any;
17
+ _locN: any;
18
+ _loc:
19
+ | DependencyLocation
20
+ | (SyntheticDependencyLocation & RealDependencyLocation)
21
+ | undefined;
22
+ /**
23
+ * @returns {string} a display name for the type of dependency
24
+ */
25
+ get type(): string;
26
+ /**
27
+ * @returns {string} a dependency category, typical categories are "commonjs", "amd", "esm"
28
+ */
29
+ get category(): string;
30
+ set loc(arg: DependencyLocation);
31
+ /**
32
+ * @returns {DependencyLocation} location
33
+ */
34
+ get loc(): DependencyLocation;
35
+ /**
36
+ * @param {number} startLine start line
37
+ * @param {number} startColumn start column
38
+ * @param {number} endLine end line
39
+ * @param {number} endColumn end column
40
+ */
41
+ setLoc(
42
+ startLine: number,
43
+ startColumn: number,
44
+ endLine: number,
45
+ endColumn: number,
46
+ ): void;
47
+ /**
48
+ * @returns {string | undefined} a request context
49
+ */
50
+ getContext(): string | undefined;
51
+ /**
52
+ * @returns {string | null} an identifier to merge equal requests
53
+ */
54
+ getResourceIdentifier(): string | null;
55
+ /**
56
+ * @returns {boolean | TRANSITIVE} true, when changes to the referenced module could affect the referencing module; TRANSITIVE, when changes to the referenced module could affect referencing modules of the referencing module
57
+ */
58
+ couldAffectReferencingModule(): boolean | typeof TRANSITIVE;
59
+ /**
60
+ * Returns the referenced module and export
61
+ * @deprecated
62
+ * @param {ModuleGraph} moduleGraph module graph
63
+ * @returns {never} throws error
64
+ */
65
+ getReference(moduleGraph: ModuleGraph): never;
66
+ /**
67
+ * Returns list of exports referenced by this dependency
68
+ * @param {ModuleGraph} moduleGraph module graph
69
+ * @param {RuntimeSpec} runtime the runtime for which the module is analysed
70
+ * @returns {(string[] | ReferencedExport)[]} referenced exports
71
+ */
72
+ getReferencedExports(
73
+ moduleGraph: ModuleGraph,
74
+ runtime: RuntimeSpec,
75
+ ): (string[] | ReferencedExport)[];
76
+ /**
77
+ * @param {ModuleGraph} moduleGraph module graph
78
+ * @returns {null | false | function(ModuleGraphConnection, RuntimeSpec): ConnectionState} function to determine if the connection is active
79
+ */
80
+ getCondition(
81
+ moduleGraph: ModuleGraph,
82
+ ):
83
+ | false
84
+ | ((arg0: ModuleGraphConnection, arg1: RuntimeSpec) => ConnectionState)
85
+ | null;
86
+ /**
87
+ * Returns the exported names
88
+ * @param {ModuleGraph} moduleGraph module graph
89
+ * @returns {ExportsSpec | undefined} export names
90
+ */
91
+ getExports(moduleGraph: ModuleGraph): ExportsSpec | undefined;
92
+ /**
93
+ * Returns warnings
94
+ * @param {ModuleGraph} moduleGraph module graph
95
+ * @returns {WebpackError[] | null | undefined} warnings
96
+ */
97
+ getWarnings(moduleGraph: ModuleGraph): WebpackError[] | null | undefined;
98
+ /**
99
+ * Returns errors
100
+ * @param {ModuleGraph} moduleGraph module graph
101
+ * @returns {WebpackError[] | null | undefined} errors
102
+ */
103
+ getErrors(moduleGraph: ModuleGraph): WebpackError[] | null | undefined;
104
+ /**
105
+ * Update the hash
106
+ * @param {Hash} hash hash to be updated
107
+ * @param {UpdateHashContext} context context
108
+ * @returns {void}
109
+ */
110
+ updateHash(hash: Hash, context: UpdateHashContext): void;
111
+ /**
112
+ * implement this method to allow the occurrence order plugin to count correctly
113
+ * @returns {number} count how often the id is used in this dependency
114
+ */
115
+ getNumberOfIdOccurrences(): number;
116
+ /**
117
+ * @param {ModuleGraph} moduleGraph the module graph
118
+ * @returns {ConnectionState} how this dependency connects the module to referencing modules
119
+ */
120
+ getModuleEvaluationSideEffectsState(
121
+ moduleGraph: ModuleGraph,
122
+ ): ConnectionState;
123
+ /**
124
+ * @param {string} context context directory
125
+ * @returns {Module | null} a module
126
+ */
127
+ createIgnoredModule(context: string): Module | null;
128
+ /**
129
+ * @param {ObjectSerializerContext} context context
130
+ */
131
+ serialize({ write }: ObjectSerializerContext): void;
132
+ /**
133
+ * @param {ObjectDeserializerContext} context context
134
+ */
135
+ deserialize({ read }: ObjectDeserializerContext): void;
136
+ set module(arg: any);
137
+ get module(): any;
138
+ get disconnect(): any;
139
+ }
140
+ declare namespace Dependency {
141
+ export {
142
+ NO_EXPORTS_REFERENCED,
143
+ EXPORTS_OBJECT_REFERENCED,
144
+ TRANSITIVE,
145
+ Source,
146
+ ChunkGraph,
147
+ DependenciesBlock,
148
+ DependencyTemplates,
149
+ Module,
150
+ ModuleGraph,
151
+ ModuleGraphConnection,
152
+ ConnectionState,
153
+ RuntimeTemplate,
154
+ WebpackError,
155
+ ObjectDeserializerContext,
156
+ ObjectSerializerContext,
157
+ Hash,
158
+ RuntimeSpec,
159
+ UpdateHashContext,
160
+ SourcePosition,
161
+ RealDependencyLocation,
162
+ SyntheticDependencyLocation,
163
+ DependencyLocation,
164
+ ExportSpec,
165
+ ExportsSpec,
166
+ ReferencedExport,
167
+ };
168
+ }
169
+ type Module = import('./Module');
170
+ type DependenciesBlock = import('./DependenciesBlock');
171
+ type DependencyLocation = SyntheticDependencyLocation | RealDependencyLocation;
172
+ type SyntheticDependencyLocation = {
173
+ name: string;
174
+ index?: number | undefined;
175
+ };
176
+ type RealDependencyLocation = {
177
+ start: SourcePosition;
178
+ end?: SourcePosition | undefined;
179
+ index?: number | undefined;
180
+ };
181
+
182
+ declare const TRANSITIVE: unique symbol;
183
+ type ModuleGraph = import('./ModuleGraph');
184
+ type RuntimeSpec = import('./util/runtime').RuntimeSpec;
185
+ type ReferencedExport = {
186
+ /**
187
+ * name of the referenced export
188
+ */
189
+ name: string[];
190
+ /**
191
+ * when false, referenced export can not be mangled, defaults to true
192
+ */
193
+ canMangle?: boolean | undefined;
194
+ };
195
+ type ModuleGraphConnection = import('./ModuleGraphConnection');
196
+ type ConnectionState = import('./ModuleGraphConnection').ConnectionState;
197
+ type ExportsSpec = {
198
+ /**
199
+ * exported names, true for unknown exports or null for no exports
200
+ */
201
+ exports: (string | ExportSpec)[] | true | null;
202
+ /**
203
+ * when exports = true, list of unaffected exports
204
+ */
205
+ excludeExports?: Set<string> | undefined;
206
+ /**
207
+ * list of maybe prior exposed, but now hidden exports
208
+ */
209
+ hideExports?: Set<string> | undefined;
210
+ /**
211
+ * when reexported: from which module
212
+ */
213
+ from?: ModuleGraphConnection | undefined;
214
+ /**
215
+ * when reexported: with which priority
216
+ */
217
+ priority?: number | undefined;
218
+ /**
219
+ * can the export be renamed (defaults to true)
220
+ */
221
+ canMangle?: boolean | undefined;
222
+ /**
223
+ * are the exports terminal bindings that should be checked for export star conflicts
224
+ */
225
+ terminalBinding?: boolean | undefined;
226
+ /**
227
+ * module on which the result depends on
228
+ */
229
+ dependencies?: Module[] | undefined;
230
+ };
231
+ type WebpackError = import('./WebpackError');
232
+ type Hash = import('./util/Hash');
233
+ type UpdateHashContext = {
234
+ chunkGraph: ChunkGraph;
235
+ runtime: RuntimeSpec;
236
+ runtimeTemplate?: RuntimeTemplate | undefined;
237
+ };
238
+ type ObjectSerializerContext =
239
+ import('./serialization/ObjectMiddleware').ObjectSerializerContext;
240
+ type ObjectDeserializerContext =
241
+ import('./serialization/ObjectMiddleware').ObjectDeserializerContext;
242
+ declare const NO_EXPORTS_REFERENCED: string[][];
243
+ declare const EXPORTS_OBJECT_REFERENCED: string[][];
244
+ type Source = import('webpack-sources').Source;
245
+ type ChunkGraph = import('./ChunkGraph');
246
+ type DependencyTemplates = import('./DependencyTemplates');
247
+ type RuntimeTemplate = import('./RuntimeTemplate');
248
+ type SourcePosition = {
249
+ line: number;
250
+ column?: number | undefined;
251
+ };
252
+ type ExportSpec = {
253
+ /**
254
+ * the name of the export
255
+ */
256
+ name: string;
257
+ /**
258
+ * can the export be renamed (defaults to true)
259
+ */
260
+ canMangle?: boolean | undefined;
261
+ /**
262
+ * is the export a terminal binding that should be checked for export star conflicts
263
+ */
264
+ terminalBinding?: boolean | undefined;
265
+ /**
266
+ * nested exports
267
+ */
268
+ exports?: (string | ExportSpec)[] | undefined;
269
+ /**
270
+ * when reexported: from which module
271
+ */
272
+ from?: ModuleGraphConnection | undefined;
273
+ /**
274
+ * when reexported: from which export
275
+ */
276
+ export?: (string[] | null) | undefined;
277
+ /**
278
+ * when reexported: with which priority
279
+ */
280
+ priority?: number | undefined;
281
+ /**
282
+ * export is not visible, because another export blends over it
283
+ */
284
+ hidden?: boolean | undefined;
285
+ };