@module-federation/enhanced 0.2.0-canary.5 → 0.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/LICENSE +21 -0
- package/README.md +169 -0
- package/dist/package.json +83 -0
- package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +57 -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/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/index.d.ts +14 -0
- package/dist/src/index.js +37 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/Constants.js +125 -0
- package/dist/src/lib/Constants.js.map +1 -0
- package/dist/src/lib/RuntimeGlobals.d.ts +0 -0
- package/{src → dist/src}/lib/RuntimeGlobals.js +144 -74
- package/dist/src/lib/RuntimeGlobals.js.map +1 -0
- package/{src → dist/src}/lib/container/AsyncBoundaryPlugin.d.ts +3 -4
- package/dist/src/lib/container/AsyncBoundaryPlugin.js +198 -0
- package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -0
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +24 -0
- package/dist/src/lib/container/ContainerEntryDependency.js +39 -0
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -0
- package/dist/src/lib/container/ContainerEntryModule.d.ts +75 -0
- package/dist/src/lib/container/ContainerEntryModule.js +240 -0
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -0
- package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -0
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +30 -0
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -0
- package/dist/src/lib/container/ContainerExposedDependency.d.ts +19 -0
- package/dist/src/lib/container/ContainerExposedDependency.js +49 -0
- package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -0
- package/dist/src/lib/container/ContainerPlugin.d.ts +13 -0
- package/dist/src/lib/container/ContainerPlugin.js +188 -0
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerReferencePlugin.d.ts +3 -3
- package/dist/src/lib/container/ContainerReferencePlugin.js +102 -0
- package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -0
- package/dist/src/lib/container/FallbackDependency.d.ts +15 -0
- package/dist/src/lib/container/FallbackDependency.js +47 -0
- package/dist/src/lib/container/FallbackDependency.js.map +1 -0
- package/dist/src/lib/container/FallbackItemDependency.d.ts +3 -0
- package/dist/src/lib/container/FallbackItemDependency.js +26 -0
- package/dist/src/lib/container/FallbackItemDependency.js.map +1 -0
- package/dist/src/lib/container/FallbackModule.d.ts +54 -0
- package/dist/src/lib/container/FallbackModule.js +152 -0
- package/dist/src/lib/container/FallbackModule.js.map +1 -0
- package/dist/src/lib/container/FallbackModuleFactory.d.ts +11 -0
- package/dist/src/lib/container/FallbackModuleFactory.js +28 -0
- package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +14 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js +64 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -0
- package/dist/src/lib/container/ModuleFederationPlugin.d.ts +17 -0
- package/dist/src/lib/container/ModuleFederationPlugin.js +128 -0
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -0
- package/dist/src/lib/container/RemoteModule.d.ts +90 -0
- package/dist/src/lib/container/RemoteModule.js +148 -0
- package/dist/src/lib/container/RemoteModule.js.map +1 -0
- package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -0
- package/dist/src/lib/container/RemoteRuntimeModule.js +101 -0
- package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -0
- package/{src → dist/src}/lib/container/RemoteToExternalDependency.d.ts +3 -9
- package/dist/src/lib/container/RemoteToExternalDependency.js +26 -0
- package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -0
- package/dist/src/lib/container/constant.d.ts +3 -0
- package/dist/src/lib/container/constant.js +12 -0
- package/dist/src/lib/container/constant.js.map +1 -0
- package/{src → dist/src}/lib/container/options.d.ts +12 -4
- package/{src → dist/src}/lib/container/options.js +32 -42
- package/dist/src/lib/container/options.js.map +1 -0
- package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +13 -0
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js +49 -0
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -0
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +17 -0
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +209 -0
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -0
- package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +5 -0
- package/dist/src/lib/container/runtime/getFederationGlobal.js +26 -0
- package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -0
- package/dist/src/lib/container/runtime/utils.d.ts +16 -0
- package/dist/src/lib/container/runtime/utils.js +83 -0
- package/dist/src/lib/container/runtime/utils.js.map +1 -0
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -0
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +26 -0
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -0
- package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +99 -0
- package/dist/src/lib/sharing/ConsumeSharedModule.js +206 -0
- package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -0
- package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +30 -0
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +245 -0
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -0
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +31 -0
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +124 -0
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -0
- package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +3 -0
- package/dist/src/lib/sharing/ProvideForSharedDependency.js +27 -0
- package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -0
- package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +36 -0
- package/dist/src/lib/sharing/ProvideSharedDependency.js +70 -0
- package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -0
- package/dist/src/lib/sharing/ProvideSharedModule.d.ts +67 -0
- package/dist/src/lib/sharing/ProvideSharedModule.js +186 -0
- package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -0
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +18 -0
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +30 -0
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -0
- package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +47 -0
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +195 -0
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -0
- package/dist/src/lib/sharing/SharePlugin.d.ts +41 -0
- package/dist/src/lib/sharing/SharePlugin.js +79 -0
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -0
- package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +14 -0
- package/dist/src/lib/sharing/ShareRuntimeModule.js +102 -0
- package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -0
- package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +12 -0
- package/dist/src/lib/sharing/resolveMatchedConfigs.js +66 -0
- package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -0
- package/dist/src/lib/sharing/utils.d.ts +37 -0
- package/{src → dist/src}/lib/sharing/utils.js +109 -81
- package/dist/src/lib/sharing/utils.js.map +1 -0
- package/dist/src/rspack.d.ts +1 -0
- package/dist/src/rspack.js +6 -0
- package/dist/src/rspack.js.map +1 -0
- package/{src → dist/src}/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +1 -1
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -0
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -0
- package/dist/src/runtime.d.ts +1 -0
- package/dist/src/runtime.js +18 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +7 -0
- package/dist/src/schemas/container/ContainerPlugin.check.js +2318 -0
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -0
- package/dist/src/schemas/container/ContainerPlugin.d.ts +289 -0
- package/dist/src/schemas/container/ContainerPlugin.js +326 -0
- package/dist/src/schemas/container/ContainerPlugin.js.map +1 -0
- package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +7 -0
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js +939 -0
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -0
- package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +87 -0
- package/dist/src/schemas/container/ContainerReferencePlugin.js +132 -0
- package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +9 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +4001 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -0
- package/{src → dist/src}/schemas/container/ModuleFederationPlugin.d.ts +197 -4
- package/{src → dist/src}/schemas/container/ModuleFederationPlugin.js +349 -177
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -0
- package/{src/schemas/container/ModuleFederationPlugin.check.d.ts → dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts} +2 -2
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +434 -0
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -0
- package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +104 -0
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js +119 -0
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -0
- package/dist/src/types/runtime.d.ts +7 -0
- package/dist/src/types/runtime.js +3 -0
- package/dist/src/types/runtime.js.map +1 -0
- package/dist/src/webpack.d.ts +2 -0
- package/dist/src/webpack.js +9 -0
- package/dist/src/webpack.js.map +1 -0
- package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +8 -0
- package/dist/src/wrapper/AsyncBoundaryPlugin.js +19 -0
- package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -0
- package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +8 -0
- package/dist/src/wrapper/ConsumeSharedPlugin.js +19 -0
- package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -0
- package/dist/src/wrapper/ContainerPlugin.d.ts +8 -0
- package/dist/src/wrapper/ContainerPlugin.js +19 -0
- package/dist/src/wrapper/ContainerPlugin.js.map +1 -0
- package/dist/src/wrapper/ContainerReferencePlugin.d.ts +8 -0
- package/dist/src/wrapper/ContainerReferencePlugin.js +19 -0
- package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -0
- package/dist/src/wrapper/FederationRuntimePlugin.d.ts +9 -0
- package/dist/src/wrapper/FederationRuntimePlugin.js +22 -0
- package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -0
- package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +7 -0
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js +19 -0
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -0
- package/dist/src/wrapper/ModuleFederationPlugin.d.ts +8 -0
- package/dist/src/wrapper/ModuleFederationPlugin.js +39 -0
- package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -0
- package/dist/src/wrapper/ProvideSharedPlugin.d.ts +8 -0
- package/dist/src/wrapper/ProvideSharedPlugin.js +19 -0
- package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -0
- package/dist/src/wrapper/SharePlugin.d.ts +8 -0
- package/dist/src/wrapper/SharePlugin.js +19 -0
- package/dist/src/wrapper/SharePlugin.js.map +1 -0
- package/package.json +73 -7
- package/global.d.js +0 -14
- package/global.d.js.map +0 -1
- package/pullts.d.ts +0 -1
- package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js +0 -14
- package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js.map +0 -1
- package/src/declarations/plugins/container/ContainerPlugin.d.js +0 -12
- package/src/declarations/plugins/container/ContainerPlugin.d.js.map +0 -1
- package/src/declarations/plugins/container/ContainerReferencePlugin.d.js +0 -12
- package/src/declarations/plugins/container/ContainerReferencePlugin.d.js.map +0 -1
- package/src/declarations/plugins/container/Dependency.d.js +0 -14
- package/src/declarations/plugins/container/Dependency.d.js.map +0 -1
- package/src/declarations/plugins/container/Module.d.js +0 -3
- package/src/declarations/plugins/container/Module.d.js.map +0 -1
- package/src/declarations/plugins/container/ModuleFactory.d.js +0 -3
- package/src/declarations/plugins/container/ModuleFactory.d.js.map +0 -1
- package/src/declarations/plugins/container/ModuleFederationPlugin.d.js +0 -12
- package/src/declarations/plugins/container/ModuleFederationPlugin.d.js.map +0 -1
- package/src/declarations/plugins/container/ObjectDeserializerContext.d.js +0 -6
- package/src/declarations/plugins/container/ObjectDeserializerContext.d.js.map +0 -1
- package/src/declarations/plugins/container/StaticExportsDependency.d.js +0 -14
- package/src/declarations/plugins/container/StaticExportsDependency.d.js.map +0 -1
- package/src/declarations/plugins/container/Template.d.js +0 -4
- package/src/declarations/plugins/container/Template.d.js.map +0 -1
- package/src/declarations/plugins/container/WebpackError.d.js +0 -3
- package/src/declarations/plugins/container/WebpackError.d.js.map +0 -1
- package/src/declarations/plugins/container/WebpackOptions.d.js +0 -6
- package/src/declarations/plugins/container/WebpackOptions.d.js.map +0 -1
- package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js +0 -12
- package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js.map +0 -1
- package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js +0 -12
- package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js.map +0 -1
- package/src/declarations/plugins/sharing/SharePlugin.d.js +0 -12
- package/src/declarations/plugins/sharing/SharePlugin.d.js.map +0 -1
- package/src/index.d.ts +0 -7
- package/src/index.js +0 -47
- package/src/index.js.map +0 -1
- package/src/lib/Constants.js +0 -103
- package/src/lib/Constants.js.map +0 -1
- package/src/lib/RuntimeGlobals.d.ts +0 -1
- package/src/lib/RuntimeGlobals.js.map +0 -1
- package/src/lib/container/AsyncBoundaryPlugin.js +0 -184
- package/src/lib/container/AsyncBoundaryPlugin.js.map +0 -1
- package/src/lib/container/ContainerEntryDependency.d.js +0 -4
- package/src/lib/container/ContainerEntryDependency.d.js.map +0 -1
- package/src/lib/container/ContainerEntryDependency.d.ts +0 -20
- package/src/lib/container/ContainerEntryDependency.js +0 -47
- package/src/lib/container/ContainerEntryDependency.js.map +0 -1
- package/src/lib/container/ContainerEntryModule.d.js +0 -14
- package/src/lib/container/ContainerEntryModule.d.js.map +0 -1
- package/src/lib/container/ContainerEntryModule.d.ts +0 -85
- package/src/lib/container/ContainerEntryModule.js +0 -281
- package/src/lib/container/ContainerEntryModule.js.map +0 -1
- package/src/lib/container/ContainerEntryModuleFactory.d.js +0 -4
- package/src/lib/container/ContainerEntryModuleFactory.d.js.map +0 -1
- package/src/lib/container/ContainerEntryModuleFactory.d.ts +0 -10
- package/src/lib/container/ContainerEntryModuleFactory.js +0 -37
- package/src/lib/container/ContainerEntryModuleFactory.js.map +0 -1
- package/src/lib/container/ContainerExposedDependency.d.js +0 -4
- package/src/lib/container/ContainerExposedDependency.d.js.map +0 -1
- package/src/lib/container/ContainerExposedDependency.d.ts +0 -26
- package/src/lib/container/ContainerExposedDependency.js +0 -57
- package/src/lib/container/ContainerExposedDependency.js.map +0 -1
- package/src/lib/container/ContainerPlugin.d.js +0 -4
- package/src/lib/container/ContainerPlugin.d.js.map +0 -1
- package/src/lib/container/ContainerPlugin.d.ts +0 -11
- package/src/lib/container/ContainerPlugin.js +0 -92
- package/src/lib/container/ContainerPlugin.js.map +0 -1
- package/src/lib/container/ContainerReferencePlugin.d.js +0 -4
- package/src/lib/container/ContainerReferencePlugin.d.js.map +0 -1
- package/src/lib/container/ContainerReferencePlugin.js +0 -141
- package/src/lib/container/ContainerReferencePlugin.js.map +0 -1
- package/src/lib/container/FallbackDependency.d.js +0 -14
- package/src/lib/container/FallbackDependency.d.js.map +0 -1
- package/src/lib/container/FallbackDependency.d.ts +0 -25
- package/src/lib/container/FallbackDependency.js +0 -59
- package/src/lib/container/FallbackDependency.js.map +0 -1
- package/src/lib/container/FallbackItemDependency.d.js +0 -4
- package/src/lib/container/FallbackItemDependency.d.js.map +0 -1
- package/src/lib/container/FallbackItemDependency.d.ts +0 -10
- package/src/lib/container/FallbackItemDependency.js +0 -37
- package/src/lib/container/FallbackItemDependency.js.map +0 -1
- package/src/lib/container/FallbackModule.d.js +0 -4
- package/src/lib/container/FallbackModule.d.js.map +0 -1
- package/src/lib/container/FallbackModule.d.ts +0 -73
- package/src/lib/container/FallbackModule.js +0 -153
- package/src/lib/container/FallbackModule.js.map +0 -1
- package/src/lib/container/FallbackModuleFactory.d.js +0 -4
- package/src/lib/container/FallbackModuleFactory.d.js.map +0 -1
- package/src/lib/container/FallbackModuleFactory.d.ts +0 -10
- package/src/lib/container/FallbackModuleFactory.js +0 -35
- package/src/lib/container/FallbackModuleFactory.js.map +0 -1
- package/src/lib/container/HoistContainerReferencesPlugin.d.ts +0 -19
- package/src/lib/container/HoistContainerReferencesPlugin.js +0 -78
- package/src/lib/container/HoistContainerReferencesPlugin.js.map +0 -1
- package/src/lib/container/ModuleFederationPlugin.d.js +0 -4
- package/src/lib/container/ModuleFederationPlugin.d.js.map +0 -1
- package/src/lib/container/ModuleFederationPlugin.d.ts +0 -16
- package/src/lib/container/ModuleFederationPlugin.js +0 -85
- package/src/lib/container/ModuleFederationPlugin.js.map +0 -1
- package/src/lib/container/ModuleFederationPluginTypes.d.js +0 -12
- package/src/lib/container/ModuleFederationPluginTypes.d.js.map +0 -1
- package/src/lib/container/RemoteModule.d.js +0 -13
- package/src/lib/container/RemoteModule.d.js.map +0 -1
- package/src/lib/container/RemoteModule.d.ts +0 -76
- package/src/lib/container/RemoteModule.js +0 -151
- package/src/lib/container/RemoteModule.js.map +0 -1
- package/src/lib/container/RemoteRuntimeModule.d.js +0 -13
- package/src/lib/container/RemoteRuntimeModule.d.js.map +0 -1
- package/src/lib/container/RemoteRuntimeModule.d.ts +0 -9
- package/src/lib/container/RemoteRuntimeModule.js +0 -124
- package/src/lib/container/RemoteRuntimeModule.js.map +0 -1
- package/src/lib/container/RemoteToExternalDependency.d.js +0 -19
- package/src/lib/container/RemoteToExternalDependency.d.js.map +0 -1
- package/src/lib/container/RemoteToExternalDependency.js +0 -37
- package/src/lib/container/RemoteToExternalDependency.js.map +0 -1
- package/src/lib/container/options.d.js +0 -6
- package/src/lib/container/options.d.js.map +0 -1
- package/src/lib/container/options.js.map +0 -1
- package/src/lib/inversion/ContainerInversionPlugin.d.ts +0 -1
- package/src/lib/inversion/ContainerInversionPlugin.js +0 -3
- package/src/lib/inversion/ContainerInversionPlugin.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +0 -10
- package/src/lib/sharing/ConsumeSharedFallbackDependency.js +0 -37
- package/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedModule.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedModule.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedModule.d.ts +0 -106
- package/src/lib/sharing/ConsumeSharedModule.js +0 -235
- package/src/lib/sharing/ConsumeSharedModule.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedPlugin.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedPlugin.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedPlugin.d.ts +0 -8
- package/src/lib/sharing/ConsumeSharedPlugin.js +0 -274
- package/src/lib/sharing/ConsumeSharedPlugin.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +0 -13
- package/src/lib/sharing/ConsumeSharedRuntimeModule.js +0 -294
- package/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +0 -1
- package/src/lib/sharing/ProvideForSharedDependency.d.js +0 -4
- package/src/lib/sharing/ProvideForSharedDependency.d.js.map +0 -1
- package/src/lib/sharing/ProvideForSharedDependency.d.ts +0 -11
- package/src/lib/sharing/ProvideForSharedDependency.js +0 -38
- package/src/lib/sharing/ProvideForSharedDependency.js.map +0 -1
- package/src/lib/sharing/ProvideSharedDependency.d.js +0 -14
- package/src/lib/sharing/ProvideSharedDependency.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedDependency.d.ts +0 -32
- package/src/lib/sharing/ProvideSharedDependency.js +0 -69
- package/src/lib/sharing/ProvideSharedDependency.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModule.d.js +0 -4
- package/src/lib/sharing/ProvideSharedModule.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModule.d.ts +0 -79
- package/src/lib/sharing/ProvideSharedModule.js +0 -203
- package/src/lib/sharing/ProvideSharedModule.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModuleFactory.d.js +0 -4
- package/src/lib/sharing/ProvideSharedModuleFactory.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModuleFactory.d.ts +0 -11
- package/src/lib/sharing/ProvideSharedModuleFactory.js +0 -36
- package/src/lib/sharing/ProvideSharedModuleFactory.js.map +0 -1
- package/src/lib/sharing/ProvideSharedPlugin.d.js +0 -4
- package/src/lib/sharing/ProvideSharedPlugin.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedPlugin.d.ts +0 -34
- package/src/lib/sharing/ProvideSharedPlugin.js +0 -182
- package/src/lib/sharing/ProvideSharedPlugin.js.map +0 -1
- package/src/lib/sharing/SharePlugin.d.js +0 -4
- package/src/lib/sharing/SharePlugin.d.js.map +0 -1
- package/src/lib/sharing/SharePlugin.d.ts +0 -15
- package/src/lib/sharing/SharePlugin.js +0 -77
- package/src/lib/sharing/SharePlugin.js.map +0 -1
- package/src/lib/sharing/ShareRuntimeModule.d.js +0 -4
- package/src/lib/sharing/ShareRuntimeModule.d.js.map +0 -1
- package/src/lib/sharing/ShareRuntimeModule.d.ts +0 -9
- package/src/lib/sharing/ShareRuntimeModule.js +0 -161
- package/src/lib/sharing/ShareRuntimeModule.js.map +0 -1
- package/src/lib/sharing/resolveMatchedConfigs.d.js +0 -6
- package/src/lib/sharing/resolveMatchedConfigs.d.js.map +0 -1
- package/src/lib/sharing/resolveMatchedConfigs.d.ts +0 -8
- package/src/lib/sharing/resolveMatchedConfigs.js +0 -73
- package/src/lib/sharing/resolveMatchedConfigs.js.map +0 -1
- package/src/lib/sharing/utils.d.js +0 -6
- package/src/lib/sharing/utils.d.js.map +0 -1
- package/src/lib/sharing/utils.d.ts +0 -33
- package/src/lib/sharing/utils.js.map +0 -1
- package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +0 -34
- package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +0 -1
- package/src/runtime/ModuleInfoRuntimeModule.d.ts +0 -16
- package/src/runtime/ModuleInfoRuntimeModule.js +0 -88
- package/src/runtime/ModuleInfoRuntimeModule.js.map +0 -1
- package/src/runtime/ModuleInfoRuntimePlugin.d.ts +0 -5
- package/src/runtime/ModuleInfoRuntimePlugin.js +0 -29
- package/src/runtime/ModuleInfoRuntimePlugin.js.map +0 -1
- package/src/schemas/container/ModuleFederationPlugin.check.js +0 -2245
- package/src/schemas/container/ModuleFederationPlugin.check.js.map +0 -1
- package/src/schemas/container/ModuleFederationPlugin.js.map +0 -1
- /package/{src → dist/src}/lib/Constants.d.ts +0 -0
|
@@ -1,46 +1,63 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
1
|
"use strict";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const runtimePlugin = {
|
|
5
|
+
type: 'array',
|
|
6
|
+
items: {
|
|
7
|
+
anyOf: [
|
|
8
|
+
{
|
|
9
|
+
type: 'string',
|
|
10
|
+
minLength: 1,
|
|
11
|
+
description: 'Runtime Plugin File Path.',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'object',
|
|
15
|
+
required: ['import', 'async'],
|
|
16
|
+
properties: {
|
|
17
|
+
import: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
minLength: 1,
|
|
20
|
+
description: 'Runtime Plugin File Path.',
|
|
21
|
+
},
|
|
22
|
+
async: {
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
additionalProperties: false,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
exports.default = {
|
|
13
32
|
definitions: {
|
|
14
33
|
AmdContainer: {
|
|
15
34
|
description: 'Add a container for define/require functions in the AMD module.',
|
|
16
35
|
type: 'string',
|
|
17
|
-
minLength: 1
|
|
36
|
+
minLength: 1,
|
|
18
37
|
},
|
|
19
38
|
AuxiliaryComment: {
|
|
20
39
|
description: 'Add a comment in the UMD wrapper.',
|
|
21
40
|
anyOf: [
|
|
22
41
|
{
|
|
23
42
|
description: 'Append the same comment above each import style.',
|
|
24
|
-
type: 'string'
|
|
43
|
+
type: 'string',
|
|
25
44
|
},
|
|
26
45
|
{
|
|
27
|
-
$ref: '#/definitions/LibraryCustomUmdCommentObject'
|
|
28
|
-
}
|
|
29
|
-
]
|
|
46
|
+
$ref: '#/definitions/LibraryCustomUmdCommentObject',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
30
49
|
},
|
|
31
50
|
EntryRuntime: {
|
|
32
51
|
description: 'The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.',
|
|
33
52
|
anyOf: [
|
|
34
53
|
{
|
|
35
|
-
enum: [
|
|
36
|
-
false
|
|
37
|
-
]
|
|
54
|
+
enum: [false],
|
|
38
55
|
},
|
|
39
56
|
{
|
|
40
57
|
type: 'string',
|
|
41
|
-
minLength: 1
|
|
42
|
-
}
|
|
43
|
-
]
|
|
58
|
+
minLength: 1,
|
|
59
|
+
},
|
|
60
|
+
],
|
|
44
61
|
},
|
|
45
62
|
Exposes: {
|
|
46
63
|
description: 'Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.',
|
|
@@ -51,18 +68,18 @@ const _default = {
|
|
|
51
68
|
description: 'Modules that should be exposed by this container.',
|
|
52
69
|
anyOf: [
|
|
53
70
|
{
|
|
54
|
-
$ref: '#/definitions/ExposesItem'
|
|
71
|
+
$ref: '#/definitions/ExposesItem',
|
|
55
72
|
},
|
|
56
73
|
{
|
|
57
|
-
$ref: '#/definitions/ExposesObject'
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
74
|
+
$ref: '#/definitions/ExposesObject',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
61
78
|
},
|
|
62
79
|
{
|
|
63
|
-
$ref: '#/definitions/ExposesObject'
|
|
64
|
-
}
|
|
65
|
-
]
|
|
80
|
+
$ref: '#/definitions/ExposesObject',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
66
83
|
},
|
|
67
84
|
ExposesConfig: {
|
|
68
85
|
description: 'Advanced configuration for modules that should be exposed by this container.',
|
|
@@ -73,33 +90,31 @@ const _default = {
|
|
|
73
90
|
description: 'Request to a module that should be exposed by this container.',
|
|
74
91
|
anyOf: [
|
|
75
92
|
{
|
|
76
|
-
$ref: '#/definitions/ExposesItem'
|
|
93
|
+
$ref: '#/definitions/ExposesItem',
|
|
77
94
|
},
|
|
78
95
|
{
|
|
79
|
-
$ref: '#/definitions/ExposesItems'
|
|
80
|
-
}
|
|
81
|
-
]
|
|
96
|
+
$ref: '#/definitions/ExposesItems',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
82
99
|
},
|
|
83
100
|
name: {
|
|
84
101
|
description: 'Custom chunk name for the exposed module.',
|
|
85
|
-
type: 'string'
|
|
86
|
-
}
|
|
102
|
+
type: 'string',
|
|
103
|
+
},
|
|
87
104
|
},
|
|
88
|
-
required: [
|
|
89
|
-
'import'
|
|
90
|
-
]
|
|
105
|
+
required: ['import'],
|
|
91
106
|
},
|
|
92
107
|
ExposesItem: {
|
|
93
108
|
description: 'Module that should be exposed by this container.',
|
|
94
109
|
type: 'string',
|
|
95
|
-
minLength: 1
|
|
110
|
+
minLength: 1,
|
|
96
111
|
},
|
|
97
112
|
ExposesItems: {
|
|
98
113
|
description: 'Modules that should be exposed by this container.',
|
|
99
114
|
type: 'array',
|
|
100
115
|
items: {
|
|
101
|
-
$ref: '#/definitions/ExposesItem'
|
|
102
|
-
}
|
|
116
|
+
$ref: '#/definitions/ExposesItem',
|
|
117
|
+
},
|
|
103
118
|
},
|
|
104
119
|
ExposesObject: {
|
|
105
120
|
description: 'Modules that should be exposed by this container. Property names are used as public paths.',
|
|
@@ -108,16 +123,16 @@ const _default = {
|
|
|
108
123
|
description: 'Modules that should be exposed by this container.',
|
|
109
124
|
anyOf: [
|
|
110
125
|
{
|
|
111
|
-
$ref: '#/definitions/ExposesConfig'
|
|
126
|
+
$ref: '#/definitions/ExposesConfig',
|
|
112
127
|
},
|
|
113
128
|
{
|
|
114
|
-
$ref: '#/definitions/ExposesItem'
|
|
129
|
+
$ref: '#/definitions/ExposesItem',
|
|
115
130
|
},
|
|
116
131
|
{
|
|
117
|
-
$ref: '#/definitions/ExposesItems'
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
}
|
|
132
|
+
$ref: '#/definitions/ExposesItems',
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
},
|
|
121
136
|
},
|
|
122
137
|
ExternalsType: {
|
|
123
138
|
description: "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).",
|
|
@@ -142,8 +157,8 @@ const _default = {
|
|
|
142
157
|
'promise',
|
|
143
158
|
'import',
|
|
144
159
|
'script',
|
|
145
|
-
'node-commonjs'
|
|
146
|
-
]
|
|
160
|
+
'node-commonjs',
|
|
161
|
+
],
|
|
147
162
|
},
|
|
148
163
|
LibraryCustomUmdCommentObject: {
|
|
149
164
|
description: 'Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.',
|
|
@@ -152,21 +167,21 @@ const _default = {
|
|
|
152
167
|
properties: {
|
|
153
168
|
amd: {
|
|
154
169
|
description: 'Set comment for `amd` section in UMD.',
|
|
155
|
-
type: 'string'
|
|
170
|
+
type: 'string',
|
|
156
171
|
},
|
|
157
172
|
commonjs: {
|
|
158
173
|
description: 'Set comment for `commonjs` (exports) section in UMD.',
|
|
159
|
-
type: 'string'
|
|
174
|
+
type: 'string',
|
|
160
175
|
},
|
|
161
176
|
commonjs2: {
|
|
162
177
|
description: 'Set comment for `commonjs2` (module.exports) section in UMD.',
|
|
163
|
-
type: 'string'
|
|
178
|
+
type: 'string',
|
|
164
179
|
},
|
|
165
180
|
root: {
|
|
166
181
|
description: 'Set comment for `root` (global variable) section in UMD.',
|
|
167
|
-
type: 'string'
|
|
168
|
-
}
|
|
169
|
-
}
|
|
182
|
+
type: 'string',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
170
185
|
},
|
|
171
186
|
LibraryCustomUmdObject: {
|
|
172
187
|
description: 'Description object for all UMD variants of the library name.',
|
|
@@ -176,12 +191,12 @@ const _default = {
|
|
|
176
191
|
amd: {
|
|
177
192
|
description: 'Name of the exposed AMD library in the UMD.',
|
|
178
193
|
type: 'string',
|
|
179
|
-
minLength: 1
|
|
194
|
+
minLength: 1,
|
|
180
195
|
},
|
|
181
196
|
commonjs: {
|
|
182
197
|
description: 'Name of the exposed commonjs export in the UMD.',
|
|
183
198
|
type: 'string',
|
|
184
|
-
minLength: 1
|
|
199
|
+
minLength: 1,
|
|
185
200
|
},
|
|
186
201
|
root: {
|
|
187
202
|
description: 'Name of the property exposed globally by a UMD library.',
|
|
@@ -191,16 +206,16 @@ const _default = {
|
|
|
191
206
|
items: {
|
|
192
207
|
description: 'Part of the name of the property exposed globally by a UMD library.',
|
|
193
208
|
type: 'string',
|
|
194
|
-
minLength: 1
|
|
195
|
-
}
|
|
209
|
+
minLength: 1,
|
|
210
|
+
},
|
|
196
211
|
},
|
|
197
212
|
{
|
|
198
213
|
type: 'string',
|
|
199
|
-
minLength: 1
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
}
|
|
214
|
+
minLength: 1,
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
},
|
|
204
219
|
},
|
|
205
220
|
LibraryExport: {
|
|
206
221
|
description: 'Specify which export should be exposed as library.',
|
|
@@ -210,14 +225,14 @@ const _default = {
|
|
|
210
225
|
items: {
|
|
211
226
|
description: 'Part of the export that should be exposed as library.',
|
|
212
227
|
type: 'string',
|
|
213
|
-
minLength: 1
|
|
214
|
-
}
|
|
228
|
+
minLength: 1,
|
|
229
|
+
},
|
|
215
230
|
},
|
|
216
231
|
{
|
|
217
232
|
type: 'string',
|
|
218
|
-
minLength: 1
|
|
219
|
-
}
|
|
220
|
-
]
|
|
233
|
+
minLength: 1,
|
|
234
|
+
},
|
|
235
|
+
],
|
|
221
236
|
},
|
|
222
237
|
LibraryName: {
|
|
223
238
|
description: 'The name of the library (some types allow unnamed libraries too).',
|
|
@@ -227,18 +242,18 @@ const _default = {
|
|
|
227
242
|
items: {
|
|
228
243
|
description: 'A part of the library name.',
|
|
229
244
|
type: 'string',
|
|
230
|
-
minLength: 1
|
|
245
|
+
minLength: 1,
|
|
231
246
|
},
|
|
232
|
-
minItems: 1
|
|
247
|
+
minItems: 1,
|
|
233
248
|
},
|
|
234
249
|
{
|
|
235
250
|
type: 'string',
|
|
236
|
-
minLength: 1
|
|
251
|
+
minLength: 1,
|
|
237
252
|
},
|
|
238
253
|
{
|
|
239
|
-
$ref: '#/definitions/LibraryCustomUmdObject'
|
|
240
|
-
}
|
|
241
|
-
]
|
|
254
|
+
$ref: '#/definitions/LibraryCustomUmdObject',
|
|
255
|
+
},
|
|
256
|
+
],
|
|
242
257
|
},
|
|
243
258
|
LibraryOptions: {
|
|
244
259
|
description: 'Options for library.',
|
|
@@ -246,27 +261,25 @@ const _default = {
|
|
|
246
261
|
additionalProperties: false,
|
|
247
262
|
properties: {
|
|
248
263
|
amdContainer: {
|
|
249
|
-
$ref: '#/definitions/AmdContainer'
|
|
264
|
+
$ref: '#/definitions/AmdContainer',
|
|
250
265
|
},
|
|
251
266
|
auxiliaryComment: {
|
|
252
|
-
$ref: '#/definitions/AuxiliaryComment'
|
|
267
|
+
$ref: '#/definitions/AuxiliaryComment',
|
|
253
268
|
},
|
|
254
269
|
export: {
|
|
255
|
-
$ref: '#/definitions/LibraryExport'
|
|
270
|
+
$ref: '#/definitions/LibraryExport',
|
|
256
271
|
},
|
|
257
272
|
name: {
|
|
258
|
-
$ref: '#/definitions/LibraryName'
|
|
273
|
+
$ref: '#/definitions/LibraryName',
|
|
259
274
|
},
|
|
260
275
|
type: {
|
|
261
|
-
$ref: '#/definitions/LibraryType'
|
|
276
|
+
$ref: '#/definitions/LibraryType',
|
|
262
277
|
},
|
|
263
278
|
umdNamedDefine: {
|
|
264
|
-
$ref: '#/definitions/UmdNamedDefine'
|
|
265
|
-
}
|
|
279
|
+
$ref: '#/definitions/UmdNamedDefine',
|
|
280
|
+
},
|
|
266
281
|
},
|
|
267
|
-
required: [
|
|
268
|
-
'type'
|
|
269
|
-
]
|
|
282
|
+
required: ['type'],
|
|
270
283
|
},
|
|
271
284
|
LibraryType: {
|
|
272
285
|
description: "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
|
@@ -290,13 +303,13 @@ const _default = {
|
|
|
290
303
|
'umd',
|
|
291
304
|
'umd2',
|
|
292
305
|
'jsonp',
|
|
293
|
-
'system'
|
|
294
|
-
]
|
|
306
|
+
'system',
|
|
307
|
+
],
|
|
295
308
|
},
|
|
296
309
|
{
|
|
297
|
-
type: 'string'
|
|
298
|
-
}
|
|
299
|
-
]
|
|
310
|
+
type: 'string',
|
|
311
|
+
},
|
|
312
|
+
],
|
|
300
313
|
},
|
|
301
314
|
Remotes: {
|
|
302
315
|
description: 'Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.',
|
|
@@ -307,18 +320,18 @@ const _default = {
|
|
|
307
320
|
description: 'Container locations and request scopes from which modules should be resolved and loaded at runtime.',
|
|
308
321
|
anyOf: [
|
|
309
322
|
{
|
|
310
|
-
$ref: '#/definitions/RemotesItem'
|
|
323
|
+
$ref: '#/definitions/RemotesItem',
|
|
311
324
|
},
|
|
312
325
|
{
|
|
313
|
-
$ref: '#/definitions/RemotesObject'
|
|
314
|
-
}
|
|
315
|
-
]
|
|
316
|
-
}
|
|
326
|
+
$ref: '#/definitions/RemotesObject',
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
},
|
|
317
330
|
},
|
|
318
331
|
{
|
|
319
|
-
$ref: '#/definitions/RemotesObject'
|
|
320
|
-
}
|
|
321
|
-
]
|
|
332
|
+
$ref: '#/definitions/RemotesObject',
|
|
333
|
+
},
|
|
334
|
+
],
|
|
322
335
|
},
|
|
323
336
|
RemotesConfig: {
|
|
324
337
|
description: 'Advanced configuration for container locations from which modules should be resolved and loaded at runtime.',
|
|
@@ -329,34 +342,32 @@ const _default = {
|
|
|
329
342
|
description: 'Container locations from which modules should be resolved and loaded at runtime.',
|
|
330
343
|
anyOf: [
|
|
331
344
|
{
|
|
332
|
-
$ref: '#/definitions/RemotesItem'
|
|
345
|
+
$ref: '#/definitions/RemotesItem',
|
|
333
346
|
},
|
|
334
347
|
{
|
|
335
|
-
$ref: '#/definitions/RemotesItems'
|
|
336
|
-
}
|
|
337
|
-
]
|
|
348
|
+
$ref: '#/definitions/RemotesItems',
|
|
349
|
+
},
|
|
350
|
+
],
|
|
338
351
|
},
|
|
339
352
|
shareScope: {
|
|
340
353
|
description: 'The name of the share scope shared with this remote.',
|
|
341
354
|
type: 'string',
|
|
342
|
-
minLength: 1
|
|
343
|
-
}
|
|
355
|
+
minLength: 1,
|
|
356
|
+
},
|
|
344
357
|
},
|
|
345
|
-
required: [
|
|
346
|
-
'external'
|
|
347
|
-
]
|
|
358
|
+
required: ['external'],
|
|
348
359
|
},
|
|
349
360
|
RemotesItem: {
|
|
350
361
|
description: 'Container location from which modules should be resolved and loaded at runtime.',
|
|
351
362
|
type: 'string',
|
|
352
|
-
minLength: 1
|
|
363
|
+
minLength: 1,
|
|
353
364
|
},
|
|
354
365
|
RemotesItems: {
|
|
355
366
|
description: 'Container locations from which modules should be resolved and loaded at runtime.',
|
|
356
367
|
type: 'array',
|
|
357
368
|
items: {
|
|
358
|
-
$ref: '#/definitions/RemotesItem'
|
|
359
|
-
}
|
|
369
|
+
$ref: '#/definitions/RemotesItem',
|
|
370
|
+
},
|
|
360
371
|
},
|
|
361
372
|
RemotesObject: {
|
|
362
373
|
description: 'Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.',
|
|
@@ -365,16 +376,16 @@ const _default = {
|
|
|
365
376
|
description: 'Container locations from which modules should be resolved and loaded at runtime.',
|
|
366
377
|
anyOf: [
|
|
367
378
|
{
|
|
368
|
-
$ref: '#/definitions/RemotesConfig'
|
|
379
|
+
$ref: '#/definitions/RemotesConfig',
|
|
369
380
|
},
|
|
370
381
|
{
|
|
371
|
-
$ref: '#/definitions/RemotesItem'
|
|
382
|
+
$ref: '#/definitions/RemotesItem',
|
|
372
383
|
},
|
|
373
384
|
{
|
|
374
|
-
$ref: '#/definitions/RemotesItems'
|
|
375
|
-
}
|
|
376
|
-
]
|
|
377
|
-
}
|
|
385
|
+
$ref: '#/definitions/RemotesItems',
|
|
386
|
+
},
|
|
387
|
+
],
|
|
388
|
+
},
|
|
378
389
|
},
|
|
379
390
|
Shared: {
|
|
380
391
|
description: 'Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.',
|
|
@@ -385,18 +396,18 @@ const _default = {
|
|
|
385
396
|
description: 'Modules that should be shared in the share scope.',
|
|
386
397
|
anyOf: [
|
|
387
398
|
{
|
|
388
|
-
$ref: '#/definitions/SharedItem'
|
|
399
|
+
$ref: '#/definitions/SharedItem',
|
|
389
400
|
},
|
|
390
401
|
{
|
|
391
|
-
$ref: '#/definitions/SharedObject'
|
|
392
|
-
}
|
|
393
|
-
]
|
|
394
|
-
}
|
|
402
|
+
$ref: '#/definitions/SharedObject',
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
},
|
|
395
406
|
},
|
|
396
407
|
{
|
|
397
|
-
$ref: '#/definitions/SharedObject'
|
|
398
|
-
}
|
|
399
|
-
]
|
|
408
|
+
$ref: '#/definitions/SharedObject',
|
|
409
|
+
},
|
|
410
|
+
],
|
|
400
411
|
},
|
|
401
412
|
SharedConfig: {
|
|
402
413
|
description: 'Advanced configuration for modules that should be shared in the share scope.',
|
|
@@ -405,81 +416,75 @@ const _default = {
|
|
|
405
416
|
properties: {
|
|
406
417
|
eager: {
|
|
407
418
|
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.',
|
|
408
|
-
type: 'boolean'
|
|
419
|
+
type: 'boolean',
|
|
409
420
|
},
|
|
410
421
|
import: {
|
|
411
422
|
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.",
|
|
412
423
|
anyOf: [
|
|
413
424
|
{
|
|
414
425
|
description: 'No provided or fallback module.',
|
|
415
|
-
enum: [
|
|
416
|
-
false
|
|
417
|
-
]
|
|
426
|
+
enum: [false],
|
|
418
427
|
},
|
|
419
428
|
{
|
|
420
|
-
$ref: '#/definitions/SharedItem'
|
|
421
|
-
}
|
|
422
|
-
]
|
|
429
|
+
$ref: '#/definitions/SharedItem',
|
|
430
|
+
},
|
|
431
|
+
],
|
|
423
432
|
},
|
|
424
433
|
packageName: {
|
|
425
434
|
description: "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
|
|
426
435
|
type: 'string',
|
|
427
|
-
minLength: 1
|
|
436
|
+
minLength: 1,
|
|
428
437
|
},
|
|
429
438
|
requiredVersion: {
|
|
430
439
|
description: 'Version requirement from module in share scope.',
|
|
431
440
|
anyOf: [
|
|
432
441
|
{
|
|
433
442
|
description: 'No version requirement check.',
|
|
434
|
-
enum: [
|
|
435
|
-
false
|
|
436
|
-
]
|
|
443
|
+
enum: [false],
|
|
437
444
|
},
|
|
438
445
|
{
|
|
439
446
|
description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
|
|
440
|
-
type: 'string'
|
|
441
|
-
}
|
|
442
|
-
]
|
|
447
|
+
type: 'string',
|
|
448
|
+
},
|
|
449
|
+
],
|
|
443
450
|
},
|
|
444
451
|
shareKey: {
|
|
445
452
|
description: 'Module is looked up under this key from the share scope.',
|
|
446
453
|
type: 'string',
|
|
447
|
-
minLength: 1
|
|
454
|
+
minLength: 1,
|
|
448
455
|
},
|
|
449
456
|
shareScope: {
|
|
450
457
|
description: 'Share scope name.',
|
|
451
458
|
type: 'string',
|
|
452
|
-
minLength: 1
|
|
459
|
+
minLength: 1,
|
|
453
460
|
},
|
|
454
461
|
singleton: {
|
|
455
462
|
description: 'Allow only a single version of the shared module in share scope (disabled by default).',
|
|
456
|
-
type: 'boolean'
|
|
463
|
+
type: 'boolean',
|
|
457
464
|
},
|
|
458
465
|
strictVersion: {
|
|
459
466
|
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).',
|
|
460
|
-
type: 'boolean'
|
|
467
|
+
type: 'boolean',
|
|
461
468
|
},
|
|
462
469
|
version: {
|
|
463
470
|
description: 'Version of the provided module. Will replace lower matching versions, but not higher.',
|
|
464
471
|
anyOf: [
|
|
465
472
|
{
|
|
466
473
|
description: "Don't provide a version.",
|
|
467
|
-
enum: [
|
|
468
|
-
false
|
|
469
|
-
]
|
|
474
|
+
enum: [false],
|
|
470
475
|
},
|
|
471
476
|
{
|
|
472
477
|
description: "Version as string. Each part of the version should be separated by a dot '.'.",
|
|
473
|
-
type: 'string'
|
|
474
|
-
}
|
|
475
|
-
]
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
+
type: 'string',
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
},
|
|
482
|
+
},
|
|
478
483
|
},
|
|
479
484
|
SharedItem: {
|
|
480
485
|
description: 'A module that should be shared in the share scope.',
|
|
481
486
|
type: 'string',
|
|
482
|
-
minLength: 1
|
|
487
|
+
minLength: 1,
|
|
483
488
|
},
|
|
484
489
|
SharedObject: {
|
|
485
490
|
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.',
|
|
@@ -488,65 +493,232 @@ const _default = {
|
|
|
488
493
|
description: 'Modules that should be shared in the share scope.',
|
|
489
494
|
anyOf: [
|
|
490
495
|
{
|
|
491
|
-
$ref: '#/definitions/SharedConfig'
|
|
496
|
+
$ref: '#/definitions/SharedConfig',
|
|
492
497
|
},
|
|
493
498
|
{
|
|
494
|
-
$ref: '#/definitions/SharedItem'
|
|
495
|
-
}
|
|
496
|
-
]
|
|
497
|
-
}
|
|
499
|
+
$ref: '#/definitions/SharedItem',
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
},
|
|
498
503
|
},
|
|
499
504
|
UmdNamedDefine: {
|
|
500
505
|
description: 'If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.',
|
|
501
|
-
type: 'boolean'
|
|
502
|
-
}
|
|
506
|
+
type: 'boolean',
|
|
507
|
+
},
|
|
508
|
+
Manifest: {
|
|
509
|
+
description: 'Used to config manifest.',
|
|
510
|
+
type: 'object',
|
|
511
|
+
properties: {
|
|
512
|
+
filePath: {
|
|
513
|
+
description: 'The file path of the vmok manifest.',
|
|
514
|
+
type: 'string',
|
|
515
|
+
},
|
|
516
|
+
disableAssetsAnalyze: {
|
|
517
|
+
description: 'Used to disable assets analyze in dev. If the value is set to true, manifest will neither have shared and exposes fields nor have remotes detail. Generally, it will be set to true in dev if the project is a pure consumer.',
|
|
518
|
+
type: 'boolean',
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
},
|
|
522
|
+
DtsRemoteOptions: {
|
|
523
|
+
description: 'Used to config generate types.',
|
|
524
|
+
type: 'object',
|
|
525
|
+
properties: {
|
|
526
|
+
tsConfigPath: {
|
|
527
|
+
description: 'The tsconfig path of the project.',
|
|
528
|
+
type: 'string',
|
|
529
|
+
},
|
|
530
|
+
typesFolder: {
|
|
531
|
+
description: 'The generated folder path of the types.',
|
|
532
|
+
type: 'string',
|
|
533
|
+
},
|
|
534
|
+
compiledTypesFolder: {
|
|
535
|
+
description: 'The compiled folder path of the types.',
|
|
536
|
+
type: 'string',
|
|
537
|
+
},
|
|
538
|
+
deleteTypesFolder: {
|
|
539
|
+
description: 'Whether delete the types folder.',
|
|
540
|
+
type: 'boolean',
|
|
541
|
+
},
|
|
542
|
+
additionalFilesToCompile: {
|
|
543
|
+
description: 'The additional files to compile.',
|
|
544
|
+
type: 'array',
|
|
545
|
+
items: {
|
|
546
|
+
type: 'string',
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
compileInChildProcess: {
|
|
550
|
+
description: 'Whether compile types in child process.',
|
|
551
|
+
type: 'boolean',
|
|
552
|
+
},
|
|
553
|
+
compilerInstance: {
|
|
554
|
+
description: 'The compiler instance of the project.',
|
|
555
|
+
enum: ['tsc', 'vue-tsc'],
|
|
556
|
+
},
|
|
557
|
+
generateAPITypes: {
|
|
558
|
+
description: 'Whether generate runtime api types.',
|
|
559
|
+
type: 'boolean',
|
|
560
|
+
},
|
|
561
|
+
abortOnError: {
|
|
562
|
+
description: 'Whether abort the process while generate types failed.',
|
|
563
|
+
type: 'boolean',
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
},
|
|
567
|
+
DtsHostOptions: {
|
|
568
|
+
description: 'Used to config consume types.',
|
|
569
|
+
type: 'object',
|
|
570
|
+
properties: {
|
|
571
|
+
typesFolder: {
|
|
572
|
+
description: 'The consumed folder path of the types.',
|
|
573
|
+
type: 'string',
|
|
574
|
+
},
|
|
575
|
+
remoteTypesFolder: {
|
|
576
|
+
description: 'The consumed remote folder path of the types.',
|
|
577
|
+
type: 'string',
|
|
578
|
+
},
|
|
579
|
+
deleteTypesFolder: {
|
|
580
|
+
description: 'Whether delete the types folder.',
|
|
581
|
+
type: 'boolean',
|
|
582
|
+
},
|
|
583
|
+
abortOnError: {
|
|
584
|
+
description: 'Whether abort the process while consume types failed.',
|
|
585
|
+
type: 'boolean',
|
|
586
|
+
},
|
|
587
|
+
maxRetries: {
|
|
588
|
+
description: 'The max retries count of consume types.',
|
|
589
|
+
type: 'number',
|
|
590
|
+
minimum: 1,
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
Dts: {
|
|
595
|
+
description: 'Used to get types support.',
|
|
596
|
+
type: 'object',
|
|
597
|
+
properties: {
|
|
598
|
+
generateTypes: {
|
|
599
|
+
description: 'Used to config generate types.',
|
|
600
|
+
ref: '#/definitions/DtsRemoteOptions',
|
|
601
|
+
},
|
|
602
|
+
consumeTypes: {
|
|
603
|
+
description: 'Used to config consume types.',
|
|
604
|
+
ref: '#/definitions/DtsHostOptions',
|
|
605
|
+
},
|
|
606
|
+
extraOptions: {
|
|
607
|
+
description: 'Extra options for DTS Manager.',
|
|
608
|
+
type: 'object',
|
|
609
|
+
additionalProperties: true,
|
|
610
|
+
},
|
|
611
|
+
tsConfigPath: {
|
|
612
|
+
description: 'The tsconfig path of the project.',
|
|
613
|
+
type: 'string',
|
|
614
|
+
},
|
|
615
|
+
implementation: {
|
|
616
|
+
description: 'The implementation of the DTS Manager.',
|
|
617
|
+
type: 'string',
|
|
618
|
+
minLength: 1,
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
additionalProperties: false,
|
|
622
|
+
},
|
|
623
|
+
Dev: {
|
|
624
|
+
description: 'Used to config dev.',
|
|
625
|
+
type: 'object',
|
|
626
|
+
properties: {
|
|
627
|
+
disableLiveReload: {
|
|
628
|
+
description: 'Disable live reload.',
|
|
629
|
+
type: 'boolean',
|
|
630
|
+
},
|
|
631
|
+
disableHotTypesReload: {
|
|
632
|
+
description: 'Disable hot types reload.',
|
|
633
|
+
type: 'boolean',
|
|
634
|
+
},
|
|
635
|
+
disableDynamicRemoteTypeHints: {
|
|
636
|
+
description: 'Disable dynamic remote types hints.',
|
|
637
|
+
type: 'boolean',
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
},
|
|
503
641
|
},
|
|
504
642
|
title: 'ModuleFederationPluginOptions',
|
|
505
643
|
type: 'object',
|
|
506
644
|
additionalProperties: false,
|
|
507
645
|
properties: {
|
|
508
646
|
exposes: {
|
|
509
|
-
$ref: '#/definitions/Exposes'
|
|
647
|
+
$ref: '#/definitions/Exposes',
|
|
510
648
|
},
|
|
511
649
|
filename: {
|
|
512
650
|
description: 'The filename of the container as relative path inside the `output.path` directory.',
|
|
513
651
|
type: 'string',
|
|
514
|
-
absolutePath: false
|
|
652
|
+
absolutePath: false,
|
|
515
653
|
},
|
|
516
|
-
|
|
517
|
-
|
|
654
|
+
implementation: {
|
|
655
|
+
description: 'Runtime tools path',
|
|
656
|
+
type: 'string',
|
|
657
|
+
minLength: 1,
|
|
518
658
|
},
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
type: 'boolean'
|
|
659
|
+
library: {
|
|
660
|
+
$ref: '#/definitions/LibraryOptions',
|
|
522
661
|
},
|
|
523
662
|
name: {
|
|
524
663
|
description: 'The name of the container.',
|
|
525
|
-
type: 'string'
|
|
664
|
+
type: 'string',
|
|
526
665
|
},
|
|
527
666
|
remoteType: {
|
|
528
667
|
description: 'The external type of the remote containers.',
|
|
529
668
|
oneOf: [
|
|
530
669
|
{
|
|
531
|
-
$ref: '#/definitions/ExternalsType'
|
|
532
|
-
}
|
|
533
|
-
]
|
|
670
|
+
$ref: '#/definitions/ExternalsType',
|
|
671
|
+
},
|
|
672
|
+
],
|
|
534
673
|
},
|
|
535
674
|
remotes: {
|
|
536
|
-
$ref: '#/definitions/Remotes'
|
|
675
|
+
$ref: '#/definitions/Remotes',
|
|
537
676
|
},
|
|
538
677
|
runtime: {
|
|
539
|
-
$ref: '#/definitions/EntryRuntime'
|
|
678
|
+
$ref: '#/definitions/EntryRuntime',
|
|
679
|
+
},
|
|
680
|
+
runtimePlugins: runtimePlugin,
|
|
681
|
+
manifest: {
|
|
682
|
+
description: 'Used to config manifest.',
|
|
683
|
+
anyOf: [
|
|
684
|
+
{
|
|
685
|
+
$ref: '#/definitions/Manifest',
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
type: 'boolean',
|
|
689
|
+
},
|
|
690
|
+
],
|
|
540
691
|
},
|
|
541
692
|
shareScope: {
|
|
542
693
|
description: "Share scope name used for all shared modules (defaults to 'default').",
|
|
543
694
|
type: 'string',
|
|
544
|
-
minLength: 1
|
|
695
|
+
minLength: 1,
|
|
545
696
|
},
|
|
546
697
|
shared: {
|
|
547
|
-
$ref: '#/definitions/Shared'
|
|
548
|
-
}
|
|
549
|
-
|
|
698
|
+
$ref: '#/definitions/Shared',
|
|
699
|
+
},
|
|
700
|
+
dts: {
|
|
701
|
+
description: 'Used to get types support.',
|
|
702
|
+
anyOf: [
|
|
703
|
+
{
|
|
704
|
+
$ref: '#/definitions/Dts',
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
type: 'boolean',
|
|
708
|
+
},
|
|
709
|
+
],
|
|
710
|
+
},
|
|
711
|
+
dev: {
|
|
712
|
+
description: 'Dev options.',
|
|
713
|
+
anyOf: [
|
|
714
|
+
{
|
|
715
|
+
$ref: '#/definitions/Dev',
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
type: 'boolean',
|
|
719
|
+
},
|
|
720
|
+
],
|
|
721
|
+
},
|
|
722
|
+
},
|
|
550
723
|
};
|
|
551
|
-
|
|
552
724
|
//# sourceMappingURL=ModuleFederationPlugin.js.map
|