@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.
- package/dist/package.json +2 -1
- package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +57 -0
- package/dist/src/declarations/plugins/container/ContainerPlugin.d.ts +187 -0
- package/dist/src/declarations/plugins/container/ContainerReferencePlugin.d.ts +80 -0
- package/dist/src/declarations/plugins/container/Dependency.d.ts +285 -0
- package/dist/src/declarations/plugins/container/Module.d.ts +138 -0
- package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +33 -0
- package/dist/src/declarations/plugins/container/ModuleFederationPlugin.d.ts +320 -0
- package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +4 -0
- package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +28 -0
- package/dist/src/declarations/plugins/container/Template.d.ts +198 -0
- package/dist/src/declarations/plugins/container/WebpackError.d.ts +32 -0
- package/dist/src/declarations/plugins/container/WebpackOptions.d.ts +140 -0
- package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +74 -0
- package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +67 -0
- package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +78 -0
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +22 -20
- package/dist/src/lib/container/ContainerEntryModule.d.ts +70 -81
- package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +14 -10
- package/dist/src/lib/container/ContainerExposedDependency.d.ts +18 -25
- package/dist/src/lib/container/ContainerPlugin.d.ts +31 -10
- package/dist/src/lib/container/ContainerReferencePlugin.d.ts +27 -12
- package/dist/src/lib/container/FallbackDependency.d.ts +14 -20
- package/dist/src/lib/container/FallbackItemDependency.d.ts +3 -10
- package/dist/src/lib/container/FallbackModule.d.ts +52 -70
- package/dist/src/lib/container/FallbackModuleFactory.d.ts +10 -10
- package/dist/src/lib/container/ModuleFederationPlugin.d.ts +22 -15
- package/dist/src/lib/container/ModuleFederationPlugin.js +2 -2
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/lib/container/ModuleFederationPluginTypes.d.ts +271 -0
- package/dist/src/lib/container/ModuleFederationPluginTypes.js +8 -0
- package/dist/src/lib/container/ModuleFederationPluginTypes.js.map +1 -0
- package/dist/src/lib/container/RemoteModule.d.ts +88 -73
- package/dist/src/lib/container/RemoteRuntimeModule.d.ts +10 -7
- package/dist/src/lib/container/RemoteToExternalDependency.d.ts +3 -9
- package/dist/src/lib/container/options.d.ts +12 -4
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +11 -2
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -10
- package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +97 -104
- package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +28 -6
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +29 -11
- package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +3 -11
- package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +35 -37
- package/dist/src/lib/sharing/ProvideSharedModule.d.ts +65 -83
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +17 -10
- package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +37 -19
- package/dist/src/lib/sharing/SharePlugin.d.ts +39 -13
- package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
- package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +12 -8
- package/dist/src/lib/sharing/utils.d.ts +21 -29
- package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +9 -7
- package/package.json +5 -4
|
@@ -1,106 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Module: typeof import("webpack").Module;
|
|
3
|
-
export type ConsumeOptions = {
|
|
4
|
-
/**
|
|
5
|
-
* fallback request
|
|
6
|
-
*/
|
|
7
|
-
import?: string | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* resolved fallback request
|
|
10
|
-
*/
|
|
11
|
-
importResolved?: string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* global share key
|
|
14
|
-
*/
|
|
15
|
-
shareKey: string;
|
|
16
|
-
/**
|
|
17
|
-
* share scope
|
|
18
|
-
*/
|
|
19
|
-
shareScope: string;
|
|
20
|
-
/**
|
|
21
|
-
* version requirement
|
|
22
|
-
*/
|
|
23
|
-
requiredVersion: import('webpack/lib/util/semver').SemVerRange | false | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* package name to determine required version automatically
|
|
26
|
-
*/
|
|
27
|
-
packageName: string;
|
|
28
|
-
/**
|
|
29
|
-
* don't use shared version even if version isn't valid
|
|
30
|
-
*/
|
|
31
|
-
strictVersion: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* use single global version
|
|
34
|
-
*/
|
|
35
|
-
singleton: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* include the fallback module in a sync way
|
|
38
|
-
*/
|
|
39
|
-
eager: boolean;
|
|
40
|
-
};
|
|
1
|
+
export = ConsumeSharedModule;
|
|
41
2
|
declare class ConsumeSharedModule extends Module {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
build(options: WebpackOptions, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (error?: WebpackError) => void): void;
|
|
77
|
-
/**
|
|
78
|
-
* @returns {Set<string>} types available (do not mutate)
|
|
79
|
-
*/
|
|
80
|
-
getSourceTypes(): Set<string>;
|
|
81
|
-
/**
|
|
82
|
-
* @param {string=} type the source type for which the size should be estimated
|
|
83
|
-
* @returns {number} the estimated size of the module (must be non-zero)
|
|
84
|
-
*/
|
|
85
|
-
size(type?: string): number;
|
|
86
|
-
/**
|
|
87
|
-
* @param {Hash} hash the hash used to track dependencies
|
|
88
|
-
* @param {UpdateHashContext} context context
|
|
89
|
-
* @returns {void}
|
|
90
|
-
*/
|
|
91
|
-
updateHash(hash: Hash, context: UpdateHashContext): void;
|
|
92
|
-
/**
|
|
93
|
-
* @param {CodeGenerationContext} context context for code generation
|
|
94
|
-
* @returns {CodeGenerationResult} result
|
|
95
|
-
*/
|
|
96
|
-
codeGeneration({ chunkGraph, moduleGraph, runtimeTemplate, }: CodeGenerationContext): CodeGenerationResult;
|
|
97
|
-
/**
|
|
98
|
-
* @param {ObjectSerializerContext} context context
|
|
99
|
-
*/
|
|
100
|
-
serialize(context: ObjectSerializerContext): void;
|
|
101
|
-
/**
|
|
102
|
-
* @param {ObjectDeserializerContext} context context
|
|
103
|
-
*/
|
|
104
|
-
deserialize(context: ObjectDeserializerContext): void;
|
|
3
|
+
/**
|
|
4
|
+
* @param {string} context context
|
|
5
|
+
* @param {ConsumeOptions} options consume options
|
|
6
|
+
*/
|
|
7
|
+
constructor(context: string, options: ConsumeOptions);
|
|
8
|
+
options: ConsumeOptions;
|
|
9
|
+
/**
|
|
10
|
+
* @param {Hash} hash the hash used to track dependencies
|
|
11
|
+
* @param {UpdateHashContext} context context
|
|
12
|
+
* @returns {void}
|
|
13
|
+
*/
|
|
14
|
+
updateHash(hash: Hash, context: UpdateHashContext): void;
|
|
15
|
+
}
|
|
16
|
+
declare namespace ConsumeSharedModule {
|
|
17
|
+
export {
|
|
18
|
+
WebpackOptions,
|
|
19
|
+
ChunkGraph,
|
|
20
|
+
ChunkGroup,
|
|
21
|
+
Compilation,
|
|
22
|
+
UpdateHashContext,
|
|
23
|
+
CodeGenerationContext,
|
|
24
|
+
CodeGenerationResult,
|
|
25
|
+
LibIdentOptions,
|
|
26
|
+
NeedBuildContext,
|
|
27
|
+
RequestShortener,
|
|
28
|
+
ResolverWithOptions,
|
|
29
|
+
WebpackError,
|
|
30
|
+
ObjectDeserializerContext,
|
|
31
|
+
ObjectSerializerContext,
|
|
32
|
+
Hash,
|
|
33
|
+
InputFileSystem,
|
|
34
|
+
SemVerRange,
|
|
35
|
+
ConsumeOptions,
|
|
36
|
+
};
|
|
105
37
|
}
|
|
106
|
-
|
|
38
|
+
import Module = require('webpack/lib/Module');
|
|
39
|
+
type ConsumeOptions = {
|
|
40
|
+
/**
|
|
41
|
+
* fallback request
|
|
42
|
+
*/
|
|
43
|
+
import?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* resolved fallback request
|
|
46
|
+
*/
|
|
47
|
+
importResolved?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* global share key
|
|
50
|
+
*/
|
|
51
|
+
shareKey: string;
|
|
52
|
+
/**
|
|
53
|
+
* share scope
|
|
54
|
+
*/
|
|
55
|
+
shareScope: string;
|
|
56
|
+
/**
|
|
57
|
+
* version requirement
|
|
58
|
+
*/
|
|
59
|
+
requiredVersion:
|
|
60
|
+
| import('webpack/lib/util/semver').SemVerRange
|
|
61
|
+
| false
|
|
62
|
+
| undefined;
|
|
63
|
+
/**
|
|
64
|
+
* package name to determine required version automatically
|
|
65
|
+
*/
|
|
66
|
+
packageName: string;
|
|
67
|
+
/**
|
|
68
|
+
* don't use shared version even if version isn't valid
|
|
69
|
+
*/
|
|
70
|
+
strictVersion: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* use single global version
|
|
73
|
+
*/
|
|
74
|
+
singleton: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* include the fallback module in a sync way
|
|
77
|
+
*/
|
|
78
|
+
eager: boolean;
|
|
79
|
+
};
|
|
80
|
+
type Hash = import('webpack/lib/util/Hash');
|
|
81
|
+
type UpdateHashContext = import('webpack/lib/Dependency').UpdateHashContext;
|
|
82
|
+
type WebpackOptions = any;
|
|
83
|
+
type ChunkGraph = import('webpack/lib/ChunkGraph');
|
|
84
|
+
type ChunkGroup = import('webpack/lib/ChunkGroup');
|
|
85
|
+
type Compilation = import('webpack/lib/Compilation');
|
|
86
|
+
type CodeGenerationContext = import('webpack/lib/Module').CodeGenerationContext;
|
|
87
|
+
type CodeGenerationResult = import('webpack/lib/Module').CodeGenerationResult;
|
|
88
|
+
type LibIdentOptions = import('webpack/lib/Module').LibIdentOptions;
|
|
89
|
+
type NeedBuildContext = import('webpack/lib/Module').NeedBuildContext;
|
|
90
|
+
type RequestShortener = import('webpack/lib/RequestShortener');
|
|
91
|
+
type ResolverWithOptions =
|
|
92
|
+
import('webpack/lib/ResolverFactory').ResolverWithOptions;
|
|
93
|
+
type WebpackError = import('webpack/lib/WebpackError');
|
|
94
|
+
type ObjectDeserializerContext =
|
|
95
|
+
import('webpack/lib/serialization/ObjectMiddleware').ObjectDeserializerContext;
|
|
96
|
+
type ObjectSerializerContext =
|
|
97
|
+
import('webpack/lib/serialization/ObjectMiddleware').ObjectSerializerContext;
|
|
98
|
+
type InputFileSystem = import('webpack/lib/util/fs').InputFileSystem;
|
|
99
|
+
type SemVerRange = import('webpack/lib/util/semver').SemVerRange;
|
|
@@ -1,8 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
import { ConsumeSharedPluginOptions } from '../../declarations/plugins/sharing/ConsumeSharedPlugin';
|
|
1
|
+
export = ConsumeSharedPlugin;
|
|
3
2
|
declare class ConsumeSharedPlugin {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @param {ConsumeSharedPluginOptions} options options
|
|
5
|
+
*/
|
|
6
|
+
constructor(options: any);
|
|
7
|
+
/** @type {[string, ConsumeOptions][]} */
|
|
8
|
+
_consumes: [string, ConsumeOptions][];
|
|
9
|
+
/**
|
|
10
|
+
* Apply the plugin
|
|
11
|
+
* @param {Compiler} compiler the compiler instance
|
|
12
|
+
* @returns {void}
|
|
13
|
+
*/
|
|
14
|
+
apply(compiler: Compiler): void;
|
|
7
15
|
}
|
|
8
|
-
|
|
16
|
+
declare namespace ConsumeSharedPlugin {
|
|
17
|
+
export {
|
|
18
|
+
ConsumeSharedPluginOptions,
|
|
19
|
+
ConsumesConfig,
|
|
20
|
+
Compiler,
|
|
21
|
+
ResolveOptionsWithDependencyType,
|
|
22
|
+
ConsumeOptions,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
type ConsumeOptions = import('./ConsumeSharedModule').ConsumeOptions;
|
|
26
|
+
type Compiler = import('webpack/lib/Compiler');
|
|
27
|
+
type ConsumeSharedPluginOptions = any;
|
|
28
|
+
type ConsumesConfig = any;
|
|
29
|
+
type ResolveOptionsWithDependencyType =
|
|
30
|
+
import('webpack/lib/ResolverFactory').ResolveOptionsWithDependencyType;
|
|
@@ -25,7 +25,7 @@ const WebpackError = require((0, normalize_webpack_path_1.normalizeWebpackPath)(
|
|
|
25
25
|
const createSchemaValidation = require((0, normalize_webpack_path_1.normalizeWebpackPath)('webpack/lib/util/create-schema-validation'));
|
|
26
26
|
const validate = createSchemaValidation(
|
|
27
27
|
//eslint-disable-next-line
|
|
28
|
-
require('webpack/schemas/plugins/sharing/ConsumeSharedPlugin.check.js'), () => require('webpack/schemas/plugins/sharing/ConsumeSharedPlugin.json'), {
|
|
28
|
+
require((0, normalize_webpack_path_1.normalizeWebpackPath)('webpack/schemas/plugins/sharing/ConsumeSharedPlugin.check.js')), () => require((0, normalize_webpack_path_1.normalizeWebpackPath)('webpack/schemas/plugins/sharing/ConsumeSharedPlugin.json')), {
|
|
29
29
|
name: 'Consume Shared Plugin',
|
|
30
30
|
baseDataPath: 'options',
|
|
31
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumeSharedPlugin.js","sourceRoot":"","sources":["../../../../src/lib/sharing/ConsumeSharedPlugin.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAEF,YAAY,CAAC;;;;;AACb,0FAGuD;AAEvD,kDAAoD;AAGpD,mEAAgE;AAChE,mCAIiB;AAEjB,wGAAgF;AAChF,gFAAwD;AACxD,8FAAsE;AACtE,8FAAsE;AACtE,2GAAmF;AACnF,8EAAsD;AAGtD,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAC5B,IAAA,6CAAoB,EAAC,yBAAyB,CAAC,CACJ,CAAC;AAC9C,MAAM,mBAAmB,GAAG,OAAO,CACjC,IAAA,6CAAoB,EAAC,iCAAiC,CAAC,CACJ,CAAC;AACtD,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAChC,IAAA,6CAAoB,EAAC,SAAS,CAAC,CACJ,CAAC;AAC9B,MAAM,OAAO,GAAG,OAAO,CACrB,IAAA,6CAAoB,EAAC,0BAA0B,CAAC,CACJ,CAAC;AAC/C,MAAM,YAAY,GAAG,OAAO,CAC1B,IAAA,6CAAoB,EAAC,0BAA0B,CAAC,CACJ,CAAC;AAC/C,MAAM,sBAAsB,GAAG,OAAO,CACpC,IAAA,6CAAoB,EAAC,2CAA2C,CAAC,CACJ,CAAC;AAEhE,MAAM,QAAQ,GAAG,sBAAsB;AACrC,0BAA0B;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ConsumeSharedPlugin.js","sourceRoot":"","sources":["../../../../src/lib/sharing/ConsumeSharedPlugin.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAEF,YAAY,CAAC;;;;;AACb,0FAGuD;AAEvD,kDAAoD;AAGpD,mEAAgE;AAChE,mCAIiB;AAEjB,wGAAgF;AAChF,gFAAwD;AACxD,8FAAsE;AACtE,8FAAsE;AACtE,2GAAmF;AACn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I,OAAO,KAAK,SAAS,EAAE,CAAC;wBAC1B,OAAO,yBAAyB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;oBAC/D,CAAC;gBACH,CAAC;gBACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;YAC3B,CAAC,CACF,CAAC;YACF,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,GAAG,CACrD,WAAW,EACX,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;gBACb,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;gBAC/B,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;gBACpC,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC;gBAC/C,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;gBACtC,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;gBAC1C,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;gBACvC,WAAW,CAAC,gBAAgB,CAC1B,KAAK;gBACL,YAAY;gBACZ,IAAI,oCAA0B,CAAC,GAAG,CAAC,CACpC,CAAC;gBACF,mHAAmH;gBACnH,WAAW,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,4BAAkB,EAAE,CAAC,CAAC;YAChE,CAAC,CACF,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -1,13 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
export = ConsumeSharedRuntimeModule;
|
|
2
|
+
/** @typedef {import("webpack-sources").Source} Source */
|
|
3
|
+
/** @typedef {import("webpack/lib/Chunk")} Chunk */
|
|
4
|
+
/** @typedef {import("webpack/lib/ChunkGraph")} ChunkGraph */
|
|
5
|
+
/** @typedef {import("webpack/lib/Compilation")} Compilation */
|
|
6
|
+
/** @typedef {import("webpack/lib/Module")} Module */
|
|
7
|
+
/** @typedef {import("./ConsumeSharedModule")} ConsumeSharedModule */
|
|
2
8
|
declare class ConsumeSharedRuntimeModule extends RuntimeModule {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @returns {string | null} runtime code
|
|
10
|
-
*/
|
|
11
|
-
generate(): string | null;
|
|
9
|
+
/**
|
|
10
|
+
* @param {ReadonlySet<string>} runtimeRequirements runtime requirements
|
|
11
|
+
*/
|
|
12
|
+
constructor(runtimeRequirements: ReadonlySet<string>);
|
|
13
|
+
_runtimeRequirements: ReadonlySet<string>;
|
|
12
14
|
}
|
|
13
|
-
|
|
15
|
+
declare namespace ConsumeSharedRuntimeModule {
|
|
16
|
+
export {
|
|
17
|
+
Source,
|
|
18
|
+
Chunk,
|
|
19
|
+
ChunkGraph,
|
|
20
|
+
Compilation,
|
|
21
|
+
Module,
|
|
22
|
+
ConsumeSharedModule,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
import RuntimeModule = require('webpack/lib/RuntimeModule');
|
|
26
|
+
type Source = import('webpack-sources').Source;
|
|
27
|
+
type Chunk = import('webpack/lib/Chunk');
|
|
28
|
+
type ChunkGraph = import('webpack/lib/ChunkGraph');
|
|
29
|
+
type Compilation = import('webpack/lib/Compilation');
|
|
30
|
+
type Module = import('webpack/lib/Module');
|
|
31
|
+
type ConsumeSharedModule = import('./ConsumeSharedModule');
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare class ProvideForSharedDependency extends
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @param request request string
|
|
6
|
-
*/
|
|
7
|
-
constructor(request: string);
|
|
8
|
-
get type(): string;
|
|
9
|
-
get category(): string;
|
|
10
|
-
}
|
|
11
|
-
export default ProvideForSharedDependency;
|
|
1
|
+
export = ProvideForSharedDependency;
|
|
2
|
+
declare class ProvideForSharedDependency extends ModuleDependency {}
|
|
3
|
+
import ModuleDependency = require('webpack/lib/dependencies/ModuleDependency');
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @param {ObjectSerializerContext} context context
|
|
30
|
-
*/
|
|
31
|
-
serialize(context: ObjectSerializerContext): void;
|
|
32
|
-
/**
|
|
33
|
-
* @param {ObjectDeserializerContext} context context
|
|
34
|
-
* @returns {ProvideSharedDependency} deserialize fallback dependency
|
|
35
|
-
*/
|
|
36
|
-
static deserialize(context: ObjectDeserializerContext): ProvideSharedDependency;
|
|
1
|
+
export class ProvideSharedDependency extends Dependency {
|
|
2
|
+
/**
|
|
3
|
+
* @param {ObjectDeserializerContext} context context
|
|
4
|
+
* @returns {ProvideSharedDependency} deserialize fallback dependency
|
|
5
|
+
*/
|
|
6
|
+
static deserialize(
|
|
7
|
+
context: ObjectDeserializerContext,
|
|
8
|
+
): ProvideSharedDependency;
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} shareScope share scope
|
|
11
|
+
* @param {string} name module name
|
|
12
|
+
* @param {string | false} version version
|
|
13
|
+
* @param {string} request request
|
|
14
|
+
* @param {boolean} eager true, if this is an eager dependency
|
|
15
|
+
*/
|
|
16
|
+
constructor(
|
|
17
|
+
shareScope: string,
|
|
18
|
+
name: string,
|
|
19
|
+
version: string | false,
|
|
20
|
+
request: string,
|
|
21
|
+
eager: boolean,
|
|
22
|
+
);
|
|
23
|
+
shareScope: string;
|
|
24
|
+
name: string;
|
|
25
|
+
version: string | false;
|
|
26
|
+
request: string;
|
|
27
|
+
eager: boolean;
|
|
37
28
|
}
|
|
38
|
-
|
|
29
|
+
declare namespace ProvideSharedDependency {
|
|
30
|
+
export { shareScope, ObjectDeserializerContext, ObjectSerializerContext };
|
|
31
|
+
}
|
|
32
|
+
export type ObjectDeserializerContext =
|
|
33
|
+
import('webpack/lib/serialization/ObjectMiddleware').ObjectDeserializerContext;
|
|
34
|
+
declare let shareScope: any;
|
|
35
|
+
export type ObjectSerializerContext =
|
|
36
|
+
import('webpack/lib/serialization/ObjectMiddleware').ObjectSerializerContext;
|
|
@@ -1,85 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
import type WebpackError from 'webpack/lib/WebpackError';
|
|
3
|
-
import type { CodeGenerationContext, CodeGenerationResult, LibIdentOptions, NeedBuildContext, RequestShortener, ResolverWithOptions, ObjectDeserializerContext, ObjectSerializerContext } from 'webpack/lib/Module';
|
|
4
|
-
import type { InputFileSystem } from 'webpack/lib/util/fs';
|
|
5
|
-
import type { WebpackOptionsNormalized as WebpackOptions } from 'webpack/declarations/WebpackOptions';
|
|
6
|
-
declare const Module: typeof import("webpack").Module;
|
|
7
|
-
/**
|
|
8
|
-
* @class
|
|
9
|
-
* @extends {Module}
|
|
10
|
-
*/
|
|
1
|
+
export = ProvideSharedModule;
|
|
11
2
|
declare class ProvideSharedModule extends Module {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @param {RequestShortener} requestShortener the request shortener
|
|
38
|
-
* @returns {string} a user readable identifier of the module
|
|
39
|
-
*/
|
|
40
|
-
readableIdentifier(requestShortener: RequestShortener): string;
|
|
41
|
-
/**
|
|
42
|
-
* @param {LibIdentOptions} options options
|
|
43
|
-
* @returns {string | null} an identifier for library inclusion
|
|
44
|
-
*/
|
|
45
|
-
libIdent(options: LibIdentOptions): string | null;
|
|
46
|
-
/**
|
|
47
|
-
* @param {NeedBuildContext} context context info
|
|
48
|
-
* @param {function((WebpackError | null)=, boolean=): void} callback callback function, returns true, if the module needs a rebuild
|
|
49
|
-
* @returns {void}
|
|
50
|
-
*/
|
|
51
|
-
needBuild(context: NeedBuildContext, callback: (error?: WebpackError | null, needsRebuild?: boolean) => void): void;
|
|
52
|
-
/**
|
|
53
|
-
* @param {WebpackOptions} options webpack options
|
|
54
|
-
* @param {Compilation} compilation the compilation
|
|
55
|
-
* @param {ResolverWithOptions} resolver the resolver
|
|
56
|
-
* @param {InputFileSystem} fs the file system
|
|
57
|
-
* @param {function(WebpackError=): void} callback callback function
|
|
58
|
-
* @returns {void}
|
|
59
|
-
*/
|
|
60
|
-
build(options: WebpackOptions, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (error?: WebpackError) => void): void;
|
|
61
|
-
/**
|
|
62
|
-
* @param {string=} type the source type for which the size should be estimated
|
|
63
|
-
* @returns {number} the estimated size of the module (must be non-zero)
|
|
64
|
-
*/
|
|
65
|
-
size(type?: string): number;
|
|
66
|
-
/**
|
|
67
|
-
* @returns {Set<string>} types available (do not mutate)
|
|
68
|
-
*/
|
|
69
|
-
getSourceTypes(): Set<string>;
|
|
70
|
-
/**
|
|
71
|
-
* @param {CodeGenerationContext} context context for code generation
|
|
72
|
-
* @returns {CodeGenerationResult} result
|
|
73
|
-
*/
|
|
74
|
-
codeGeneration({ runtimeTemplate, moduleGraph, chunkGraph, }: CodeGenerationContext): CodeGenerationResult;
|
|
75
|
-
/**
|
|
76
|
-
* @param {ObjectSerializerContext} context context
|
|
77
|
-
*/
|
|
78
|
-
serialize(context: ObjectSerializerContext): void;
|
|
79
|
-
/**
|
|
80
|
-
* @param {ObjectDeserializerContext} context context
|
|
81
|
-
* @returns {ProvideSharedModule} deserialize fallback dependency
|
|
82
|
-
*/
|
|
83
|
-
static deserialize(context: ObjectDeserializerContext): ProvideSharedModule;
|
|
3
|
+
/**
|
|
4
|
+
* @param {ObjectDeserializerContext} context context
|
|
5
|
+
* @returns {ProvideSharedModule} deserialize fallback dependency
|
|
6
|
+
*/
|
|
7
|
+
static deserialize(context: ObjectDeserializerContext): ProvideSharedModule;
|
|
8
|
+
/**
|
|
9
|
+
* @param {string} shareScope shared scope name
|
|
10
|
+
* @param {string} name shared key
|
|
11
|
+
* @param {string | false} version version
|
|
12
|
+
* @param {string} request request to the provided module
|
|
13
|
+
* @param {boolean} eager include the module in sync way
|
|
14
|
+
*/
|
|
15
|
+
constructor(
|
|
16
|
+
shareScope: string,
|
|
17
|
+
name: string,
|
|
18
|
+
version: string | false,
|
|
19
|
+
request: string,
|
|
20
|
+
eager: boolean,
|
|
21
|
+
);
|
|
22
|
+
_shareScope: string;
|
|
23
|
+
_name: string;
|
|
24
|
+
_version: string | false;
|
|
25
|
+
_request: string;
|
|
26
|
+
_eager: boolean;
|
|
84
27
|
}
|
|
85
|
-
|
|
28
|
+
declare namespace ProvideSharedModule {
|
|
29
|
+
export {
|
|
30
|
+
WebpackOptions,
|
|
31
|
+
Chunk,
|
|
32
|
+
ChunkGraph,
|
|
33
|
+
ChunkGroup,
|
|
34
|
+
Compilation,
|
|
35
|
+
CodeGenerationContext,
|
|
36
|
+
CodeGenerationResult,
|
|
37
|
+
LibIdentOptions,
|
|
38
|
+
NeedBuildContext,
|
|
39
|
+
RequestShortener,
|
|
40
|
+
ResolverWithOptions,
|
|
41
|
+
WebpackError,
|
|
42
|
+
ObjectDeserializerContext,
|
|
43
|
+
ObjectSerializerContext,
|
|
44
|
+
Hash,
|
|
45
|
+
InputFileSystem,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
import Module = require('webpack/lib/Module');
|
|
49
|
+
type ObjectDeserializerContext =
|
|
50
|
+
import('webpack/lib/serialization/ObjectMiddleware').ObjectDeserializerContext;
|
|
51
|
+
type WebpackOptions = any;
|
|
52
|
+
type Chunk = import('webpack/lib/Chunk');
|
|
53
|
+
type ChunkGraph = import('webpack/lib/ChunkGraph');
|
|
54
|
+
type ChunkGroup = import('webpack/lib/ChunkGroup');
|
|
55
|
+
type Compilation = import('webpack/lib/Compilation');
|
|
56
|
+
type CodeGenerationContext = import('webpack/lib/Module').CodeGenerationContext;
|
|
57
|
+
type CodeGenerationResult = import('webpack/lib/Module').CodeGenerationResult;
|
|
58
|
+
type LibIdentOptions = import('webpack/lib/Module').LibIdentOptions;
|
|
59
|
+
type NeedBuildContext = import('webpack/lib/Module').NeedBuildContext;
|
|
60
|
+
type RequestShortener = import('webpack/lib/RequestShortener');
|
|
61
|
+
type ResolverWithOptions =
|
|
62
|
+
import('webpack/lib/ResolverFactory').ResolverWithOptions;
|
|
63
|
+
type WebpackError = import('webpack/lib/WebpackError');
|
|
64
|
+
type ObjectSerializerContext =
|
|
65
|
+
import('webpack/lib/serialization/ObjectMiddleware').ObjectSerializerContext;
|
|
66
|
+
type Hash = import('webpack/lib/util/Hash');
|
|
67
|
+
type InputFileSystem = import('webpack/lib/util/fs').InputFileSystem;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export = ProvideSharedModuleFactory;
|
|
2
|
+
/** @typedef {import("webpack/lib/ModuleFactory").ModuleFactoryCreateData} ModuleFactoryCreateData */
|
|
3
|
+
/** @typedef {import("webpack/lib/ModuleFactory").ModuleFactoryResult} ModuleFactoryResult */
|
|
4
|
+
/** @typedef {import("./ProvideSharedDependency")} ProvideSharedDependency */
|
|
5
|
+
declare class ProvideSharedModuleFactory extends ModuleFactory {}
|
|
6
|
+
declare namespace ProvideSharedModuleFactory {
|
|
7
|
+
export {
|
|
8
|
+
ModuleFactoryCreateData,
|
|
9
|
+
ModuleFactoryResult,
|
|
10
|
+
ProvideSharedDependency,
|
|
11
|
+
};
|
|
10
12
|
}
|
|
11
|
-
|
|
13
|
+
import ModuleFactory = require('webpack/lib/ModuleFactory');
|
|
14
|
+
type ModuleFactoryCreateData =
|
|
15
|
+
import('webpack/lib/ModuleFactory').ModuleFactoryCreateData;
|
|
16
|
+
type ModuleFactoryResult =
|
|
17
|
+
import('webpack/lib/ModuleFactory').ModuleFactoryResult;
|
|
18
|
+
type ProvideSharedDependency = import('./ProvideSharedDependency');
|