@module-federation/enhanced 2.0.1 → 2.2.0
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/CHANGELOG.md +2357 -0
- package/dist/README.md +213 -0
- package/dist/rstestmigrate.md +140 -0
- package/dist/src/_virtual/_rolldown/runtime.js +47 -0
- package/dist/src/index.d.ts +22 -19
- package/dist/src/index.js +47 -43
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/Constants.d.ts +25 -29
- package/dist/src/lib/Constants.js +136 -116
- package/dist/src/lib/Constants.js.map +1 -1
- package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -16
- package/dist/src/lib/container/AsyncBoundaryPlugin.js +137 -196
- package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +28 -23
- package/dist/src/lib/container/ContainerEntryDependency.js +39 -39
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModule.d.ts +93 -84
- package/dist/src/lib/container/ContainerEntryModule.js +219 -234
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -10
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +21 -25
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
- package/dist/src/lib/container/ContainerExposedDependency.d.ts +29 -24
- package/dist/src/lib/container/ContainerExposedDependency.js +47 -47
- package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -1
- package/dist/src/lib/container/ContainerPlugin.d.ts +12 -8
- package/dist/src/lib/container/ContainerPlugin.js +147 -211
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
- package/dist/src/lib/container/ContainerReferencePlugin.d.ts +16 -12
- package/dist/src/lib/container/ContainerReferencePlugin.js +74 -102
- package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/lib/container/FallbackDependency.d.ts +24 -19
- package/dist/src/lib/container/FallbackDependency.js +46 -44
- package/dist/src/lib/container/FallbackDependency.js.map +1 -1
- package/dist/src/lib/container/FallbackItemDependency.d.ts +13 -8
- package/dist/src/lib/container/FallbackItemDependency.js +24 -24
- package/dist/src/lib/container/FallbackItemDependency.js.map +1 -1
- package/dist/src/lib/container/FallbackModule.d.ts +82 -71
- package/dist/src/lib/container/FallbackModule.js +133 -145
- package/dist/src/lib/container/FallbackModule.js.map +1 -1
- package/dist/src/lib/container/FallbackModuleFactory.d.ts +15 -10
- package/dist/src/lib/container/FallbackModuleFactory.js +20 -24
- package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -1
- package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +11 -7
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js +125 -188
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.d.ts +20 -16
- package/dist/src/lib/container/ModuleFederationPlugin.js +143 -180
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/lib/container/RemoteModule.d.ts +79 -74
- package/dist/src/lib/container/RemoteModule.js +143 -153
- package/dist/src/lib/container/RemoteModule.js.map +1 -1
- package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -7
- package/dist/src/lib/container/RemoteRuntimeModule.js +86 -120
- package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/RemoteToExternalDependency.d.ts +13 -8
- package/dist/src/lib/container/RemoteToExternalDependency.js +25 -23
- package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -1
- package/dist/src/lib/container/constant.d.ts +3 -0
- package/dist/src/lib/container/constant.js +11 -14
- package/dist/src/lib/container/constant.js.map +1 -1
- package/dist/src/lib/container/options.d.ts +7 -3
- package/dist/src/lib/container/options.js +51 -69
- package/dist/src/lib/container/options.js.map +1 -1
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +14 -9
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +56 -64
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +23 -19
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +71 -101
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationModulesPlugin.d.ts +20 -16
- package/dist/src/lib/container/runtime/FederationModulesPlugin.js +55 -47
- package/dist/src/lib/container/runtime/FederationModulesPlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimeDependency.d.ts +9 -4
- package/dist/src/lib/container/runtime/FederationRuntimeDependency.js +16 -12
- package/dist/src/lib/container/runtime/FederationRuntimeDependency.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +16 -11
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js +39 -46
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +31 -18
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +266 -345
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +9 -4
- package/dist/src/lib/container/runtime/getFederationGlobal.js +43 -41
- package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -1
- package/dist/src/lib/container/runtime/utils.d.ts +24 -13
- package/dist/src/lib/container/runtime/utils.js +83 -101
- package/dist/src/lib/container/runtime/utils.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -68
- package/dist/src/lib/sharing/ConsumeSharedModule.js +186 -214
- package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -475
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +107 -125
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
- package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
- package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -39
- package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -76
- package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -82
- package/dist/src/lib/sharing/ProvideSharedModule.js +177 -184
- package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -550
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/SharePlugin.d.ts +53 -49
- package/dist/src/lib/sharing/SharePlugin.js +86 -100
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
- package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
- package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -100
- package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
- package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
- package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +18 -14
- package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +74 -128
- package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +39 -34
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +234 -322
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +16 -11
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +30 -28
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +28 -24
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +91 -95
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +29 -24
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +47 -43
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +20 -15
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +33 -29
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +85 -77
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +141 -153
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +15 -10
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +20 -24
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +21 -16
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +157 -231
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +14 -9
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +26 -27
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +18 -13
- package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +41 -49
- package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/utils.d.ts +27 -24
- package/dist/src/lib/sharing/utils.js +224 -367
- package/dist/src/lib/sharing/utils.js.map +1 -1
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
- package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
- package/dist/src/lib/startup/StartupHelpers.js +128 -178
- package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
- package/dist/src/prefetch.d.ts +3 -2
- package/dist/src/prefetch.js +17 -8
- package/dist/src/rspack.d.ts +3 -2
- package/dist/src/rspack.js +35 -11
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
- package/dist/src/runtime.d.ts +1 -1
- package/dist/src/runtime.js +11 -18
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
- package/dist/src/schemas/container/ContainerPlugin.check.js +958 -1218
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.d.ts +271 -268
- package/dist/src/schemas/container/ContainerPlugin.js +273 -361
- package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
- package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
- package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
- package/dist/src/schemas/container/ExternalsType.check.js +36 -62
- package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
- package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
- package/dist/src/schemas/container/ExternalsType.js +8 -11
- package/dist/src/schemas/container/ExternalsType.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3001 -4812
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +819 -814
- package/dist/src/schemas/container/ModuleFederationPlugin.js +780 -1053
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -768
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -194
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -238
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -804
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -181
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -229
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
- package/dist/src/schemas/sharing/SharePlugin.check.js +749 -965
- package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -242
- package/dist/src/schemas/sharing/SharePlugin.js +256 -293
- package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
- package/dist/src/utils.d.ts +3 -0
- package/dist/src/utils.js +35 -26
- package/dist/src/utils.js.map +1 -1
- package/dist/src/webpack.d.ts +2 -2
- package/dist/src/webpack.js +6 -40
- package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -4
- package/dist/src/wrapper/AsyncBoundaryPlugin.js +12 -11
- package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
- package/dist/src/wrapper/BaseWrapperPlugin.d.ts +18 -13
- package/dist/src/wrapper/BaseWrapperPlugin.js +39 -39
- package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -1
- package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -4
- package/dist/src/wrapper/ConsumeSharedPlugin.js +12 -11
- package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/wrapper/ContainerPlugin.d.ts +9 -4
- package/dist/src/wrapper/ContainerPlugin.js +12 -11
- package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
- package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -4
- package/dist/src/wrapper/ContainerReferencePlugin.js +12 -11
- package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
- package/dist/src/wrapper/FederationModulesPlugin.js +19 -19
- package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
- package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -6
- package/dist/src/wrapper/FederationRuntimePlugin.js +18 -17
- package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -3
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js +12 -11
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
- package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -7
- package/dist/src/wrapper/ModuleFederationPlugin.js +73 -99
- package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -4
- package/dist/src/wrapper/ProvideSharedPlugin.js +12 -11
- package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/wrapper/SharePlugin.d.ts +10 -4
- package/dist/src/wrapper/SharePlugin.js +12 -11
- package/dist/src/wrapper/SharePlugin.js.map +1 -1
- package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +9 -4
- package/dist/src/wrapper/TreeShakingSharedPlugin.js +12 -11
- package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -1
- package/package.json +21 -14
- package/dist/package.json +0 -110
- package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
- package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
- package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
- package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
- package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
- package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
- package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -86
- package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -100
- package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -102
- package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -116
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -219
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
- package/dist/src/prefetch.js.map +0 -1
- package/dist/src/rspack.js.map +0 -1
- package/dist/src/runtime.js.map +0 -1
- package/dist/src/types/runtime.d.ts +0 -10
- package/dist/src/types/runtime.js +0 -3
- package/dist/src/types/runtime.js.map +0 -1
- package/dist/src/webpack.js.map +0 -1
|
@@ -1,255 +1,258 @@
|
|
|
1
|
+
//#region src/schemas/sharing/SharePlugin.d.ts
|
|
1
2
|
declare const _default: {
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
readonly packageName: {
|
|
46
|
-
readonly description: "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.";
|
|
47
|
-
readonly type: "string";
|
|
48
|
-
readonly minLength: 1;
|
|
49
|
-
};
|
|
50
|
-
readonly requiredVersion: {
|
|
51
|
-
readonly description: "Version requirement from module in share scope.";
|
|
52
|
-
readonly anyOf: readonly [{
|
|
53
|
-
readonly description: "No version requirement check.";
|
|
54
|
-
readonly enum: readonly [false];
|
|
55
|
-
}, {
|
|
56
|
-
readonly description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.";
|
|
57
|
-
readonly type: "string";
|
|
58
|
-
}];
|
|
59
|
-
};
|
|
60
|
-
readonly shareKey: {
|
|
61
|
-
readonly description: "Module is looked up under this key from the share scope.";
|
|
62
|
-
readonly type: "string";
|
|
63
|
-
readonly minLength: 1;
|
|
64
|
-
};
|
|
65
|
-
readonly shareScope: {
|
|
66
|
-
readonly description: "Share scope name.";
|
|
67
|
-
readonly anyOf: readonly [{
|
|
68
|
-
readonly type: "string";
|
|
69
|
-
readonly minLength: 1;
|
|
70
|
-
}, {
|
|
71
|
-
readonly type: "array";
|
|
72
|
-
readonly items: {
|
|
73
|
-
readonly type: "string";
|
|
74
|
-
readonly minLength: 1;
|
|
75
|
-
};
|
|
76
|
-
}];
|
|
77
|
-
};
|
|
78
|
-
readonly singleton: {
|
|
79
|
-
readonly description: "Allow only a single version of the shared module in share scope (disabled by default).";
|
|
80
|
-
readonly type: "boolean";
|
|
81
|
-
};
|
|
82
|
-
readonly strictVersion: {
|
|
83
|
-
readonly description: "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).";
|
|
84
|
-
readonly type: "boolean";
|
|
85
|
-
};
|
|
86
|
-
readonly treeShaking: {
|
|
87
|
-
readonly description: "Enable tree-shaking for the shared module or configure it.";
|
|
88
|
-
readonly anyOf: readonly [{
|
|
89
|
-
readonly type: "boolean";
|
|
90
|
-
}, {
|
|
91
|
-
readonly $ref: "#/definitions/TreeShakingConfig";
|
|
92
|
-
}];
|
|
93
|
-
};
|
|
94
|
-
readonly independentShareFileName: {
|
|
95
|
-
readonly description: "Custom file name for independent share build/output.";
|
|
96
|
-
readonly type: "string";
|
|
97
|
-
readonly minLength: 1;
|
|
98
|
-
};
|
|
99
|
-
readonly version: {
|
|
100
|
-
readonly description: "Version of the provided module. Will replace lower matching versions, but not higher.";
|
|
101
|
-
readonly anyOf: readonly [{
|
|
102
|
-
readonly description: "Don't provide a version.";
|
|
103
|
-
readonly enum: readonly [false];
|
|
104
|
-
}, {
|
|
105
|
-
readonly description: "Version as string. Each part of the version should be separated by a dot '.'.";
|
|
106
|
-
readonly type: "string";
|
|
107
|
-
}];
|
|
108
|
-
};
|
|
109
|
-
readonly request: {
|
|
110
|
-
readonly description: "Import request to match on";
|
|
111
|
-
readonly type: "string";
|
|
112
|
-
readonly minLength: 1;
|
|
113
|
-
};
|
|
114
|
-
readonly layer: {
|
|
115
|
-
readonly description: "Layer in which the shared module should be placed.";
|
|
116
|
-
readonly type: "string";
|
|
117
|
-
readonly minLength: 1;
|
|
118
|
-
};
|
|
119
|
-
readonly issuerLayer: {
|
|
120
|
-
readonly description: "Layer of the issuer.";
|
|
121
|
-
readonly type: "string";
|
|
122
|
-
readonly minLength: 1;
|
|
123
|
-
};
|
|
124
|
-
readonly allowNodeModulesSuffixMatch: {
|
|
125
|
-
readonly description: "Enable reconstructed lookup for node_modules paths for this share item";
|
|
126
|
-
readonly type: "boolean";
|
|
127
|
-
};
|
|
128
|
-
};
|
|
3
|
+
readonly definitions: {
|
|
4
|
+
readonly Shared: {
|
|
5
|
+
readonly description: "Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.";
|
|
6
|
+
readonly anyOf: readonly [{
|
|
7
|
+
readonly type: "array";
|
|
8
|
+
readonly items: {
|
|
9
|
+
readonly description: "Modules that should be shared in the share scope.";
|
|
10
|
+
readonly anyOf: readonly [{
|
|
11
|
+
readonly $ref: "#/definitions/SharedItem";
|
|
12
|
+
}, {
|
|
13
|
+
readonly $ref: "#/definitions/SharedObject";
|
|
14
|
+
}];
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
readonly $ref: "#/definitions/SharedObject";
|
|
18
|
+
}];
|
|
19
|
+
};
|
|
20
|
+
readonly SharedConfig: {
|
|
21
|
+
readonly description: "Advanced configuration for modules that should be shared in the share scope.";
|
|
22
|
+
readonly type: "object";
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
readonly properties: {
|
|
25
|
+
readonly eager: {
|
|
26
|
+
readonly description: "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.";
|
|
27
|
+
readonly type: "boolean";
|
|
28
|
+
};
|
|
29
|
+
readonly exclude: {
|
|
30
|
+
readonly description: "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'.";
|
|
31
|
+
readonly $ref: "#/definitions/IncludeExcludeOptions";
|
|
32
|
+
};
|
|
33
|
+
readonly include: {
|
|
34
|
+
readonly description: "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'.";
|
|
35
|
+
readonly $ref: "#/definitions/IncludeExcludeOptions";
|
|
36
|
+
};
|
|
37
|
+
readonly import: {
|
|
38
|
+
readonly description: "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.";
|
|
39
|
+
readonly anyOf: readonly [{
|
|
40
|
+
readonly description: "No provided or fallback module.";
|
|
41
|
+
readonly enum: readonly [false];
|
|
42
|
+
}, {
|
|
43
|
+
readonly $ref: "#/definitions/SharedItem";
|
|
44
|
+
}];
|
|
129
45
|
};
|
|
130
|
-
readonly
|
|
131
|
-
|
|
46
|
+
readonly packageName: {
|
|
47
|
+
readonly description: "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.";
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly minLength: 1;
|
|
50
|
+
};
|
|
51
|
+
readonly requiredVersion: {
|
|
52
|
+
readonly description: "Version requirement from module in share scope.";
|
|
53
|
+
readonly anyOf: readonly [{
|
|
54
|
+
readonly description: "No version requirement check.";
|
|
55
|
+
readonly enum: readonly [false];
|
|
56
|
+
}, {
|
|
57
|
+
readonly description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.";
|
|
132
58
|
readonly type: "string";
|
|
133
|
-
|
|
59
|
+
}];
|
|
134
60
|
};
|
|
135
|
-
readonly
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
readonly description: "Modules that should be shared in the share scope.";
|
|
140
|
-
readonly anyOf: readonly [{
|
|
141
|
-
readonly $ref: "#/definitions/SharedConfig";
|
|
142
|
-
}, {
|
|
143
|
-
readonly $ref: "#/definitions/SharedItem";
|
|
144
|
-
}];
|
|
145
|
-
};
|
|
61
|
+
readonly shareKey: {
|
|
62
|
+
readonly description: "Module is looked up under this key from the share scope.";
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly minLength: 1;
|
|
146
65
|
};
|
|
147
|
-
readonly
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
readonly description: "Specific version string or range to filter by (exclude matches).";
|
|
158
|
-
readonly type: "string";
|
|
159
|
-
};
|
|
160
|
-
readonly fallbackVersion: {
|
|
161
|
-
readonly description: "Optional specific version string to check against the exclude.version range instead of reading package.json.";
|
|
162
|
-
readonly type: "string";
|
|
163
|
-
};
|
|
66
|
+
readonly shareScope: {
|
|
67
|
+
readonly description: "Share scope name.";
|
|
68
|
+
readonly anyOf: readonly [{
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly minLength: 1;
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "array";
|
|
73
|
+
readonly items: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly minLength: 1;
|
|
164
76
|
};
|
|
77
|
+
}];
|
|
165
78
|
};
|
|
166
|
-
readonly
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
readonly request: {
|
|
170
|
-
readonly type: readonly ["string", "object"];
|
|
171
|
-
readonly description: "A string (which can be a regex pattern) or a RegExp object to match the request path.";
|
|
172
|
-
};
|
|
173
|
-
readonly version: {
|
|
174
|
-
readonly type: "string";
|
|
175
|
-
readonly description: "Semantic versioning range to match against the module's version.";
|
|
176
|
-
};
|
|
177
|
-
readonly fallbackVersion: {
|
|
178
|
-
readonly type: "string";
|
|
179
|
-
readonly description: "Semantic versioning range to match against the fallback module's version for exclusion/inclusion context where applicable.";
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
readonly additionalProperties: false;
|
|
183
|
-
readonly anyOf: readonly [{
|
|
184
|
-
readonly required: readonly ["request"];
|
|
185
|
-
}, {
|
|
186
|
-
readonly required: readonly ["version"];
|
|
187
|
-
}, {
|
|
188
|
-
readonly required: readonly ["fallbackVersion"];
|
|
189
|
-
}];
|
|
190
|
-
};
|
|
191
|
-
readonly TreeShakingConfig: {
|
|
192
|
-
readonly description: "Tree-shake configuration for shared module.";
|
|
193
|
-
readonly type: "object";
|
|
194
|
-
readonly additionalProperties: false;
|
|
195
|
-
readonly properties: {
|
|
196
|
-
readonly usedExports: {
|
|
197
|
-
readonly description: "List of export names used from the shared module.";
|
|
198
|
-
readonly type: "array";
|
|
199
|
-
readonly items: {
|
|
200
|
-
readonly type: "string";
|
|
201
|
-
readonly minLength: 1;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
readonly mode: {
|
|
205
|
-
readonly description: "Tree-shake analysis mode.";
|
|
206
|
-
readonly type: "string";
|
|
207
|
-
readonly enum: readonly ["server-calc", "runtime-infer"];
|
|
208
|
-
};
|
|
209
|
-
readonly filename: {
|
|
210
|
-
readonly description: "Filename for generated treeShaking metadata.";
|
|
211
|
-
readonly type: "string";
|
|
212
|
-
};
|
|
213
|
-
};
|
|
79
|
+
readonly singleton: {
|
|
80
|
+
readonly description: "Allow only a single version of the shared module in share scope (disabled by default).";
|
|
81
|
+
readonly type: "boolean";
|
|
214
82
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
readonly description: "Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.";
|
|
83
|
+
readonly strictVersion: {
|
|
84
|
+
readonly description: "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).";
|
|
85
|
+
readonly type: "boolean";
|
|
86
|
+
};
|
|
87
|
+
readonly treeShaking: {
|
|
88
|
+
readonly description: "Enable tree-shaking for the shared module or configure it.";
|
|
89
|
+
readonly anyOf: readonly [{
|
|
223
90
|
readonly type: "boolean";
|
|
91
|
+
}, {
|
|
92
|
+
readonly $ref: "#/definitions/TreeShakingConfig";
|
|
93
|
+
}];
|
|
224
94
|
};
|
|
225
|
-
readonly
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
95
|
+
readonly independentShareFileName: {
|
|
96
|
+
readonly description: "Custom file name for independent share build/output.";
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly minLength: 1;
|
|
99
|
+
};
|
|
100
|
+
readonly version: {
|
|
101
|
+
readonly description: "Version of the provided module. Will replace lower matching versions, but not higher.";
|
|
102
|
+
readonly anyOf: readonly [{
|
|
103
|
+
readonly description: "Don't provide a version.";
|
|
104
|
+
readonly enum: readonly [false];
|
|
105
|
+
}, {
|
|
106
|
+
readonly description: "Version as string. Each part of the version should be separated by a dot '.'.";
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
}];
|
|
109
|
+
};
|
|
110
|
+
readonly request: {
|
|
111
|
+
readonly description: "Import request to match on";
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly minLength: 1;
|
|
114
|
+
};
|
|
115
|
+
readonly layer: {
|
|
116
|
+
readonly description: "Layer in which the shared module should be placed.";
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly minLength: 1;
|
|
119
|
+
};
|
|
120
|
+
readonly issuerLayer: {
|
|
121
|
+
readonly description: "Layer of the issuer.";
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
readonly minLength: 1;
|
|
124
|
+
};
|
|
125
|
+
readonly allowNodeModulesSuffixMatch: {
|
|
126
|
+
readonly description: "Enable reconstructed lookup for node_modules paths for this share item";
|
|
127
|
+
readonly type: "boolean";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readonly SharedItem: {
|
|
132
|
+
readonly description: "A module that should be shared in the share scope.";
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly minLength: 1;
|
|
135
|
+
};
|
|
136
|
+
readonly SharedObject: {
|
|
137
|
+
readonly description: "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.";
|
|
138
|
+
readonly type: "object";
|
|
139
|
+
readonly additionalProperties: {
|
|
140
|
+
readonly description: "Modules that should be shared in the share scope.";
|
|
141
|
+
readonly anyOf: readonly [{
|
|
142
|
+
readonly $ref: "#/definitions/SharedConfig";
|
|
143
|
+
}, {
|
|
144
|
+
readonly $ref: "#/definitions/SharedItem";
|
|
145
|
+
}];
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly Exclude: {
|
|
149
|
+
readonly description: "Advanced filtering options.";
|
|
150
|
+
readonly type: "object";
|
|
151
|
+
readonly additionalProperties: false;
|
|
152
|
+
readonly properties: {
|
|
153
|
+
readonly request: {
|
|
154
|
+
readonly description: "Regular expression pattern to filter module requests";
|
|
155
|
+
readonly instanceof: "RegExp";
|
|
156
|
+
};
|
|
157
|
+
readonly version: {
|
|
158
|
+
readonly description: "Specific version string or range to filter by (exclude matches).";
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
};
|
|
161
|
+
readonly fallbackVersion: {
|
|
162
|
+
readonly description: "Optional specific version string to check against the exclude.version range instead of reading package.json.";
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly IncludeExcludeOptions: {
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly properties: {
|
|
170
|
+
readonly request: {
|
|
171
|
+
readonly type: readonly ["string", "object"];
|
|
172
|
+
readonly description: "A string (which can be a regex pattern) or a RegExp object to match the request path.";
|
|
173
|
+
};
|
|
174
|
+
readonly version: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
readonly description: "Semantic versioning range to match against the module's version.";
|
|
177
|
+
};
|
|
178
|
+
readonly fallbackVersion: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly description: "Semantic versioning range to match against the fallback module's version for exclusion/inclusion context where applicable.";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly additionalProperties: false;
|
|
184
|
+
readonly anyOf: readonly [{
|
|
185
|
+
readonly required: readonly ["request"];
|
|
186
|
+
}, {
|
|
187
|
+
readonly required: readonly ["version"];
|
|
188
|
+
}, {
|
|
189
|
+
readonly required: readonly ["fallbackVersion"];
|
|
190
|
+
}];
|
|
191
|
+
};
|
|
192
|
+
readonly TreeShakingConfig: {
|
|
193
|
+
readonly description: "Tree-shake configuration for shared module.";
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly additionalProperties: false;
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly usedExports: {
|
|
198
|
+
readonly description: "List of export names used from the shared module.";
|
|
199
|
+
readonly type: "array";
|
|
200
|
+
readonly items: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
readonly minLength: 1;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
readonly mode: {
|
|
206
|
+
readonly description: "Tree-shake analysis mode.";
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly enum: readonly ["server-calc", "runtime-infer"];
|
|
209
|
+
};
|
|
210
|
+
readonly filename: {
|
|
211
|
+
readonly description: "Filename for generated treeShaking metadata.";
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
readonly title: "SharePluginOptions";
|
|
218
|
+
readonly description: "Options for shared modules.";
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly additionalProperties: false;
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly async: {
|
|
223
|
+
readonly description: "Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.";
|
|
224
|
+
readonly type: "boolean";
|
|
225
|
+
};
|
|
226
|
+
readonly shareScope: {
|
|
227
|
+
readonly description: "Share scope name used for all shared modules (defaults to 'default').";
|
|
228
|
+
readonly anyOf: readonly [{
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
readonly minLength: 1;
|
|
231
|
+
}, {
|
|
232
|
+
readonly type: "array";
|
|
233
|
+
readonly items: {
|
|
234
|
+
readonly type: "string";
|
|
235
|
+
readonly minLength: 1;
|
|
236
|
+
};
|
|
237
|
+
}];
|
|
238
|
+
};
|
|
239
|
+
readonly shared: {
|
|
240
|
+
readonly $ref: "#/definitions/Shared";
|
|
241
|
+
};
|
|
242
|
+
readonly experiments: {
|
|
243
|
+
readonly description: "Experimental features configuration";
|
|
244
|
+
readonly type: "object";
|
|
245
|
+
readonly additionalProperties: false;
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly allowNodeModulesSuffixMatch: {
|
|
248
|
+
readonly description: "Enable reconstructed lookup for node_modules paths";
|
|
249
|
+
readonly type: "boolean";
|
|
251
250
|
};
|
|
251
|
+
};
|
|
252
252
|
};
|
|
253
|
-
|
|
253
|
+
};
|
|
254
|
+
readonly required: readonly ["shared"];
|
|
254
255
|
};
|
|
255
|
-
|
|
256
|
+
//#endregion
|
|
257
|
+
export { _default as default };
|
|
258
|
+
//# sourceMappingURL=SharePlugin.d.ts.map
|