@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,281 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
3
|
-
Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr
|
|
4
|
-
*/ 'use strict';
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports, "default", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return _default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const _AsyncDependenciesBlock = /*#__PURE__*/ _interop_require_default(require("webpack/lib/AsyncDependenciesBlock"));
|
|
15
|
-
const _Template = /*#__PURE__*/ _interop_require_default(require("webpack/lib/Template"));
|
|
16
|
-
const _Module = /*#__PURE__*/ _interop_require_default(require("webpack/lib/Module"));
|
|
17
|
-
const _RuntimeGlobals = /*#__PURE__*/ _interop_require_wildcard(require("webpack/lib/RuntimeGlobals"));
|
|
18
|
-
const _webpacksources = require("webpack-sources");
|
|
19
|
-
const _ModuleTypeConstants = require("webpack/lib/ModuleTypeConstants");
|
|
20
|
-
const _ContainerExposedDependency = /*#__PURE__*/ _interop_require_default(require("./ContainerExposedDependency"));
|
|
21
|
-
const _StaticExportsDependency = /*#__PURE__*/ _interop_require_default(require("webpack/lib/dependencies/StaticExportsDependency"));
|
|
22
|
-
const _makeSerializable = /*#__PURE__*/ _interop_require_default(require("webpack/lib/util/makeSerializable"));
|
|
23
|
-
function _interop_require_default(obj) {
|
|
24
|
-
return obj && obj.__esModule ? obj : {
|
|
25
|
-
default: obj
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
29
|
-
if (typeof WeakMap !== "function") return null;
|
|
30
|
-
var cacheBabelInterop = new WeakMap();
|
|
31
|
-
var cacheNodeInterop = new WeakMap();
|
|
32
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
33
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
34
|
-
})(nodeInterop);
|
|
35
|
-
}
|
|
36
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
37
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
38
|
-
return obj;
|
|
39
|
-
}
|
|
40
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
41
|
-
return {
|
|
42
|
-
default: obj
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
46
|
-
if (cache && cache.has(obj)) {
|
|
47
|
-
return cache.get(obj);
|
|
48
|
-
}
|
|
49
|
-
var newObj = {
|
|
50
|
-
__proto__: null
|
|
51
|
-
};
|
|
52
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
53
|
-
for(var key in obj){
|
|
54
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
55
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
56
|
-
if (desc && (desc.get || desc.set)) {
|
|
57
|
-
Object.defineProperty(newObj, key, desc);
|
|
58
|
-
} else {
|
|
59
|
-
newObj[key] = obj[key];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
newObj.default = obj;
|
|
64
|
-
if (cache) {
|
|
65
|
-
cache.set(obj, newObj);
|
|
66
|
-
}
|
|
67
|
-
return newObj;
|
|
68
|
-
}
|
|
69
|
-
const SOURCE_TYPES = new Set([
|
|
70
|
-
'javascript'
|
|
71
|
-
]);
|
|
72
|
-
let ContainerEntryModule = class ContainerEntryModule extends _Module.default {
|
|
73
|
-
/**
|
|
74
|
-
* @param {ObjectDeserializerContext} context context
|
|
75
|
-
* @returns {ContainerEntryModule} deserialized container entry module
|
|
76
|
-
*/ static deserialize(context) {
|
|
77
|
-
const { read } = context;
|
|
78
|
-
const obj = new ContainerEntryModule(read(), read(), read());
|
|
79
|
-
//@ts-ignore
|
|
80
|
-
obj.deserialize(context);
|
|
81
|
-
return obj;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* @returns {Set<string>} types available (do not mutate)
|
|
85
|
-
*/ getSourceTypes() {
|
|
86
|
-
return SOURCE_TYPES;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @returns {string} a unique identifier of the module
|
|
90
|
-
*/ identifier() {
|
|
91
|
-
return `container entry (${this._shareScope}) ${JSON.stringify(this._exposes)}`;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @param {RequestShortener} requestShortener the request shortener
|
|
95
|
-
* @returns {string} a user readable identifier of the module
|
|
96
|
-
*/ readableIdentifier(requestShortener) {
|
|
97
|
-
return 'container entry';
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* @param {LibIdentOptions} options options
|
|
101
|
-
* @returns {string | null} an identifier for library inclusion
|
|
102
|
-
*/ libIdent(options) {
|
|
103
|
-
return `${this.layer ? `(${this.layer})/` : ''}webpack/container/entry/${this._name}`;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @param {NeedBuildContext} context context info
|
|
107
|
-
* @param {function((WebpackError | null)=, boolean=): void} callback callback function, returns true, if the module needs a rebuild
|
|
108
|
-
* @returns {void}
|
|
109
|
-
*/ needBuild(context, callback) {
|
|
110
|
-
const baseContext = context;
|
|
111
|
-
callback(null, !this.buildMeta);
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* @param {WebpackOptions} options webpack options
|
|
115
|
-
* @param {Compilation} compilation the compilation
|
|
116
|
-
* @param {ResolverWithOptions} resolver the resolver
|
|
117
|
-
* @param {InputFileSystem} fs the file system
|
|
118
|
-
* @param {function(WebpackError): void} callback callback function
|
|
119
|
-
* @returns {void}
|
|
120
|
-
*/ build(options, compilation, resolver, fs, callback) {
|
|
121
|
-
this.buildMeta = {};
|
|
122
|
-
this.buildInfo = {
|
|
123
|
-
strict: true,
|
|
124
|
-
topLevelDeclarations: new Set([
|
|
125
|
-
'moduleMap',
|
|
126
|
-
'get',
|
|
127
|
-
'init'
|
|
128
|
-
])
|
|
129
|
-
};
|
|
130
|
-
this.buildMeta.exportsType = 'namespace';
|
|
131
|
-
//@ts-ignore
|
|
132
|
-
this.clearDependenciesAndBlocks();
|
|
133
|
-
for (const [name, options] of this._exposes){
|
|
134
|
-
const block = new _AsyncDependenciesBlock.default({
|
|
135
|
-
name: options.name
|
|
136
|
-
}, {
|
|
137
|
-
name
|
|
138
|
-
}, options.import[options.import.length - 1]);
|
|
139
|
-
let idx = 0;
|
|
140
|
-
for (const request of options.import){
|
|
141
|
-
const dep = new _ContainerExposedDependency.default(name, request);
|
|
142
|
-
dep.loc = {
|
|
143
|
-
name,
|
|
144
|
-
index: idx++
|
|
145
|
-
};
|
|
146
|
-
//@ts-ignore
|
|
147
|
-
block.addDependency(dep);
|
|
148
|
-
}
|
|
149
|
-
//@ts-ignore
|
|
150
|
-
this.addBlock(block);
|
|
151
|
-
}
|
|
152
|
-
//@ts-ignore
|
|
153
|
-
this.addDependency(//@ts-ignore
|
|
154
|
-
new _StaticExportsDependency.default([
|
|
155
|
-
'get',
|
|
156
|
-
'init'
|
|
157
|
-
], false));
|
|
158
|
-
callback();
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* @param {CodeGenerationContext} context context for code generation
|
|
162
|
-
* @returns {CodeGenerationResult} result
|
|
163
|
-
*/ //@ts-ignore
|
|
164
|
-
codeGeneration({ moduleGraph, chunkGraph, runtimeTemplate }) {
|
|
165
|
-
const sources = new Map();
|
|
166
|
-
const runtimeRequirements = new Set([
|
|
167
|
-
_RuntimeGlobals.definePropertyGetters,
|
|
168
|
-
_RuntimeGlobals.hasOwnProperty,
|
|
169
|
-
_RuntimeGlobals.exports
|
|
170
|
-
]);
|
|
171
|
-
const getters = [];
|
|
172
|
-
//@ts-ignore
|
|
173
|
-
for (const block of this.blocks){
|
|
174
|
-
const { dependencies } = block;
|
|
175
|
-
const modules = dependencies.map((dependency)=>{
|
|
176
|
-
const dep = dependency;
|
|
177
|
-
return {
|
|
178
|
-
name: dep.exposedName,
|
|
179
|
-
module: moduleGraph.getModule(dep),
|
|
180
|
-
request: dep.userRequest
|
|
181
|
-
};
|
|
182
|
-
});
|
|
183
|
-
let str;
|
|
184
|
-
//@ts-ignore
|
|
185
|
-
if (modules.some((m)=>!m.module)) {
|
|
186
|
-
str = runtimeTemplate.throwMissingModuleErrorBlock({
|
|
187
|
-
//@ts-ignore
|
|
188
|
-
request: modules.map((m)=>m.request).join(', ')
|
|
189
|
-
});
|
|
190
|
-
} else {
|
|
191
|
-
str = `return ${runtimeTemplate.blockPromise({
|
|
192
|
-
block,
|
|
193
|
-
message: '',
|
|
194
|
-
chunkGraph,
|
|
195
|
-
runtimeRequirements
|
|
196
|
-
})}.then(${runtimeTemplate.returningFunction(runtimeTemplate.returningFunction(`(${modules//@ts-ignore
|
|
197
|
-
.map(({ module, request })=>runtimeTemplate.moduleRaw({
|
|
198
|
-
module,
|
|
199
|
-
chunkGraph,
|
|
200
|
-
request,
|
|
201
|
-
weak: false,
|
|
202
|
-
runtimeRequirements
|
|
203
|
-
})).join(', ')})`))});`;
|
|
204
|
-
}
|
|
205
|
-
getters.push(`${JSON.stringify(modules[0].name)}: ${runtimeTemplate.basicFunction('', str)}`);
|
|
206
|
-
}
|
|
207
|
-
const source = _Template.default.asString([
|
|
208
|
-
`var moduleMap = {`,
|
|
209
|
-
_Template.default.indent(getters.join(',\n')),
|
|
210
|
-
'};',
|
|
211
|
-
`var get = ${runtimeTemplate.basicFunction('module, getScope', [
|
|
212
|
-
`${_RuntimeGlobals.currentRemoteGetScope} = getScope;`,
|
|
213
|
-
// reusing the getScope variable to avoid creating a new var (and module is also used later)
|
|
214
|
-
'getScope = (',
|
|
215
|
-
_Template.default.indent([
|
|
216
|
-
`${_RuntimeGlobals.hasOwnProperty}(moduleMap, module)`,
|
|
217
|
-
_Template.default.indent([
|
|
218
|
-
'? moduleMap[module]()',
|
|
219
|
-
`: Promise.resolve().then(${runtimeTemplate.basicFunction('', "throw new Error('Module \"' + module + '\" does not exist in container.');")})`
|
|
220
|
-
])
|
|
221
|
-
]),
|
|
222
|
-
');',
|
|
223
|
-
`${_RuntimeGlobals.currentRemoteGetScope} = undefined;`,
|
|
224
|
-
'return getScope;'
|
|
225
|
-
])};`,
|
|
226
|
-
`var init = ${runtimeTemplate.basicFunction('shareScope, initScope', [
|
|
227
|
-
`if (!${_RuntimeGlobals.shareScopeMap}) return;`,
|
|
228
|
-
`var name = ${JSON.stringify(this._shareScope)}`,
|
|
229
|
-
`var oldScope = ${_RuntimeGlobals.shareScopeMap}[name];`,
|
|
230
|
-
`if(oldScope && oldScope !== shareScope) throw new Error("Container initialization failed as it has already been initialized with a different share scope");`,
|
|
231
|
-
`${_RuntimeGlobals.shareScopeMap}[name] = shareScope;`,
|
|
232
|
-
`return ${_RuntimeGlobals.initializeSharing}(name, initScope);`
|
|
233
|
-
])};`,
|
|
234
|
-
'',
|
|
235
|
-
'// This exports getters to disallow modifications',
|
|
236
|
-
`${_RuntimeGlobals.definePropertyGetters}(exports, {`,
|
|
237
|
-
_Template.default.indent([
|
|
238
|
-
`get: ${runtimeTemplate.returningFunction('get')},`,
|
|
239
|
-
`init: ${runtimeTemplate.returningFunction('init')}`
|
|
240
|
-
]),
|
|
241
|
-
'});'
|
|
242
|
-
]);
|
|
243
|
-
sources.set('javascript', this.useSourceMap || this.useSimpleSourceMap ? new _webpacksources.OriginalSource(source, 'webpack/container-entry') : new _webpacksources.RawSource(source));
|
|
244
|
-
return {
|
|
245
|
-
sources,
|
|
246
|
-
runtimeRequirements
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* @param {string=} type the source type for which the size should be estimated
|
|
251
|
-
* @returns {number} the estimated size of the module (must be non-zero)
|
|
252
|
-
*/ size(type) {
|
|
253
|
-
return 42;
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* @param {ObjectSerializerContext} context context
|
|
257
|
-
*/ //@ts-ignore
|
|
258
|
-
serialize(context) {
|
|
259
|
-
const { write } = context;
|
|
260
|
-
write(this._name);
|
|
261
|
-
write(this._exposes);
|
|
262
|
-
write(this._shareScope);
|
|
263
|
-
//@ts-ignore
|
|
264
|
-
super.serialize(context);
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* @param {string} name container entry name
|
|
268
|
-
* @param {[string, ExposeOptions][]} exposes list of exposed modules
|
|
269
|
-
* @param {string} shareScope name of the share scope
|
|
270
|
-
*/ constructor(name, exposes, shareScope){
|
|
271
|
-
super(_ModuleTypeConstants.JAVASCRIPT_MODULE_TYPE_DYNAMIC, null);
|
|
272
|
-
this._name = name;
|
|
273
|
-
this._exposes = exposes;
|
|
274
|
-
this._shareScope = shareScope;
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
//@ts-ignore
|
|
278
|
-
(0, _makeSerializable.default)(ContainerEntryModule, 'enhanced/lib/container/ContainerEntryModule');
|
|
279
|
-
const _default = ContainerEntryModule;
|
|
280
|
-
|
|
281
|
-
//# sourceMappingURL=ContainerEntryModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryModule.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr\n*/\n\n'use strict';\nimport AsyncDependenciesBlock from 'webpack/lib/AsyncDependenciesBlock';\nimport Dependency from 'webpack/lib/Dependency';\nimport Template from 'webpack/lib/Template';\nimport Module from 'webpack/lib/Module';\nimport * as RuntimeGlobals from 'webpack/lib/RuntimeGlobals';\nimport { OriginalSource, RawSource } from 'webpack-sources';\nimport { JAVASCRIPT_MODULE_TYPE_DYNAMIC } from 'webpack/lib/ModuleTypeConstants';\nimport ContainerExposedDependency from './ContainerExposedDependency';\nimport StaticExportsDependency from 'webpack/lib/dependencies/StaticExportsDependency';\nimport type Compilation from 'webpack/lib/Compilation';\nimport type {\n LibIdentOptions,\n NeedBuildContext,\n RequestShortener,\n ObjectDeserializerContext,\n ObjectSerializerContext,\n WebpackOptions,\n InputFileSystem,\n ResolverWithOptions,\n} from 'webpack/lib/Module';\nimport type WebpackError from 'webpack/lib/WebpackError';\nimport makeSerializable from 'webpack/lib/util/makeSerializable';\n\nconst SOURCE_TYPES = new Set(['javascript']);\n\nexport type ExposeOptions = {\n /**\n * requests to exposed modules (last one is exported)\n */\n import: string[];\n /**\n * custom chunk name for the exposed module\n */\n name: string;\n};\n\nclass ContainerEntryModule extends Module {\n private _name: string;\n private _exposes: [string, ExposeOptions][];\n private _shareScope: string;\n /**\n * @param {string} name container entry name\n * @param {[string, ExposeOptions][]} exposes list of exposed modules\n * @param {string} shareScope name of the share scope\n */\n constructor(\n name: string,\n exposes: [string, ExposeOptions][],\n shareScope: string,\n ) {\n super(JAVASCRIPT_MODULE_TYPE_DYNAMIC, null);\n this._name = name;\n this._exposes = exposes;\n this._shareScope = shareScope;\n }\n /**\n * @param {ObjectDeserializerContext} context context\n * @returns {ContainerEntryModule} deserialized container entry module\n */\n static deserialize(context: ObjectDeserializerContext): ContainerEntryModule {\n const { read } = context;\n const obj = new ContainerEntryModule(read(), read(), read());\n //@ts-ignore\n obj.deserialize(context);\n return obj;\n }\n\n /**\n * @returns {Set<string>} types available (do not mutate)\n */\n override getSourceTypes(): Set<string> {\n return SOURCE_TYPES;\n }\n /**\n * @returns {string} a unique identifier of the module\n */\n override identifier(): string {\n return `container entry (${this._shareScope}) ${JSON.stringify(\n this._exposes,\n )}`;\n }\n /**\n * @param {RequestShortener} requestShortener the request shortener\n * @returns {string} a user readable identifier of the module\n */\n override readableIdentifier(requestShortener: RequestShortener): string {\n return 'container entry';\n }\n /**\n * @param {LibIdentOptions} options options\n * @returns {string | null} an identifier for library inclusion\n */\n override libIdent(options: LibIdentOptions): string | null {\n return `${this.layer ? `(${this.layer})/` : ''}webpack/container/entry/${\n this._name\n }`;\n }\n /**\n * @param {NeedBuildContext} context context info\n * @param {function((WebpackError | null)=, boolean=): void} callback callback function, returns true, if the module needs a rebuild\n * @returns {void}\n */\n override needBuild(\n context: NeedBuildContext,\n callback: (\n arg0: (WebpackError | null) | undefined,\n arg1: boolean | undefined,\n ) => void,\n ): void {\n const baseContext = context as NeedBuildContext;\n callback(null, !this.buildMeta);\n }\n /**\n * @param {WebpackOptions} options webpack options\n * @param {Compilation} compilation the compilation\n * @param {ResolverWithOptions} resolver the resolver\n * @param {InputFileSystem} fs the file system\n * @param {function(WebpackError): void} callback callback function\n * @returns {void}\n */\n override build(\n options: WebpackOptions,\n compilation: Compilation,\n resolver: ResolverWithOptions,\n fs: InputFileSystem,\n callback: (err?: WebpackError) => void,\n ): void {\n this.buildMeta = {};\n this.buildInfo = {\n strict: true,\n topLevelDeclarations: new Set(['moduleMap', 'get', 'init']),\n };\n this.buildMeta.exportsType = 'namespace';\n //@ts-ignore\n this.clearDependenciesAndBlocks();\n\n for (const [name, options] of this._exposes) {\n const block = new AsyncDependenciesBlock(\n {\n name: options.name,\n },\n { name },\n options.import[options.import.length - 1],\n );\n let idx = 0;\n for (const request of options.import) {\n const dep = new ContainerExposedDependency(name, request);\n dep.loc = {\n name,\n index: idx++,\n };\n //@ts-ignore\n block.addDependency(dep);\n }\n //@ts-ignore\n this.addBlock(block);\n }\n //@ts-ignore\n this.addDependency(\n //@ts-ignore\n new StaticExportsDependency(\n ['get', 'init'],\n false,\n ) as unknown as Dependency,\n );\n\n callback();\n }\n\n /**\n * @param {CodeGenerationContext} context context for code generation\n * @returns {CodeGenerationResult} result\n */\n //@ts-ignore\n override codeGeneration({ moduleGraph, chunkGraph, runtimeTemplate }) {\n const sources = new Map();\n const runtimeRequirements = new Set([\n RuntimeGlobals.definePropertyGetters,\n RuntimeGlobals.hasOwnProperty,\n RuntimeGlobals.exports,\n ]);\n const getters = [];\n //@ts-ignore\n for (const block of this.blocks) {\n const { dependencies } = block;\n\n const modules = dependencies.map((dependency: Dependency) => {\n const dep = dependency as unknown as ContainerExposedDependency;\n return {\n name: dep.exposedName,\n module: moduleGraph.getModule(dep),\n request: dep.userRequest,\n };\n });\n\n let str;\n //@ts-ignore\n if (modules.some((m) => !m.module)) {\n str = runtimeTemplate.throwMissingModuleErrorBlock({\n //@ts-ignore\n request: modules.map((m) => m.request).join(', '),\n });\n } else {\n str = `return ${runtimeTemplate.blockPromise({\n block,\n message: '',\n chunkGraph,\n runtimeRequirements,\n })}.then(${runtimeTemplate.returningFunction(\n runtimeTemplate.returningFunction(\n `(${modules\n //@ts-ignore\n .map(({ module, request }) =>\n runtimeTemplate.moduleRaw({\n module,\n chunkGraph,\n request,\n weak: false,\n runtimeRequirements,\n }),\n )\n .join(', ')})`,\n ),\n )});`;\n }\n\n getters.push(\n `${JSON.stringify(modules[0].name)}: ${runtimeTemplate.basicFunction(\n '',\n str,\n )}`,\n );\n }\n\n const source = Template.asString([\n `var moduleMap = {`,\n Template.indent(getters.join(',\\n')),\n '};',\n `var get = ${runtimeTemplate.basicFunction('module, getScope', [\n `${RuntimeGlobals.currentRemoteGetScope} = getScope;`,\n // reusing the getScope variable to avoid creating a new var (and module is also used later)\n 'getScope = (',\n Template.indent([\n `${RuntimeGlobals.hasOwnProperty}(moduleMap, module)`,\n Template.indent([\n '? moduleMap[module]()',\n `: Promise.resolve().then(${runtimeTemplate.basicFunction(\n '',\n \"throw new Error('Module \\\"' + module + '\\\" does not exist in container.');\",\n )})`,\n ]),\n ]),\n ');',\n `${RuntimeGlobals.currentRemoteGetScope} = undefined;`,\n 'return getScope;',\n ])};`,\n `var init = ${runtimeTemplate.basicFunction('shareScope, initScope', [\n `if (!${RuntimeGlobals.shareScopeMap}) return;`,\n `var name = ${JSON.stringify(this._shareScope)}`,\n `var oldScope = ${RuntimeGlobals.shareScopeMap}[name];`,\n `if(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");`,\n `${RuntimeGlobals.shareScopeMap}[name] = shareScope;`,\n `return ${RuntimeGlobals.initializeSharing}(name, initScope);`,\n ])};`,\n '',\n '// This exports getters to disallow modifications',\n `${RuntimeGlobals.definePropertyGetters}(exports, {`,\n Template.indent([\n `get: ${runtimeTemplate.returningFunction('get')},`,\n `init: ${runtimeTemplate.returningFunction('init')}`,\n ]),\n '});',\n ]);\n\n sources.set(\n 'javascript',\n this.useSourceMap || this.useSimpleSourceMap\n ? new OriginalSource(source, 'webpack/container-entry')\n : new RawSource(source),\n );\n\n return {\n sources,\n runtimeRequirements,\n };\n }\n\n /**\n * @param {string=} type the source type for which the size should be estimated\n * @returns {number} the estimated size of the module (must be non-zero)\n */\n override size(type?: string): number {\n return 42;\n }\n /**\n * @param {ObjectSerializerContext} context context\n */\n //@ts-ignore\n override serialize(context: ObjectSerializerContext): void {\n const { write } = context;\n write(this._name);\n write(this._exposes);\n write(this._shareScope);\n //@ts-ignore\n super.serialize(context);\n }\n}\n//@ts-ignore\nmakeSerializable(\n ContainerEntryModule,\n 'enhanced/lib/container/ContainerEntryModule',\n);\n\nexport default ContainerEntryModule;\n"],"names":["SOURCE_TYPES","Set","ContainerEntryModule","Module","deserialize","context","read","obj","getSourceTypes","identifier","_shareScope","JSON","stringify","_exposes","readableIdentifier","requestShortener","libIdent","options","layer","_name","needBuild","callback","baseContext","buildMeta","build","compilation","resolver","fs","buildInfo","strict","topLevelDeclarations","exportsType","clearDependenciesAndBlocks","name","block","AsyncDependenciesBlock","import","length","idx","request","dep","ContainerExposedDependency","loc","index","addDependency","addBlock","StaticExportsDependency","codeGeneration","moduleGraph","chunkGraph","runtimeTemplate","sources","Map","runtimeRequirements","RuntimeGlobals","definePropertyGetters","hasOwnProperty","exports","getters","blocks","dependencies","modules","map","dependency","exposedName","module","getModule","userRequest","str","some","m","throwMissingModuleErrorBlock","join","blockPromise","message","returningFunction","moduleRaw","weak","push","basicFunction","source","Template","asString","indent","currentRemoteGetScope","shareScopeMap","initializeSharing","set","useSourceMap","useSimpleSourceMap","OriginalSource","RawSource","size","type","serialize","write","constructor","exposes","shareScope","JAVASCRIPT_MODULE_TYPE_DYNAMIC","makeSerializable"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryModuleFactory.d.ts"],"sourcesContent":["export = ContainerEntryModuleFactory;\ndeclare class ContainerEntryModuleFactory extends ModuleFactory {}\ndeclare namespace ContainerEntryModuleFactory {\n export {\n ModuleFactoryCreateData,\n ModuleFactoryResult,\n ContainerEntryDependency,\n };\n}\nimport ModuleFactory = require('webpack/lib/ModuleFactory');\ntype ModuleFactoryCreateData =\n import('webpack/lib/ModuleFactory').ModuleFactoryCreateData;\ntype ModuleFactoryResult =\n import('webpack/lib/ModuleFactory').ModuleFactoryResult;\ntype ContainerEntryDependency = import('./ContainerEntryDependency');\n"],"names":["ContainerEntryModuleFactory"],"mappings":";iBAASA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import ModuleFactory from 'webpack/lib/ModuleFactory';
|
|
2
|
-
import type { ModuleFactoryCreateData, ModuleFactoryResult } from 'webpack/lib/ModuleFactory';
|
|
3
|
-
export default class ContainerEntryModuleFactory extends ModuleFactory {
|
|
4
|
-
/**
|
|
5
|
-
* @param {ModuleFactoryCreateData} data data object
|
|
6
|
-
* @param {function((Error | null)=, ModuleFactoryResult=): void} callback callback
|
|
7
|
-
* @returns {void}
|
|
8
|
-
*/
|
|
9
|
-
create(data: ModuleFactoryCreateData, callback: (error: Error | null, result: ModuleFactoryResult) => void): void;
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
3
|
-
Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr
|
|
4
|
-
*/ 'use strict';
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports, "default", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return ContainerEntryModuleFactory;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const _ContainerEntryModule = /*#__PURE__*/ _interop_require_default(require("./ContainerEntryModule"));
|
|
15
|
-
const _ModuleFactory = /*#__PURE__*/ _interop_require_default(require("webpack/lib/ModuleFactory"));
|
|
16
|
-
function _interop_require_default(obj) {
|
|
17
|
-
return obj && obj.__esModule ? obj : {
|
|
18
|
-
default: obj
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
var ContainerEntryModuleFactory;
|
|
22
|
-
ContainerEntryModuleFactory = class ContainerEntryModuleFactory extends _ModuleFactory.default {
|
|
23
|
-
/**
|
|
24
|
-
* @param {ModuleFactoryCreateData} data data object
|
|
25
|
-
* @param {function((Error | null)=, ModuleFactoryResult=): void} callback callback
|
|
26
|
-
* @returns {void}
|
|
27
|
-
*/ create(data, callback) {
|
|
28
|
-
const { dependencies } = data;
|
|
29
|
-
const containerDependencies = dependencies;
|
|
30
|
-
const dep = containerDependencies[0];
|
|
31
|
-
callback(null, {
|
|
32
|
-
module: new _ContainerEntryModule.default(dep.name, dep.exposes, dep.shareScope)
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=ContainerEntryModuleFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryModuleFactory.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr\n*/\n\n'use strict';\n\nimport ContainerEntryModule from './ContainerEntryModule';\nimport ContainerEntryDependency from './ContainerEntryDependency';\nimport ModuleFactory from 'webpack/lib/ModuleFactory';\nimport type {\n ModuleFactoryCreateData,\n ModuleFactoryResult,\n} from 'webpack/lib/ModuleFactory';\n\nexport default class ContainerEntryModuleFactory extends ModuleFactory {\n /**\n * @param {ModuleFactoryCreateData} data data object\n * @param {function((Error | null)=, ModuleFactoryResult=): void} callback callback\n * @returns {void}\n */\n override create(\n data: ModuleFactoryCreateData,\n callback: (error: Error | null, result: ModuleFactoryResult) => void,\n ): void {\n const { dependencies } = data;\n const containerDependencies =\n dependencies as unknown as ContainerEntryDependency[];\n const dep = containerDependencies[0];\n\n callback(null, {\n module: new ContainerEntryModule(dep.name, dep.exposes, dep.shareScope),\n });\n }\n}\n"],"names":["ContainerEntryModuleFactory","ModuleFactory","create","data","callback","dependencies","containerDependencies","dep","module","ContainerEntryModule","name","exposes","shareScope"],"mappings":"AAAA;;;AAGA,GAEA;;;;;;;eAUqBA;;;6EARY;sEAEP;;;;;;IAMLA;AAAAA,8BAAN,MAAMA,oCAAoCC,sBAAa;IACpE;;;;GAIC,GACD,AAASC,OACPC,IAA6B,EAC7BC,QAAoE,EAC9D;QACN,MAAM,EAAEC,YAAY,EAAE,GAAGF;QACzB,MAAMG,wBACJD;QACF,MAAME,MAAMD,qBAAqB,CAAC,EAAE;QAEpCF,SAAS,MAAM;YACbI,QAAQ,IAAIC,6BAAoB,CAACF,IAAIG,IAAI,EAAEH,IAAII,OAAO,EAAEJ,IAAIK,UAAU;QACxE;IACF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerExposedDependency.d.ts"],"sourcesContent":["export = ContainerExposedDependency;\n/** @typedef {import(\"webpack/lib/serialization/ObjectMiddleware\").ObjectDeserializerContext} ObjectDeserializerContext */\n/** @typedef {import(\"webpack/lib/serialization/ObjectMiddleware\").ObjectSerializerContext} ObjectSerializerContext */\ndeclare class ContainerExposedDependency extends ModuleDependency {\n /**\n * @param {string} exposedName public name\n * @param {string} request request to module\n */\n constructor(exposedName: string, request: string);\n exposedName: string;\n}\ndeclare namespace ContainerExposedDependency {\n export { ObjectDeserializerContext, ObjectSerializerContext };\n}\nimport ModuleDependency = require('webpack/lib/dependencies/ModuleDependency');\ntype ObjectDeserializerContext =\n import('webpack/lib/serialization/ObjectMiddleware').ObjectDeserializerContext;\ntype ObjectSerializerContext =\n import('webpack/lib/serialization/ObjectMiddleware').ObjectSerializerContext;\n"],"names":["ContainerExposedDependency"],"mappings":";iBAASA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ObjectDeserializerContext, ObjectSerializerContext } from 'webpack/lib/dependencies/ModuleDependency';
|
|
2
|
-
import ModuleDependency from 'webpack/lib/dependencies/ModuleDependency';
|
|
3
|
-
declare class ContainerExposedDependency extends ModuleDependency {
|
|
4
|
-
exposedName: string;
|
|
5
|
-
request: string;
|
|
6
|
-
/**
|
|
7
|
-
* @param {string} exposedName public name
|
|
8
|
-
* @param {string} request request to module
|
|
9
|
-
*/
|
|
10
|
-
constructor(exposedName: string, request: string);
|
|
11
|
-
get type(): string;
|
|
12
|
-
get category(): string;
|
|
13
|
-
/**
|
|
14
|
-
* @returns {string | null} an identifier to merge equal requests
|
|
15
|
-
*/
|
|
16
|
-
getResourceIdentifier(): string | null;
|
|
17
|
-
/**
|
|
18
|
-
* @param {ObjectSerializerContext} context context
|
|
19
|
-
*/
|
|
20
|
-
serialize(context: ObjectSerializerContext): void;
|
|
21
|
-
/**
|
|
22
|
-
* @param {ObjectDeserializerContext} context context
|
|
23
|
-
*/
|
|
24
|
-
deserialize(context: ObjectDeserializerContext): void;
|
|
25
|
-
}
|
|
26
|
-
export default ContainerExposedDependency;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
3
|
-
Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr
|
|
4
|
-
*/ "use strict";
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports, "default", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return _default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const _ModuleDependency = /*#__PURE__*/ _interop_require_default(require("webpack/lib/dependencies/ModuleDependency"));
|
|
15
|
-
const _makeSerializable = /*#__PURE__*/ _interop_require_default(require("webpack/lib/util/makeSerializable"));
|
|
16
|
-
function _interop_require_default(obj) {
|
|
17
|
-
return obj && obj.__esModule ? obj : {
|
|
18
|
-
default: obj
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
let ContainerExposedDependency = class ContainerExposedDependency extends _ModuleDependency.default {
|
|
22
|
-
get type() {
|
|
23
|
-
return 'container exposed';
|
|
24
|
-
}
|
|
25
|
-
get category() {
|
|
26
|
-
return 'esm';
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @returns {string | null} an identifier to merge equal requests
|
|
30
|
-
*/ getResourceIdentifier() {
|
|
31
|
-
return `exposed dependency ${this.exposedName}=${this.request}`;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @param {ObjectSerializerContext} context context
|
|
35
|
-
*/ serialize(context) {
|
|
36
|
-
context.write(this.exposedName);
|
|
37
|
-
super.serialize(context);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @param {ObjectDeserializerContext} context context
|
|
41
|
-
*/ deserialize(context) {
|
|
42
|
-
this.exposedName = context.read();
|
|
43
|
-
super.deserialize(context);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} exposedName public name
|
|
47
|
-
* @param {string} request request to module
|
|
48
|
-
*/ constructor(exposedName, request){
|
|
49
|
-
super(request);
|
|
50
|
-
this.exposedName = exposedName;
|
|
51
|
-
this.request = request;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
(0, _makeSerializable.default)(ContainerExposedDependency, 'enhanced/lib/container/ContainerExposedDependency');
|
|
55
|
-
const _default = ContainerExposedDependency;
|
|
56
|
-
|
|
57
|
-
//# sourceMappingURL=ContainerExposedDependency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerExposedDependency.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr\n*/\n\nimport type {\n ObjectDeserializerContext,\n ObjectSerializerContext,\n} from 'webpack/lib/dependencies/ModuleDependency';\nimport ModuleDependency from 'webpack/lib/dependencies/ModuleDependency';\nimport makeSerializable from 'webpack/lib/util/makeSerializable';\n\nclass ContainerExposedDependency extends ModuleDependency {\n exposedName: string;\n override request: string;\n\n /**\n * @param {string} exposedName public name\n * @param {string} request request to module\n */\n constructor(exposedName: string, request: string) {\n super(request);\n this.exposedName = exposedName;\n this.request = request;\n }\n\n override get type(): string {\n return 'container exposed';\n }\n\n override get category(): string {\n return 'esm';\n }\n\n /**\n * @returns {string | null} an identifier to merge equal requests\n */\n override getResourceIdentifier(): string | null {\n return `exposed dependency ${this.exposedName}=${this.request}`;\n }\n\n /**\n * @param {ObjectSerializerContext} context context\n */\n override serialize(context: ObjectSerializerContext): void {\n context.write(this.exposedName);\n super.serialize(context);\n }\n\n /**\n * @param {ObjectDeserializerContext} context context\n */\n override deserialize(context: ObjectDeserializerContext): void {\n this.exposedName = context.read();\n super.deserialize(context);\n }\n}\n\nmakeSerializable(\n ContainerExposedDependency,\n 'enhanced/lib/container/ContainerExposedDependency',\n);\n\nexport default ContainerExposedDependency;\n"],"names":["ContainerExposedDependency","ModuleDependency","type","category","getResourceIdentifier","exposedName","request","serialize","context","write","deserialize","read","constructor","makeSerializable"],"mappings":"AAAA;;;AAGA;;;;+BA4DA;;;eAAA;;;yEAtD6B;yEACA;;;;;;AAE7B,IAAA,AAAMA,6BAAN,MAAMA,mCAAmCC,yBAAgB;IAcvD,IAAaC,OAAe;QAC1B,OAAO;IACT;IAEA,IAAaC,WAAmB;QAC9B,OAAO;IACT;IAEA;;GAEC,GACD,AAASC,wBAAuC;QAC9C,OAAO,CAAC,mBAAmB,EAAE,IAAI,CAACC,WAAW,CAAC,CAAC,EAAE,IAAI,CAACC,OAAO,CAAC,CAAC;IACjE;IAEA;;GAEC,GACD,AAASC,UAAUC,OAAgC,EAAQ;QACzDA,QAAQC,KAAK,CAAC,IAAI,CAACJ,WAAW;QAC9B,KAAK,CAACE,UAAUC;IAClB;IAEA;;GAEC,GACD,AAASE,YAAYF,OAAkC,EAAQ;QAC7D,IAAI,CAACH,WAAW,GAAGG,QAAQG,IAAI;QAC/B,KAAK,CAACD,YAAYF;IACpB;IAvCA;;;GAGC,GACDI,YAAYP,WAAmB,EAAEC,OAAe,CAAE;QAChD,KAAK,CAACA;QACN,IAAI,CAACD,WAAW,GAAGA;QACnB,IAAI,CAACC,OAAO,GAAGA;IACjB;AAgCF;AAEAO,IAAAA,yBAAgB,EACdb,4BACA;MAGF,WAAeA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerPlugin.d.ts"],"sourcesContent":["export = ContainerPlugin;\ndeclare class ContainerPlugin {\n /**\n * @param {ContainerPluginOptions} options options\n */\n constructor(options: ContainerPluginOptions);\n _options: {\n name: string;\n shareScope: string;\n library: import('../../declarations/plugins/container/ContainerPlugin').LibraryOptions;\n runtime: import('../../declarations/plugins/container/ContainerPlugin').EntryRuntime;\n filename: string;\n exposes: [\n string,\n {\n import: string[];\n name: any;\n },\n ][];\n };\n /**\n * Apply the plugin\n * @param {Compiler} compiler the compiler instance\n * @returns {void}\n */\n apply(compiler: Compiler): void;\n}\ndeclare namespace ContainerPlugin {\n export { ContainerPluginOptions, Compiler };\n}\ntype Compiler = import('webpack/lib/Compiler');\ntype ContainerPluginOptions =\n import('../../declarations/plugins/container/ContainerPlugin').ContainerPluginOptions;\n"],"names":["ContainerPlugin"],"mappings":";iBAASA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type Compiler from 'webpack/lib/Compiler';
|
|
2
|
-
import type { ContainerPluginOptions } from '../../declarations/plugins/container/ContainerPlugin';
|
|
3
|
-
declare class ContainerPlugin {
|
|
4
|
-
_options: ContainerPluginOptions;
|
|
5
|
-
/**
|
|
6
|
-
* @param {ContainerPluginOptions} options options
|
|
7
|
-
*/
|
|
8
|
-
constructor(options: ContainerPluginOptions);
|
|
9
|
-
apply(compiler: Compiler): void;
|
|
10
|
-
}
|
|
11
|
-
export default ContainerPlugin;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
3
|
-
Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr
|
|
4
|
-
*/ //@ts-ignore
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", {
|
|
7
|
-
value: true
|
|
8
|
-
});
|
|
9
|
-
Object.defineProperty(exports, "default", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return _default;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const _createschemavalidation = /*#__PURE__*/ _interop_require_default(require("webpack/lib/util/create-schema-validation"));
|
|
16
|
-
const _ContainerEntryDependency = /*#__PURE__*/ _interop_require_default(require("./ContainerEntryDependency"));
|
|
17
|
-
const _ContainerEntryModuleFactory = /*#__PURE__*/ _interop_require_default(require("./ContainerEntryModuleFactory"));
|
|
18
|
-
const _ContainerExposedDependency = /*#__PURE__*/ _interop_require_default(require("./ContainerExposedDependency"));
|
|
19
|
-
const _options = require("./options");
|
|
20
|
-
function _interop_require_default(obj) {
|
|
21
|
-
return obj && obj.__esModule ? obj : {
|
|
22
|
-
default: obj
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
const validate = (0, _createschemavalidation.default)(//eslint-disable-next-line
|
|
26
|
-
require('webpack/schemas/plugins/container/ContainerPlugin.check.js'), ()=>require('webpack/schemas/plugins/container/ContainerPlugin.json'), {
|
|
27
|
-
name: 'Container Plugin',
|
|
28
|
-
baseDataPath: 'options'
|
|
29
|
-
});
|
|
30
|
-
const PLUGIN_NAME = 'ContainerPlugin';
|
|
31
|
-
let ContainerPlugin = class ContainerPlugin {
|
|
32
|
-
apply(compiler) {
|
|
33
|
-
const { name, exposes, shareScope, filename, library, runtime } = this._options;
|
|
34
|
-
if (library && compiler.options.output && compiler.options.output.enabledLibraryTypes && !compiler.options.output.enabledLibraryTypes.includes(library.type)) {
|
|
35
|
-
compiler.options.output.enabledLibraryTypes.push(library.type);
|
|
36
|
-
}
|
|
37
|
-
compiler.hooks.make.tapAsync(PLUGIN_NAME, (compilation, callback)=>{
|
|
38
|
-
//@ts-ignore
|
|
39
|
-
const dep = new _ContainerEntryDependency.default(name, exposes, shareScope);
|
|
40
|
-
dep.loc = {
|
|
41
|
-
name
|
|
42
|
-
};
|
|
43
|
-
compilation.addEntry(compilation.options.context || '', //@ts-ignore
|
|
44
|
-
dep, {
|
|
45
|
-
name,
|
|
46
|
-
filename,
|
|
47
|
-
runtime,
|
|
48
|
-
library
|
|
49
|
-
}, (error)=>{
|
|
50
|
-
if (error) {
|
|
51
|
-
return callback(error);
|
|
52
|
-
}
|
|
53
|
-
callback();
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation, { normalModuleFactory })=>{
|
|
57
|
-
compilation.dependencyFactories.set(//@ts-ignore
|
|
58
|
-
_ContainerEntryDependency.default, new _ContainerEntryModuleFactory.default());
|
|
59
|
-
compilation.dependencyFactories.set(_ContainerExposedDependency.default, normalModuleFactory);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @param {ContainerPluginOptions} options options
|
|
64
|
-
*/ constructor(options){
|
|
65
|
-
validate(options);
|
|
66
|
-
this._options = {
|
|
67
|
-
name: options.name,
|
|
68
|
-
shareScope: options.shareScope || 'default',
|
|
69
|
-
library: options.library || {
|
|
70
|
-
type: 'var',
|
|
71
|
-
name: options.name
|
|
72
|
-
},
|
|
73
|
-
runtime: options.runtime,
|
|
74
|
-
filename: options.filename || undefined,
|
|
75
|
-
//@ts-ignore
|
|
76
|
-
exposes: (0, _options.parseOptions)(options.exposes, (item)=>({
|
|
77
|
-
import: Array.isArray(item) ? item : [
|
|
78
|
-
item
|
|
79
|
-
],
|
|
80
|
-
name: undefined
|
|
81
|
-
}), (item)=>({
|
|
82
|
-
import: Array.isArray(item.import) ? item.import : [
|
|
83
|
-
item.import
|
|
84
|
-
],
|
|
85
|
-
name: item.name || undefined
|
|
86
|
-
}))
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
const _default = ContainerPlugin;
|
|
91
|
-
|
|
92
|
-
//# sourceMappingURL=ContainerPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerPlugin.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr\n*/\n//@ts-ignore\nimport createSchemaValidation from 'webpack/lib/util/create-schema-validation';\nimport ContainerEntryDependency from './ContainerEntryDependency';\nimport ContainerEntryModuleFactory from './ContainerEntryModuleFactory';\nimport ContainerExposedDependency from './ContainerExposedDependency';\nimport { parseOptions } from './options';\nimport type Compiler from 'webpack/lib/Compiler';\nimport type Compilation from 'webpack/lib/Compilation';\nimport type { ContainerPluginOptions } from '../../declarations/plugins/container/ContainerPlugin';\n\nconst validate = createSchemaValidation(\n //eslint-disable-next-line\n require('webpack/schemas/plugins/container/ContainerPlugin.check.js'),\n () => require('webpack/schemas/plugins/container/ContainerPlugin.json'),\n {\n name: 'Container Plugin',\n baseDataPath: 'options',\n },\n);\n\nconst PLUGIN_NAME = 'ContainerPlugin';\n\nclass ContainerPlugin {\n _options: ContainerPluginOptions;\n /**\n * @param {ContainerPluginOptions} options options\n */\n constructor(options: ContainerPluginOptions) {\n validate(options);\n this._options = {\n name: options.name,\n shareScope: options.shareScope || 'default',\n library: options.library || {\n type: 'var',\n name: options.name,\n },\n runtime: options.runtime,\n filename: options.filename || undefined,\n //@ts-ignore\n exposes: parseOptions(\n options.exposes,\n (item) => ({\n import: Array.isArray(item) ? item : [item],\n name: undefined,\n }),\n (item) => ({\n import: Array.isArray(item.import) ? item.import : [item.import],\n name: item.name || undefined,\n }),\n ),\n };\n }\n\n apply(compiler: Compiler): void {\n const { name, exposes, shareScope, filename, library, runtime } =\n this._options;\n\n if (\n library &&\n compiler.options.output &&\n compiler.options.output.enabledLibraryTypes &&\n !compiler.options.output.enabledLibraryTypes.includes(library.type)\n ) {\n compiler.options.output.enabledLibraryTypes.push(library.type);\n }\n\n compiler.hooks.make.tapAsync(PLUGIN_NAME, (compilation, callback) => {\n //@ts-ignore\n const dep = new ContainerEntryDependency(name, exposes, shareScope);\n dep.loc = { name };\n compilation.addEntry(\n compilation.options.context || '',\n //@ts-ignore\n dep,\n {\n name,\n filename,\n runtime,\n library,\n },\n (error: WebpackError | null | undefined) => {\n if (error) {\n return callback(error);\n }\n callback();\n },\n );\n });\n\n compiler.hooks.thisCompilation.tap(\n PLUGIN_NAME,\n (compilation: Compilation, { normalModuleFactory }) => {\n compilation.dependencyFactories.set(\n //@ts-ignore\n ContainerEntryDependency,\n new ContainerEntryModuleFactory(),\n );\n\n compilation.dependencyFactories.set(\n ContainerExposedDependency,\n normalModuleFactory,\n );\n },\n );\n }\n}\n\nexport default ContainerPlugin;\n"],"names":["validate","createSchemaValidation","require","name","baseDataPath","PLUGIN_NAME","ContainerPlugin","apply","compiler","exposes","shareScope","filename","library","runtime","_options","options","output","enabledLibraryTypes","includes","type","push","hooks","make","tapAsync","compilation","callback","dep","ContainerEntryDependency","loc","addEntry","context","error","thisCompilation","tap","normalModuleFactory","dependencyFactories","set","ContainerEntryModuleFactory","ContainerExposedDependency","constructor","undefined","parseOptions","item","import","Array","isArray"],"mappings":"AAAA;;;AAGA,GACA,YAAY;;;;;+BA2GZ;;;eAAA;;;+EA1GmC;iFACE;oFACG;mFACD;yBACV;;;;;;AAK7B,MAAMA,WAAWC,IAAAA,+BAAsB,EACrC,0BAA0B;AAC1BC,QAAQ,+DACR,IAAMA,QAAQ,2DACd;IACEC,MAAM;IACNC,cAAc;AAChB;AAGF,MAAMC,cAAc;AAEpB,IAAA,AAAMC,kBAAN,MAAMA;IA+BJC,MAAMC,QAAkB,EAAQ;QAC9B,MAAM,EAAEL,IAAI,EAAEM,OAAO,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAC7D,IAAI,CAACC,QAAQ;QAEf,IACEF,WACAJ,SAASO,OAAO,CAACC,MAAM,IACvBR,SAASO,OAAO,CAACC,MAAM,CAACC,mBAAmB,IAC3C,CAACT,SAASO,OAAO,CAACC,MAAM,CAACC,mBAAmB,CAACC,QAAQ,CAACN,QAAQO,IAAI,GAClE;YACAX,SAASO,OAAO,CAACC,MAAM,CAACC,mBAAmB,CAACG,IAAI,CAACR,QAAQO,IAAI;QAC/D;QAEAX,SAASa,KAAK,CAACC,IAAI,CAACC,QAAQ,CAAClB,aAAa,CAACmB,aAAaC;YACtD,YAAY;YACZ,MAAMC,MAAM,IAAIC,iCAAwB,CAACxB,MAAMM,SAASC;YACxDgB,IAAIE,GAAG,GAAG;gBAAEzB;YAAK;YACjBqB,YAAYK,QAAQ,CAClBL,YAAYT,OAAO,CAACe,OAAO,IAAI,IAC/B,YAAY;YACZJ,KACA;gBACEvB;gBACAQ;gBACAE;gBACAD;YACF,GACA,CAACmB;gBACC,IAAIA,OAAO;oBACT,OAAON,SAASM;gBAClB;gBACAN;YACF;QAEJ;QAEAjB,SAASa,KAAK,CAACW,eAAe,CAACC,GAAG,CAChC5B,aACA,CAACmB,aAA0B,EAAEU,mBAAmB,EAAE;YAChDV,YAAYW,mBAAmB,CAACC,GAAG,CACjC,YAAY;YACZT,iCAAwB,EACxB,IAAIU,oCAA2B;YAGjCb,YAAYW,mBAAmB,CAACC,GAAG,CACjCE,mCAA0B,EAC1BJ;QAEJ;IAEJ;IAhFA;;GAEC,GACDK,YAAYxB,OAA+B,CAAE;QAC3Cf,SAASe;QACT,IAAI,CAACD,QAAQ,GAAG;YACdX,MAAMY,QAAQZ,IAAI;YAClBO,YAAYK,QAAQL,UAAU,IAAI;YAClCE,SAASG,QAAQH,OAAO,IAAI;gBAC1BO,MAAM;gBACNhB,MAAMY,QAAQZ,IAAI;YACpB;YACAU,SAASE,QAAQF,OAAO;YACxBF,UAAUI,QAAQJ,QAAQ,IAAI6B;YAC9B,YAAY;YACZ/B,SAASgC,IAAAA,qBAAY,EACnB1B,QAAQN,OAAO,EACf,CAACiC,OAAU,CAAA;oBACTC,QAAQC,MAAMC,OAAO,CAACH,QAAQA,OAAO;wBAACA;qBAAK;oBAC3CvC,MAAMqC;gBACR,CAAA,GACA,CAACE,OAAU,CAAA;oBACTC,QAAQC,MAAMC,OAAO,CAACH,KAAKC,MAAM,IAAID,KAAKC,MAAM,GAAG;wBAACD,KAAKC,MAAM;qBAAC;oBAChExC,MAAMuC,KAAKvC,IAAI,IAAIqC;gBACrB,CAAA;QAEJ;IACF;AAsDF;MAEA,WAAelC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerReferencePlugin.d.ts"],"sourcesContent":["export = ContainerReferencePlugin;\ndeclare class ContainerReferencePlugin {\n /**\n * @param {ContainerReferencePluginOptions} options options\n */\n constructor(options: ContainerReferencePluginOptions);\n _remoteType: import('../../declarations/plugins/container/ContainerReferencePlugin').ExternalsType;\n _remotes: [\n string,\n {\n external: string[];\n shareScope: string;\n },\n ][];\n /**\n * Apply the plugin\n * @param {Compiler} compiler the compiler instance\n * @returns {void}\n */\n apply(compiler: Compiler): void;\n}\ndeclare namespace ContainerReferencePlugin {\n export { ContainerReferencePluginOptions, RemotesConfig, Compiler };\n}\ntype Compiler = import('webpack/lib/Compiler');\ntype ContainerReferencePluginOptions =\n import('../../declarations/plugins/container/ContainerReferencePlugin').ContainerReferencePluginOptions;\ntype RemotesConfig =\n import('../../declarations/plugins/container/ContainerReferencePlugin').RemotesConfig;\n"],"names":["ContainerReferencePlugin"],"mappings":";iBAASA"}
|