@module-federation/enhanced 2.1.0 → 2.2.1
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 +2375 -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 -200
- 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 -181
- 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 -132
- 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 -20
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +265 -358
- 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 -137
- 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 -103
- 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 -328
- 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 +23 -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 -222
- 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,294 +1,257 @@
|
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
async: {
|
|
258
|
-
description: 'Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.',
|
|
259
|
-
type: 'boolean',
|
|
260
|
-
},
|
|
261
|
-
shareScope: {
|
|
262
|
-
description: "Share scope name used for all shared modules (defaults to 'default').",
|
|
263
|
-
anyOf: [
|
|
264
|
-
{
|
|
265
|
-
type: 'string',
|
|
266
|
-
minLength: 1,
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
type: 'array',
|
|
270
|
-
items: {
|
|
271
|
-
type: 'string',
|
|
272
|
-
minLength: 1,
|
|
273
|
-
},
|
|
274
|
-
},
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
shared: {
|
|
278
|
-
$ref: '#/definitions/Shared',
|
|
279
|
-
},
|
|
280
|
-
experiments: {
|
|
281
|
-
description: 'Experimental features configuration',
|
|
282
|
-
type: 'object',
|
|
283
|
-
additionalProperties: false,
|
|
284
|
-
properties: {
|
|
285
|
-
allowNodeModulesSuffixMatch: {
|
|
286
|
-
description: 'Enable reconstructed lookup for node_modules paths',
|
|
287
|
-
type: 'boolean',
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
required: ['shared'],
|
|
293
|
-
};
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.js');
|
|
3
|
+
|
|
4
|
+
//#region src/schemas/sharing/SharePlugin.ts
|
|
5
|
+
var SharePlugin_exports = /* @__PURE__ */ require_runtime.__exportAll({ default: () => SharePlugin_default });
|
|
6
|
+
var SharePlugin_default;
|
|
7
|
+
var init_SharePlugin = require_runtime.__esmMin((() => {
|
|
8
|
+
SharePlugin_default = {
|
|
9
|
+
definitions: {
|
|
10
|
+
Shared: {
|
|
11
|
+
description: "Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.",
|
|
12
|
+
anyOf: [{
|
|
13
|
+
type: "array",
|
|
14
|
+
items: {
|
|
15
|
+
description: "Modules that should be shared in the share scope.",
|
|
16
|
+
anyOf: [{ $ref: "#/definitions/SharedItem" }, { $ref: "#/definitions/SharedObject" }]
|
|
17
|
+
}
|
|
18
|
+
}, { $ref: "#/definitions/SharedObject" }]
|
|
19
|
+
},
|
|
20
|
+
SharedConfig: {
|
|
21
|
+
description: "Advanced configuration for modules that should be shared in the share scope.",
|
|
22
|
+
type: "object",
|
|
23
|
+
additionalProperties: false,
|
|
24
|
+
properties: {
|
|
25
|
+
eager: {
|
|
26
|
+
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
|
+
type: "boolean"
|
|
28
|
+
},
|
|
29
|
+
exclude: {
|
|
30
|
+
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
|
+
$ref: "#/definitions/IncludeExcludeOptions"
|
|
32
|
+
},
|
|
33
|
+
include: {
|
|
34
|
+
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
|
+
$ref: "#/definitions/IncludeExcludeOptions"
|
|
36
|
+
},
|
|
37
|
+
import: {
|
|
38
|
+
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
|
+
anyOf: [{
|
|
40
|
+
description: "No provided or fallback module.",
|
|
41
|
+
enum: [false]
|
|
42
|
+
}, { $ref: "#/definitions/SharedItem" }]
|
|
43
|
+
},
|
|
44
|
+
packageName: {
|
|
45
|
+
description: "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
|
|
46
|
+
type: "string",
|
|
47
|
+
minLength: 1
|
|
48
|
+
},
|
|
49
|
+
requiredVersion: {
|
|
50
|
+
description: "Version requirement from module in share scope.",
|
|
51
|
+
anyOf: [{
|
|
52
|
+
description: "No version requirement check.",
|
|
53
|
+
enum: [false]
|
|
54
|
+
}, {
|
|
55
|
+
description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
|
|
56
|
+
type: "string"
|
|
57
|
+
}]
|
|
58
|
+
},
|
|
59
|
+
shareKey: {
|
|
60
|
+
description: "Module is looked up under this key from the share scope.",
|
|
61
|
+
type: "string",
|
|
62
|
+
minLength: 1
|
|
63
|
+
},
|
|
64
|
+
shareScope: {
|
|
65
|
+
description: "Share scope name.",
|
|
66
|
+
anyOf: [{
|
|
67
|
+
type: "string",
|
|
68
|
+
minLength: 1
|
|
69
|
+
}, {
|
|
70
|
+
type: "array",
|
|
71
|
+
items: {
|
|
72
|
+
type: "string",
|
|
73
|
+
minLength: 1
|
|
74
|
+
}
|
|
75
|
+
}]
|
|
76
|
+
},
|
|
77
|
+
singleton: {
|
|
78
|
+
description: "Allow only a single version of the shared module in share scope (disabled by default).",
|
|
79
|
+
type: "boolean"
|
|
80
|
+
},
|
|
81
|
+
strictVersion: {
|
|
82
|
+
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).",
|
|
83
|
+
type: "boolean"
|
|
84
|
+
},
|
|
85
|
+
treeShaking: {
|
|
86
|
+
description: "Enable tree-shaking for the shared module or configure it.",
|
|
87
|
+
anyOf: [{ type: "boolean" }, { $ref: "#/definitions/TreeShakingConfig" }]
|
|
88
|
+
},
|
|
89
|
+
independentShareFileName: {
|
|
90
|
+
description: "Custom file name for independent share build/output.",
|
|
91
|
+
type: "string",
|
|
92
|
+
minLength: 1
|
|
93
|
+
},
|
|
94
|
+
version: {
|
|
95
|
+
description: "Version of the provided module. Will replace lower matching versions, but not higher.",
|
|
96
|
+
anyOf: [{
|
|
97
|
+
description: "Don't provide a version.",
|
|
98
|
+
enum: [false]
|
|
99
|
+
}, {
|
|
100
|
+
description: "Version as string. Each part of the version should be separated by a dot '.'.",
|
|
101
|
+
type: "string"
|
|
102
|
+
}]
|
|
103
|
+
},
|
|
104
|
+
request: {
|
|
105
|
+
description: "Import request to match on",
|
|
106
|
+
type: "string",
|
|
107
|
+
minLength: 1
|
|
108
|
+
},
|
|
109
|
+
layer: {
|
|
110
|
+
description: "Layer in which the shared module should be placed.",
|
|
111
|
+
type: "string",
|
|
112
|
+
minLength: 1
|
|
113
|
+
},
|
|
114
|
+
issuerLayer: {
|
|
115
|
+
description: "Layer of the issuer.",
|
|
116
|
+
type: "string",
|
|
117
|
+
minLength: 1
|
|
118
|
+
},
|
|
119
|
+
allowNodeModulesSuffixMatch: {
|
|
120
|
+
description: "Enable reconstructed lookup for node_modules paths for this share item",
|
|
121
|
+
type: "boolean"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
SharedItem: {
|
|
126
|
+
description: "A module that should be shared in the share scope.",
|
|
127
|
+
type: "string",
|
|
128
|
+
minLength: 1
|
|
129
|
+
},
|
|
130
|
+
SharedObject: {
|
|
131
|
+
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.",
|
|
132
|
+
type: "object",
|
|
133
|
+
additionalProperties: {
|
|
134
|
+
description: "Modules that should be shared in the share scope.",
|
|
135
|
+
anyOf: [{ $ref: "#/definitions/SharedConfig" }, { $ref: "#/definitions/SharedItem" }]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
Exclude: {
|
|
139
|
+
description: "Advanced filtering options.",
|
|
140
|
+
type: "object",
|
|
141
|
+
additionalProperties: false,
|
|
142
|
+
properties: {
|
|
143
|
+
request: {
|
|
144
|
+
description: "Regular expression pattern to filter module requests",
|
|
145
|
+
instanceof: "RegExp"
|
|
146
|
+
},
|
|
147
|
+
version: {
|
|
148
|
+
description: "Specific version string or range to filter by (exclude matches).",
|
|
149
|
+
type: "string"
|
|
150
|
+
},
|
|
151
|
+
fallbackVersion: {
|
|
152
|
+
description: "Optional specific version string to check against the exclude.version range instead of reading package.json.",
|
|
153
|
+
type: "string"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
IncludeExcludeOptions: {
|
|
158
|
+
type: "object",
|
|
159
|
+
properties: {
|
|
160
|
+
request: {
|
|
161
|
+
type: ["string", "object"],
|
|
162
|
+
description: "A string (which can be a regex pattern) or a RegExp object to match the request path."
|
|
163
|
+
},
|
|
164
|
+
version: {
|
|
165
|
+
type: "string",
|
|
166
|
+
description: "Semantic versioning range to match against the module's version."
|
|
167
|
+
},
|
|
168
|
+
fallbackVersion: {
|
|
169
|
+
type: "string",
|
|
170
|
+
description: "Semantic versioning range to match against the fallback module's version for exclusion/inclusion context where applicable."
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
additionalProperties: false,
|
|
174
|
+
anyOf: [
|
|
175
|
+
{ required: ["request"] },
|
|
176
|
+
{ required: ["version"] },
|
|
177
|
+
{ required: ["fallbackVersion"] }
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
TreeShakingConfig: {
|
|
181
|
+
description: "Tree-shake configuration for shared module.",
|
|
182
|
+
type: "object",
|
|
183
|
+
additionalProperties: false,
|
|
184
|
+
properties: {
|
|
185
|
+
usedExports: {
|
|
186
|
+
description: "List of export names used from the shared module.",
|
|
187
|
+
type: "array",
|
|
188
|
+
items: {
|
|
189
|
+
type: "string",
|
|
190
|
+
minLength: 1
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
mode: {
|
|
194
|
+
description: "Tree-shake analysis mode.",
|
|
195
|
+
type: "string",
|
|
196
|
+
enum: ["server-calc", "runtime-infer"]
|
|
197
|
+
},
|
|
198
|
+
filename: {
|
|
199
|
+
description: "Filename for generated treeShaking metadata.",
|
|
200
|
+
type: "string"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
title: "SharePluginOptions",
|
|
206
|
+
description: "Options for shared modules.",
|
|
207
|
+
type: "object",
|
|
208
|
+
additionalProperties: false,
|
|
209
|
+
properties: {
|
|
210
|
+
async: {
|
|
211
|
+
description: "Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.",
|
|
212
|
+
type: "boolean"
|
|
213
|
+
},
|
|
214
|
+
shareScope: {
|
|
215
|
+
description: "Share scope name used for all shared modules (defaults to 'default').",
|
|
216
|
+
anyOf: [{
|
|
217
|
+
type: "string",
|
|
218
|
+
minLength: 1
|
|
219
|
+
}, {
|
|
220
|
+
type: "array",
|
|
221
|
+
items: {
|
|
222
|
+
type: "string",
|
|
223
|
+
minLength: 1
|
|
224
|
+
}
|
|
225
|
+
}]
|
|
226
|
+
},
|
|
227
|
+
shared: { $ref: "#/definitions/Shared" },
|
|
228
|
+
experiments: {
|
|
229
|
+
description: "Experimental features configuration",
|
|
230
|
+
type: "object",
|
|
231
|
+
additionalProperties: false,
|
|
232
|
+
properties: { allowNodeModulesSuffixMatch: {
|
|
233
|
+
description: "Enable reconstructed lookup for node_modules paths",
|
|
234
|
+
type: "boolean"
|
|
235
|
+
} }
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
required: ["shared"]
|
|
239
|
+
};
|
|
240
|
+
}));
|
|
241
|
+
|
|
242
|
+
//#endregion
|
|
243
|
+
init_SharePlugin();
|
|
244
|
+
Object.defineProperty(exports, 'SharePlugin_exports', {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function () {
|
|
247
|
+
return SharePlugin_exports;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
exports.default = SharePlugin_default;
|
|
251
|
+
Object.defineProperty(exports, 'init_SharePlugin', {
|
|
252
|
+
enumerable: true,
|
|
253
|
+
get: function () {
|
|
254
|
+
return init_SharePlugin;
|
|
255
|
+
}
|
|
256
|
+
});
|
|
294
257
|
//# sourceMappingURL=SharePlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharePlugin.js","sourceRoot":"","sources":["../../../../src/schemas/sharing/SharePlugin.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,oBAAoB;AACpB;;;GAGG;;AAEH,kBAAe;IACb,WAAW,EAAE;QACX,MAAM,EAAE;YACN,WAAW,EACT,0IAA0I;YAC5I,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,WAAW,EAAE,mDAAmD;wBAChE,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,0BAA0B;6BACjC;4BACD;gCACE,IAAI,EAAE,4BAA4B;6BACnC;yBACF;qBACF;iBACF;gBACD;oBACE,IAAI,EAAE,4BAA4B;iBACnC;aACF;SACF;QACD,YAAY,EAAE;YACZ,WAAW,EACT,8EAA8E;YAChF,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,WAAW,EACT,iMAAiM;oBACnM,IAAI,EAAE,SAAS;iBAChB;gBACD,OAAO,EAAE;oBACP,WAAW,EACT,oKAAoK;oBACtK,IAAI,EAAE,qCAAqC;iBAC5C;gBACD,OAAO,EAAE;oBACP,WAAW,EACT,0KAA0K;oBAC5K,IAAI,EAAE,qCAAqC;iBAC5C;gBACD,MAAM,EAAE;oBACN,WAAW,EACT,yLAAyL;oBAC3L,KAAK,EAAE;wBACL;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S;SAChB;QACD,UAAU,EAAE;YACV,WAAW,EACT,uEAAuE;YACzE,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,CAAC;qBACb;iBACF;aACF;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE,sBAAsB;SAC7B;QACD,WAAW,EAAE;YACX,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,2BAA2B,EAAE;oBAC3B,WAAW,EAAE,oDAAoD;oBACjE,IAAI,EAAE,SAAS;iBAChB;aACF;SACF;KACF;IACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"SharePlugin.js","names":[],"sources":["../../../../src/schemas/sharing/SharePlugin.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n/*\n * This file was automatically generated.\n * DO NOT MODIFY BY HAND.\n */\n\nexport default {\n definitions: {\n Shared: {\n description:\n 'Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.',\n anyOf: [\n {\n type: 'array',\n items: {\n description: 'Modules that should be shared in the share scope.',\n anyOf: [\n {\n $ref: '#/definitions/SharedItem',\n },\n {\n $ref: '#/definitions/SharedObject',\n },\n ],\n },\n },\n {\n $ref: '#/definitions/SharedObject',\n },\n ],\n },\n SharedConfig: {\n description:\n 'Advanced configuration for modules that should be shared in the share scope.',\n type: 'object',\n additionalProperties: false,\n properties: {\n eager: {\n description:\n 'Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.',\n type: 'boolean',\n },\n exclude: {\n description:\n \"Options for excluding specific versions or request paths of the shared module. When specified, matching modules will not be shared. Cannot be used with 'include'.\",\n $ref: '#/definitions/IncludeExcludeOptions',\n },\n include: {\n description:\n \"Options for including only specific versions or request paths of the shared module. When specified, only matching modules will be shared. Cannot be used with 'exclude'.\",\n $ref: '#/definitions/IncludeExcludeOptions',\n },\n import: {\n description:\n \"Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.\",\n anyOf: [\n {\n description: 'No provided or fallback module.',\n enum: [false],\n },\n {\n $ref: '#/definitions/SharedItem',\n },\n ],\n },\n packageName: {\n description:\n \"Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.\",\n type: 'string',\n minLength: 1,\n },\n requiredVersion: {\n description: 'Version requirement from module in share scope.',\n anyOf: [\n {\n description: 'No version requirement check.',\n enum: [false],\n },\n {\n description:\n \"Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.\",\n type: 'string',\n },\n ],\n },\n shareKey: {\n description:\n 'Module is looked up under this key from the share scope.',\n type: 'string',\n minLength: 1,\n },\n shareScope: {\n description: 'Share scope name.',\n anyOf: [\n {\n type: 'string',\n minLength: 1,\n },\n {\n type: 'array',\n items: {\n type: 'string',\n minLength: 1,\n },\n },\n ],\n },\n singleton: {\n description:\n 'Allow only a single version of the shared module in share scope (disabled by default).',\n type: 'boolean',\n },\n strictVersion: {\n description:\n 'Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).',\n type: 'boolean',\n },\n treeShaking: {\n description:\n 'Enable tree-shaking for the shared module or configure it.',\n anyOf: [\n {\n type: 'boolean',\n },\n {\n $ref: '#/definitions/TreeShakingConfig',\n },\n ],\n },\n independentShareFileName: {\n description: 'Custom file name for independent share build/output.',\n type: 'string',\n minLength: 1,\n },\n version: {\n description:\n 'Version of the provided module. Will replace lower matching versions, but not higher.',\n anyOf: [\n {\n description: \"Don't provide a version.\",\n enum: [false],\n },\n {\n description:\n \"Version as string. Each part of the version should be separated by a dot '.'.\",\n type: 'string',\n },\n ],\n },\n request: {\n description: 'Import request to match on',\n type: 'string',\n minLength: 1,\n },\n layer: {\n description: 'Layer in which the shared module should be placed.',\n type: 'string',\n minLength: 1,\n },\n issuerLayer: {\n description: 'Layer of the issuer.',\n type: 'string',\n minLength: 1,\n },\n allowNodeModulesSuffixMatch: {\n description:\n 'Enable reconstructed lookup for node_modules paths for this share item',\n type: 'boolean',\n },\n },\n },\n SharedItem: {\n description: 'A module that should be shared in the share scope.',\n type: 'string',\n minLength: 1,\n },\n SharedObject: {\n description:\n 'Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.',\n type: 'object',\n additionalProperties: {\n description: 'Modules that should be shared in the share scope.',\n anyOf: [\n {\n $ref: '#/definitions/SharedConfig',\n },\n {\n $ref: '#/definitions/SharedItem',\n },\n ],\n },\n },\n Exclude: {\n description: 'Advanced filtering options.',\n type: 'object',\n additionalProperties: false,\n properties: {\n request: {\n description: 'Regular expression pattern to filter module requests',\n instanceof: 'RegExp',\n },\n version: {\n description:\n 'Specific version string or range to filter by (exclude matches).',\n type: 'string',\n },\n fallbackVersion: {\n description:\n 'Optional specific version string to check against the exclude.version range instead of reading package.json.',\n type: 'string',\n },\n },\n },\n IncludeExcludeOptions: {\n type: 'object',\n properties: {\n request: {\n type: ['string', 'object'],\n description:\n 'A string (which can be a regex pattern) or a RegExp object to match the request path.',\n },\n version: {\n type: 'string',\n description:\n \"Semantic versioning range to match against the module's version.\",\n },\n fallbackVersion: {\n type: 'string',\n description:\n \"Semantic versioning range to match against the fallback module's version for exclusion/inclusion context where applicable.\",\n },\n },\n additionalProperties: false,\n anyOf: [\n {\n required: ['request'],\n },\n {\n required: ['version'],\n },\n {\n required: ['fallbackVersion'],\n },\n ],\n },\n TreeShakingConfig: {\n description: 'Tree-shake configuration for shared module.',\n type: 'object',\n additionalProperties: false,\n properties: {\n usedExports: {\n description: 'List of export names used from the shared module.',\n type: 'array',\n items: {\n type: 'string',\n minLength: 1,\n },\n },\n mode: {\n description: 'Tree-shake analysis mode.',\n type: 'string',\n enum: ['server-calc', 'runtime-infer'],\n },\n filename: {\n description: 'Filename for generated treeShaking metadata.',\n type: 'string',\n },\n },\n },\n },\n title: 'SharePluginOptions',\n description: 'Options for shared modules.',\n type: 'object',\n additionalProperties: false,\n properties: {\n async: {\n description:\n 'Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.',\n type: 'boolean',\n },\n shareScope: {\n description:\n \"Share scope name used for all shared modules (defaults to 'default').\",\n anyOf: [\n {\n type: 'string',\n minLength: 1,\n },\n {\n type: 'array',\n items: {\n type: 'string',\n minLength: 1,\n },\n },\n ],\n },\n shared: {\n $ref: '#/definitions/Shared',\n },\n experiments: {\n description: 'Experimental features configuration',\n type: 'object',\n additionalProperties: false,\n properties: {\n allowNodeModulesSuffixMatch: {\n description: 'Enable reconstructed lookup for node_modules paths',\n type: 'boolean',\n },\n },\n },\n },\n required: ['shared'],\n} as const;\n"],"mappings":";;;;;;;uBAOe;EACb,aAAa;GACX,QAAQ;IACN,aACE;IACF,OAAO,CACL;KACE,MAAM;KACN,OAAO;MACL,aAAa;MACb,OAAO,CACL,EACE,MAAM,4BACP,EACD,EACE,MAAM,8BACP,CACF;MACF;KACF,EACD,EACE,MAAM,8BACP,CACF;IACF;GACD,cAAc;IACZ,aACE;IACF,MAAM;IACN,sBAAsB;IACtB,YAAY;KACV,OAAO;MACL,aACE;MACF,MAAM;MACP;KACD,SAAS;MACP,aACE;MACF,MAAM;MACP;KACD,SAAS;MACP,aACE;MACF,MAAM;MACP;KACD,QAAQ;MACN,aACE;MACF,OAAO,CACL;OACE,aAAa;OACb,MAAM,CAAC,MAAM;OACd,EACD,EACE,MAAM,4BACP,CACF;MACF;KACD,aAAa;MACX,aACE;MACF,MAAM;MACN,WAAW;MACZ;KACD,iBAAiB;MACf,aAAa;MACb,OAAO,CACL;OACE,aAAa;OACb,MAAM,CAAC,MAAM;OACd,EACD;OACE,aACE;OACF,MAAM;OACP,CACF;MACF;KACD,UAAU;MACR,aACE;MACF,MAAM;MACN,WAAW;MACZ;KACD,YAAY;MACV,aAAa;MACb,OAAO,CACL;OACE,MAAM;OACN,WAAW;OACZ,EACD;OACE,MAAM;OACN,OAAO;QACL,MAAM;QACN,WAAW;QACZ;OACF,CACF;MACF;KACD,WAAW;MACT,aACE;MACF,MAAM;MACP;KACD,eAAe;MACb,aACE;MACF,MAAM;MACP;KACD,aAAa;MACX,aACE;MACF,OAAO,CACL,EACE,MAAM,WACP,EACD,EACE,MAAM,mCACP,CACF;MACF;KACD,0BAA0B;MACxB,aAAa;MACb,MAAM;MACN,WAAW;MACZ;KACD,SAAS;MACP,aACE;MACF,OAAO,CACL;OACE,aAAa;OACb,MAAM,CAAC,MAAM;OACd,EACD;OACE,aACE;OACF,MAAM;OACP,CACF;MACF;KACD,SAAS;MACP,aAAa;MACb,MAAM;MACN,WAAW;MACZ;KACD,OAAO;MACL,aAAa;MACb,MAAM;MACN,WAAW;MACZ;KACD,aAAa;MACX,aAAa;MACb,MAAM;MACN,WAAW;MACZ;KACD,6BAA6B;MAC3B,aACE;MACF,MAAM;MACP;KACF;IACF;GACD,YAAY;IACV,aAAa;IACb,MAAM;IACN,WAAW;IACZ;GACD,cAAc;IACZ,aACE;IACF,MAAM;IACN,sBAAsB;KACpB,aAAa;KACb,OAAO,CACL,EACE,MAAM,8BACP,EACD,EACE,MAAM,4BACP,CACF;KACF;IACF;GACD,SAAS;IACP,aAAa;IACb,MAAM;IACN,sBAAsB;IACtB,YAAY;KACV,SAAS;MACP,aAAa;MACb,YAAY;MACb;KACD,SAAS;MACP,aACE;MACF,MAAM;MACP;KACD,iBAAiB;MACf,aACE;MACF,MAAM;MACP;KACF;IACF;GACD,uBAAuB;IACrB,MAAM;IACN,YAAY;KACV,SAAS;MACP,MAAM,CAAC,UAAU,SAAS;MAC1B,aACE;MACH;KACD,SAAS;MACP,MAAM;MACN,aACE;MACH;KACD,iBAAiB;MACf,MAAM;MACN,aACE;MACH;KACF;IACD,sBAAsB;IACtB,OAAO;KACL,EACE,UAAU,CAAC,UAAU,EACtB;KACD,EACE,UAAU,CAAC,UAAU,EACtB;KACD,EACE,UAAU,CAAC,kBAAkB,EAC9B;KACF;IACF;GACD,mBAAmB;IACjB,aAAa;IACb,MAAM;IACN,sBAAsB;IACtB,YAAY;KACV,aAAa;MACX,aAAa;MACb,MAAM;MACN,OAAO;OACL,MAAM;OACN,WAAW;OACZ;MACF;KACD,MAAM;MACJ,aAAa;MACb,MAAM;MACN,MAAM,CAAC,eAAe,gBAAgB;MACvC;KACD,UAAU;MACR,aAAa;MACb,MAAM;MACP;KACF;IACF;GACF;EACD,OAAO;EACP,aAAa;EACb,MAAM;EACN,sBAAsB;EACtB,YAAY;GACV,OAAO;IACL,aACE;IACF,MAAM;IACP;GACD,YAAY;IACV,aACE;IACF,OAAO,CACL;KACE,MAAM;KACN,WAAW;KACZ,EACD;KACE,MAAM;KACN,OAAO;MACL,MAAM;MACN,WAAW;MACZ;KACF,CACF;IACF;GACD,QAAQ,EACN,MAAM,wBACP;GACD,aAAa;IACX,aAAa;IACb,MAAM;IACN,sBAAsB;IACtB,YAAY,EACV,6BAA6B;KAC3B,aAAa;KACb,MAAM;KACP,EACF;IACF;GACF;EACD,UAAU,CAAC,SAAS;EACrB"}
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/utils.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* @template {object | object[]} T
|
|
3
4
|
* @param {(function(T): boolean) | undefined} check check
|
|
@@ -6,4 +7,6 @@
|
|
|
6
7
|
* @returns {function(T=): void} validate
|
|
7
8
|
*/
|
|
8
9
|
declare const createSchemaValidation: (check: ((value: any) => boolean) | undefined, getSchema: () => any, options: any) => (value: any) => void;
|
|
10
|
+
//#endregion
|
|
9
11
|
export { createSchemaValidation };
|
|
12
|
+
//# sourceMappingURL=utils.d.ts.map
|