@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,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _RuntimeGlobals = /*#__PURE__*/ _interop_require_default(require("webpack/lib/RuntimeGlobals"));
|
|
12
|
-
const _Template = /*#__PURE__*/ _interop_require_default(require("webpack/lib/Template"));
|
|
13
|
-
const _SortableSet = /*#__PURE__*/ _interop_require_default(require("webpack/lib/util/SortableSet"));
|
|
14
|
-
function _interop_require_default(obj) {
|
|
15
|
-
return obj && obj.__esModule ? obj : {
|
|
16
|
-
default: obj
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
let AsyncEntryStartupPlugin = class AsyncEntryStartupPlugin {
|
|
20
|
-
apply(compiler) {
|
|
21
|
-
compiler.hooks.thisCompilation.tap('AsyncEntryStartupPlugin', (compilation)=>{
|
|
22
|
-
this._collectRuntimeChunks(compilation);
|
|
23
|
-
this._handleRenderStartup(compiler, compilation);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
_collectRuntimeChunks(compilation) {
|
|
27
|
-
compilation.hooks.beforeChunkAssets.tap('AsyncEntryStartupPlugin', ()=>{
|
|
28
|
-
for (const chunk of compilation.chunks){
|
|
29
|
-
if (chunk.hasRuntime() && chunk.id !== null) {
|
|
30
|
-
this._runtimeChunks.set(chunk.id, chunk);
|
|
31
|
-
for (const dependentChunk of compilation.chunkGraph.getChunkEntryDependentChunksIterable(chunk)){
|
|
32
|
-
if (dependentChunk.id !== null) {
|
|
33
|
-
this._runtimeChunks.set(dependentChunk.id, dependentChunk);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
_handleRenderStartup(compiler, compilation) {
|
|
41
|
-
compiler.webpack.javascript.JavascriptModulesPlugin.getCompilationHooks(compilation).renderStartup.tap('AsyncEntryStartupPlugin', (source, renderContext, upperContext)=>{
|
|
42
|
-
var _compiler_options_optimization, _compiler_options;
|
|
43
|
-
const isSingleRuntime = (_compiler_options = compiler.options) == null ? void 0 : (_compiler_options_optimization = _compiler_options.optimization) == null ? void 0 : _compiler_options_optimization.runtimeChunk;
|
|
44
|
-
if ((upperContext == null ? void 0 : upperContext.chunk.id) && isSingleRuntime) {
|
|
45
|
-
if (upperContext == null ? void 0 : upperContext.chunk.hasRuntime()) {
|
|
46
|
-
this._runtimeChunks.set(upperContext.chunk.id, upperContext.chunk);
|
|
47
|
-
return source;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if (this._options.excludeChunk && this._options.excludeChunk(upperContext.chunk)) {
|
|
51
|
-
return source;
|
|
52
|
-
}
|
|
53
|
-
const runtime = this._getChunkRuntime(upperContext);
|
|
54
|
-
let remotes = '';
|
|
55
|
-
let shared = '';
|
|
56
|
-
for (const runtimeItem of runtime){
|
|
57
|
-
if (!runtimeItem) {
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
const requirements = compilation.chunkGraph.getTreeRuntimeRequirements(runtimeItem);
|
|
61
|
-
const hasRemoteModules = compilation.chunkGraph.getChunkModulesIterableBySourceType(upperContext.chunk, 'remote');
|
|
62
|
-
const consumeShares = compilation.chunkGraph.getChunkModulesIterableBySourceType(upperContext.chunk, 'consume-shared');
|
|
63
|
-
const entryOptions = upperContext.chunk.getEntryOptions();
|
|
64
|
-
const chunksToRef = (entryOptions == null ? void 0 : entryOptions.dependOn) ? [
|
|
65
|
-
...entryOptions.dependOn,
|
|
66
|
-
upperContext.chunk.id
|
|
67
|
-
] : [
|
|
68
|
-
upperContext.chunk.id
|
|
69
|
-
];
|
|
70
|
-
remotes = this._getRemotes(requirements, Boolean(hasRemoteModules), chunksToRef, remotes);
|
|
71
|
-
shared = this._getShared(requirements, Boolean(consumeShares), chunksToRef, shared);
|
|
72
|
-
}
|
|
73
|
-
if (!remotes && !shared) {
|
|
74
|
-
return source;
|
|
75
|
-
}
|
|
76
|
-
const initialEntryModules = this._getInitialEntryModules(compilation, upperContext);
|
|
77
|
-
return this._getTemplateString(compiler, initialEntryModules, shared, remotes, source);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
_getChunkRuntime(upperContext) {
|
|
81
|
-
const runtime = new Set();
|
|
82
|
-
const chunkRuntime = upperContext.chunk.runtime;
|
|
83
|
-
if (chunkRuntime) {
|
|
84
|
-
const runtimeItems = chunkRuntime instanceof _SortableSet.default ? chunkRuntime : [
|
|
85
|
-
chunkRuntime
|
|
86
|
-
];
|
|
87
|
-
for (const runtimeItem of runtimeItems){
|
|
88
|
-
const chunk = this._runtimeChunks.get(runtimeItem);
|
|
89
|
-
if (chunk) {
|
|
90
|
-
runtime.add(chunk);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
if (runtime.size === 0) {
|
|
95
|
-
runtime.add(upperContext.chunk);
|
|
96
|
-
}
|
|
97
|
-
return runtime;
|
|
98
|
-
}
|
|
99
|
-
_getRemotes(requirements, hasRemoteModules, chunksToRef, remotes) {
|
|
100
|
-
if (!requirements.has(_RuntimeGlobals.default.currentRemoteGetScope) && !hasRemoteModules && !requirements.has('__webpack_require__.vmok')) {
|
|
101
|
-
return remotes;
|
|
102
|
-
}
|
|
103
|
-
const remotesParts = remotes.startsWith('if(__webpack_require__.f && __webpack_require__.f.remotes) {') ? [
|
|
104
|
-
remotes
|
|
105
|
-
] : [
|
|
106
|
-
remotes,
|
|
107
|
-
'if(__webpack_require__.f && __webpack_require__.f.remotes) {'
|
|
108
|
-
];
|
|
109
|
-
for (const chunkId of chunksToRef){
|
|
110
|
-
if (chunkId !== null) {
|
|
111
|
-
remotesParts.push(` __webpack_require__.f.remotes(${JSON.stringify(chunkId)}, promiseTrack);`);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
remotesParts.push('}');
|
|
115
|
-
return remotesParts.join('');
|
|
116
|
-
}
|
|
117
|
-
_getShared(requirements, consumeShares, chunksToRef, shared) {
|
|
118
|
-
if (!requirements.has(_RuntimeGlobals.default.shareScopeMap) && !consumeShares && !requirements.has(_RuntimeGlobals.default.initializeSharing)) {
|
|
119
|
-
return shared;
|
|
120
|
-
}
|
|
121
|
-
const sharedParts = shared.startsWith('if(__webpack_require__.f && __webpack_require__.f.consumes) {') ? [
|
|
122
|
-
shared
|
|
123
|
-
] : [
|
|
124
|
-
shared,
|
|
125
|
-
'if(__webpack_require__.f && __webpack_require__.f.consumes) {'
|
|
126
|
-
];
|
|
127
|
-
for (const chunkId of chunksToRef){
|
|
128
|
-
if (chunkId !== null) {
|
|
129
|
-
sharedParts.push(` __webpack_require__.f.consumes(${JSON.stringify(chunkId)}, promiseTrack);`);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
sharedParts.push('}');
|
|
133
|
-
return sharedParts.join('');
|
|
134
|
-
}
|
|
135
|
-
_getInitialEntryModules(compilation, upperContext) {
|
|
136
|
-
const entryModules = compilation.chunkGraph.getChunkEntryModulesIterable(upperContext.chunk);
|
|
137
|
-
const initialEntryModules = [];
|
|
138
|
-
for (const entryModule of entryModules){
|
|
139
|
-
const entryModuleID = compilation.chunkGraph.getModuleId(entryModule);
|
|
140
|
-
if (entryModuleID) {
|
|
141
|
-
let shouldInclude = false;
|
|
142
|
-
if (typeof this._options.eager === 'function') {
|
|
143
|
-
shouldInclude = this._options.eager(entryModule);
|
|
144
|
-
} else if (this._options.eager && this._options.eager.test(entryModule.identifier())) {
|
|
145
|
-
shouldInclude = true;
|
|
146
|
-
}
|
|
147
|
-
if (shouldInclude) {
|
|
148
|
-
initialEntryModules.push(`__webpack_require__(${JSON.stringify(entryModuleID)});`);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return initialEntryModules;
|
|
153
|
-
}
|
|
154
|
-
_getTemplateString(compiler, initialEntryModules, shared, remotes, source) {
|
|
155
|
-
var _compiler_options_experiments, _compiler_options, _compiler_options_experiments1, _compiler_options1;
|
|
156
|
-
if (((_compiler_options = compiler.options) == null ? void 0 : (_compiler_options_experiments = _compiler_options.experiments) == null ? void 0 : _compiler_options_experiments.topLevelAwait) && ((_compiler_options1 = compiler.options) == null ? void 0 : (_compiler_options_experiments1 = _compiler_options1.experiments) == null ? void 0 : _compiler_options_experiments1.outputModule)) {
|
|
157
|
-
return _Template.default.asString([
|
|
158
|
-
'var promiseTrack = [];',
|
|
159
|
-
_Template.default.asString(initialEntryModules),
|
|
160
|
-
shared,
|
|
161
|
-
remotes,
|
|
162
|
-
'await Promise.all(promiseTrack)',
|
|
163
|
-
_Template.default.indent(source.source())
|
|
164
|
-
]);
|
|
165
|
-
}
|
|
166
|
-
return _Template.default.asString([
|
|
167
|
-
'var promiseTrack = [];',
|
|
168
|
-
_Template.default.asString(initialEntryModules),
|
|
169
|
-
shared,
|
|
170
|
-
remotes,
|
|
171
|
-
'var __webpack_exports__ = Promise.all(promiseTrack).then(function() {',
|
|
172
|
-
_Template.default.indent(source.source()),
|
|
173
|
-
_Template.default.indent('return __webpack_exports__'),
|
|
174
|
-
'});'
|
|
175
|
-
]);
|
|
176
|
-
}
|
|
177
|
-
constructor(options){
|
|
178
|
-
this._runtimeChunks = new Map();
|
|
179
|
-
this._options = options || {};
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
const _default = AsyncEntryStartupPlugin;
|
|
183
|
-
|
|
184
|
-
//# sourceMappingURL=AsyncBoundaryPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/AsyncBoundaryPlugin.ts"],"sourcesContent":["import Compiler from 'webpack/lib/Compiler';\nimport Compilation from 'webpack/lib/Compilation';\nimport Chunk, { Source } from 'webpack/lib/Chunk';\nimport RuntimeGlobals from 'webpack/lib/RuntimeGlobals';\nimport Template from 'webpack/lib/Template';\nimport SortableSet from 'webpack/lib/util/SortableSet';\nimport Module from 'webpack/lib/Module';\nimport { StartupRenderContext } from 'webpack/lib/javascript/JavascriptModulesPlugin';\n\ninterface Options {\n eager?: RegExp | ((module: Module) => boolean);\n excludeChunk?: (chunk: Chunk) => boolean;\n}\n\nclass AsyncEntryStartupPlugin {\n private _options: Options;\n private _runtimeChunks = new Map<string | number, Chunk | undefined>();\n\n constructor(options?: Options) {\n this._options = options || {};\n }\n\n apply(compiler: Compiler) {\n compiler.hooks.thisCompilation.tap(\n 'AsyncEntryStartupPlugin',\n (compilation: Compilation) => {\n this._collectRuntimeChunks(compilation);\n this._handleRenderStartup(compiler, compilation);\n },\n );\n }\n\n private _collectRuntimeChunks(compilation: Compilation) {\n compilation.hooks.beforeChunkAssets.tap('AsyncEntryStartupPlugin', () => {\n for (const chunk of compilation.chunks) {\n if (chunk.hasRuntime() && chunk.id !== null) {\n this._runtimeChunks.set(chunk.id, chunk);\n for (const dependentChunk of compilation.chunkGraph.getChunkEntryDependentChunksIterable(\n chunk,\n )) {\n if (dependentChunk.id !== null) {\n this._runtimeChunks.set(dependentChunk.id, dependentChunk);\n }\n }\n }\n }\n });\n }\n\n private _handleRenderStartup(compiler: Compiler, compilation: Compilation) {\n compiler.webpack.javascript.JavascriptModulesPlugin.getCompilationHooks(\n compilation,\n ).renderStartup.tap(\n 'AsyncEntryStartupPlugin',\n (\n source: Source,\n renderContext: Module,\n upperContext: StartupRenderContext,\n ) => {\n const isSingleRuntime = compiler.options?.optimization?.runtimeChunk;\n if (upperContext?.chunk.id && isSingleRuntime) {\n if (upperContext?.chunk.hasRuntime()) {\n this._runtimeChunks.set(upperContext.chunk.id, upperContext.chunk);\n return source;\n }\n }\n\n if (\n this._options.excludeChunk &&\n this._options.excludeChunk(upperContext.chunk)\n ) {\n return source;\n }\n\n const runtime = this._getChunkRuntime(upperContext);\n\n let remotes = '';\n let shared = '';\n\n for (const runtimeItem of runtime) {\n if (!runtimeItem) {\n continue;\n }\n const requirements =\n compilation.chunkGraph.getTreeRuntimeRequirements(runtimeItem);\n const hasRemoteModules =\n compilation.chunkGraph.getChunkModulesIterableBySourceType(\n upperContext.chunk,\n 'remote',\n );\n const consumeShares =\n compilation.chunkGraph.getChunkModulesIterableBySourceType(\n upperContext.chunk,\n 'consume-shared',\n );\n const entryOptions = upperContext.chunk.getEntryOptions();\n const chunksToRef = entryOptions?.dependOn\n ? [...entryOptions.dependOn, upperContext.chunk.id]\n : [upperContext.chunk.id];\n\n remotes = this._getRemotes(\n requirements,\n Boolean(hasRemoteModules),\n chunksToRef,\n remotes,\n );\n shared = this._getShared(\n requirements,\n Boolean(consumeShares),\n chunksToRef,\n shared,\n );\n }\n\n if (!remotes && !shared) {\n return source;\n }\n\n const initialEntryModules = this._getInitialEntryModules(\n compilation,\n upperContext,\n );\n return this._getTemplateString(\n compiler,\n initialEntryModules,\n shared,\n remotes,\n source,\n );\n },\n );\n }\n\n private _getChunkRuntime(upperContext: StartupRenderContext) {\n const runtime = new Set<Chunk>();\n const chunkRuntime = upperContext.chunk.runtime;\n if (chunkRuntime) {\n const runtimeItems =\n chunkRuntime instanceof SortableSet ? chunkRuntime : [chunkRuntime];\n for (const runtimeItem of runtimeItems) {\n const chunk = this._runtimeChunks.get(runtimeItem);\n if (chunk) {\n runtime.add(chunk);\n }\n }\n }\n if (runtime.size === 0) {\n runtime.add(upperContext.chunk);\n }\n return runtime;\n }\n private _getRemotes(\n requirements: ReadonlySet<string>,\n hasRemoteModules: boolean,\n chunksToRef: (Chunk.ChunkId | null)[],\n remotes: string,\n ): string {\n if (\n !requirements.has(RuntimeGlobals.currentRemoteGetScope) &&\n !hasRemoteModules &&\n !requirements.has('__webpack_require__.vmok')\n ) {\n return remotes;\n }\n\n const remotesParts = remotes.startsWith(\n 'if(__webpack_require__.f && __webpack_require__.f.remotes) {',\n )\n ? [remotes]\n : [\n remotes,\n 'if(__webpack_require__.f && __webpack_require__.f.remotes) {',\n ];\n\n for (const chunkId of chunksToRef) {\n if (chunkId !== null) {\n remotesParts.push(\n ` __webpack_require__.f.remotes(${JSON.stringify(\n chunkId,\n )}, promiseTrack);`,\n );\n }\n }\n\n remotesParts.push('}');\n return remotesParts.join('');\n }\n\n private _getShared(\n requirements: ReadonlySet<string>,\n consumeShares: boolean,\n chunksToRef: (Chunk.ChunkId | null)[],\n shared: string,\n ): string {\n if (\n !requirements.has(RuntimeGlobals.shareScopeMap) &&\n !consumeShares &&\n !requirements.has(RuntimeGlobals.initializeSharing)\n ) {\n return shared;\n }\n\n const sharedParts = shared.startsWith(\n 'if(__webpack_require__.f && __webpack_require__.f.consumes) {',\n )\n ? [shared]\n : [\n shared,\n 'if(__webpack_require__.f && __webpack_require__.f.consumes) {',\n ];\n\n for (const chunkId of chunksToRef) {\n if (chunkId !== null) {\n sharedParts.push(\n ` __webpack_require__.f.consumes(${JSON.stringify(\n chunkId,\n )}, promiseTrack);`,\n );\n }\n }\n\n sharedParts.push('}');\n return sharedParts.join('');\n }\n\n private _getInitialEntryModules(\n compilation: Compilation,\n upperContext: { chunk: Chunk },\n ): string[] {\n const entryModules = compilation.chunkGraph.getChunkEntryModulesIterable(\n upperContext.chunk,\n );\n const initialEntryModules = [];\n\n for (const entryModule of entryModules) {\n const entryModuleID = compilation.chunkGraph.getModuleId(entryModule);\n if (entryModuleID) {\n let shouldInclude = false;\n\n if (typeof this._options.eager === 'function') {\n shouldInclude = this._options.eager(entryModule);\n } else if (\n this._options.eager &&\n this._options.eager.test(entryModule.identifier())\n ) {\n shouldInclude = true;\n }\n\n if (shouldInclude) {\n initialEntryModules.push(\n `__webpack_require__(${JSON.stringify(entryModuleID)});`,\n );\n }\n }\n }\n return initialEntryModules;\n }\n\n private _getTemplateString(\n compiler: Compiler,\n initialEntryModules: string[],\n shared: string,\n remotes: string,\n source: Source,\n ) {\n if (\n compiler.options?.experiments?.topLevelAwait &&\n compiler.options?.experiments?.outputModule\n ) {\n return Template.asString([\n 'var promiseTrack = [];',\n Template.asString(initialEntryModules),\n shared,\n remotes,\n 'await Promise.all(promiseTrack)',\n Template.indent(source.source()),\n ]);\n }\n return Template.asString([\n 'var promiseTrack = [];',\n Template.asString(initialEntryModules),\n shared,\n remotes,\n 'var __webpack_exports__ = Promise.all(promiseTrack).then(function() {',\n Template.indent(source.source()),\n Template.indent('return __webpack_exports__'),\n '});',\n ]);\n }\n}\n\nexport default AsyncEntryStartupPlugin;\n"],"names":["AsyncEntryStartupPlugin","apply","compiler","hooks","thisCompilation","tap","compilation","_collectRuntimeChunks","_handleRenderStartup","beforeChunkAssets","chunk","chunks","hasRuntime","id","_runtimeChunks","set","dependentChunk","chunkGraph","getChunkEntryDependentChunksIterable","webpack","javascript","JavascriptModulesPlugin","getCompilationHooks","renderStartup","source","renderContext","upperContext","isSingleRuntime","options","optimization","runtimeChunk","_options","excludeChunk","runtime","_getChunkRuntime","remotes","shared","runtimeItem","requirements","getTreeRuntimeRequirements","hasRemoteModules","getChunkModulesIterableBySourceType","consumeShares","entryOptions","getEntryOptions","chunksToRef","dependOn","_getRemotes","Boolean","_getShared","initialEntryModules","_getInitialEntryModules","_getTemplateString","Set","chunkRuntime","runtimeItems","SortableSet","get","add","size","has","RuntimeGlobals","currentRemoteGetScope","remotesParts","startsWith","chunkId","push","JSON","stringify","join","shareScopeMap","initializeSharing","sharedParts","entryModules","getChunkEntryModulesIterable","entryModule","entryModuleID","getModuleId","shouldInclude","eager","test","identifier","experiments","topLevelAwait","outputModule","Template","asString","indent","constructor","Map"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryDependency.d.ts"],"sourcesContent":["export = ContainerEntryDependency;\n/** @typedef {import(\"./ContainerEntryModule\").ExposeOptions} ExposeOptions */\ndeclare class ContainerEntryDependency extends Dependency {\n /**\n * @param {string} name 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 name: string;\n exposes: [string, import('./ContainerEntryModule').ExposeOptions][];\n shareScope: string;\n}\ndeclare namespace ContainerEntryDependency {\n export { ExposeOptions };\n}\ntype ExposeOptions = import('./ContainerEntryModule').ExposeOptions;\n"],"names":["ContainerEntryDependency"],"mappings":";iBAASA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ExposeOptions } from './ContainerEntryModule';
|
|
2
|
-
import Dependency from 'webpack/lib/Dependency';
|
|
3
|
-
declare class ContainerEntryDependency extends Dependency {
|
|
4
|
-
name: string;
|
|
5
|
-
exposes: [string, ExposeOptions][];
|
|
6
|
-
shareScope: string;
|
|
7
|
-
/**
|
|
8
|
-
* @param {string} name entry name
|
|
9
|
-
* @param {[string, ExposeOptions][]} exposes list of exposed modules
|
|
10
|
-
* @param {string} shareScope name of the share scope
|
|
11
|
-
*/
|
|
12
|
-
constructor(name: string, exposes: [string, ExposeOptions][], shareScope: string);
|
|
13
|
-
/**
|
|
14
|
-
* @returns {string | null} an identifier to merge equal requests
|
|
15
|
-
*/
|
|
16
|
-
getResourceIdentifier(): string | null;
|
|
17
|
-
get type(): string;
|
|
18
|
-
get category(): string;
|
|
19
|
-
}
|
|
20
|
-
export default ContainerEntryDependency;
|
|
@@ -1,47 +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 _makeSerializable = /*#__PURE__*/ _interop_require_default(require("webpack/lib/util/makeSerializable"));
|
|
15
|
-
const _Dependency = /*#__PURE__*/ _interop_require_default(require("webpack/lib/Dependency"));
|
|
16
|
-
function _interop_require_default(obj) {
|
|
17
|
-
return obj && obj.__esModule ? obj : {
|
|
18
|
-
default: obj
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
let ContainerEntryDependency = class ContainerEntryDependency extends _Dependency.default {
|
|
22
|
-
/**
|
|
23
|
-
* @returns {string | null} an identifier to merge equal requests
|
|
24
|
-
*/ getResourceIdentifier() {
|
|
25
|
-
return `container-entry-${this.name}`;
|
|
26
|
-
}
|
|
27
|
-
get type() {
|
|
28
|
-
return 'container entry';
|
|
29
|
-
}
|
|
30
|
-
get category() {
|
|
31
|
-
return 'esm';
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @param {string} name entry name
|
|
35
|
-
* @param {[string, ExposeOptions][]} exposes list of exposed modules
|
|
36
|
-
* @param {string} shareScope name of the share scope
|
|
37
|
-
*/ constructor(name, exposes, shareScope){
|
|
38
|
-
super();
|
|
39
|
-
this.name = name;
|
|
40
|
-
this.exposes = exposes;
|
|
41
|
-
this.shareScope = shareScope;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
(0, _makeSerializable.default)(ContainerEntryDependency, 'enhanced/lib/container/ContainerEntryDependency');
|
|
45
|
-
const _default = ContainerEntryDependency;
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=ContainerEntryDependency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryDependency.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 { ExposeOptions } from './ContainerEntryModule';\nimport makeSerializable from 'webpack/lib/util/makeSerializable';\nimport Dependency from 'webpack/lib/Dependency';\n\nclass ContainerEntryDependency extends Dependency {\n public name: string;\n public exposes: [string, ExposeOptions][];\n public shareScope: string;\n\n /**\n * @param {string} name 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();\n this.name = name;\n this.exposes = exposes;\n this.shareScope = shareScope;\n }\n\n /**\n * @returns {string | null} an identifier to merge equal requests\n */\n override getResourceIdentifier(): string | null {\n return `container-entry-${this.name}`;\n }\n\n override get type(): string {\n return 'container entry';\n }\n\n override get category(): string {\n return 'esm';\n }\n}\n\nmakeSerializable(\n ContainerEntryDependency,\n 'enhanced/lib/container/ContainerEntryDependency',\n);\n\nexport default ContainerEntryDependency;\n"],"names":["ContainerEntryDependency","Dependency","getResourceIdentifier","name","type","category","constructor","exposes","shareScope","makeSerializable"],"mappings":"AAAA;;;AAGA;;;;+BAgDA;;;eAAA;;;yEA7C6B;mEACN;;;;;;AAEvB,IAAA,AAAMA,2BAAN,MAAMA,iCAAiCC,mBAAU;IAqB/C;;GAEC,GACD,AAASC,wBAAuC;QAC9C,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAACC,IAAI,CAAC,CAAC;IACvC;IAEA,IAAaC,OAAe;QAC1B,OAAO;IACT;IAEA,IAAaC,WAAmB;QAC9B,OAAO;IACT;IA7BA;;;;GAIC,GACDC,YACEH,IAAY,EACZI,OAAkC,EAClCC,UAAkB,CAClB;QACA,KAAK;QACL,IAAI,CAACL,IAAI,GAAGA;QACZ,IAAI,CAACI,OAAO,GAAGA;QACf,IAAI,CAACC,UAAU,GAAGA;IACpB;AAgBF;AAEAC,IAAAA,yBAAgB,EACdT,0BACA;MAGF,WAAeA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const Module = require("webpack/lib/Module");
|
|
12
|
-
const _default = ContainerEntryModule;
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=ContainerEntryModule.d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/enhanced/src/lib/container/ContainerEntryModule.d.ts"],"sourcesContent":["import Module = require('webpack/lib/Module');\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};\ntype ObjectDeserializerContext =\n import('webpack/lib/serialization/ObjectMiddleware').ObjectDeserializerContext;\ntype WebpackOptions = any;\ntype ChunkGraph = import('webpack/lib/ChunkGraph');\ntype ChunkGroup = import('webpack/lib/ChunkGroup');\ntype Compilation = import('webpack/lib/Compilation');\ntype CodeGenerationContext = import('webpack/lib/Module').CodeGenerationContext;\ntype CodeGenerationResult = import('webpack/lib/Module').CodeGenerationResult;\ntype LibIdentOptions = import('webpack/lib/Module').LibIdentOptions;\ntype NeedBuildContext = import('webpack/lib/Module').NeedBuildContext;\ntype RequestShortener = import('webpack/lib/RequestShortener');\ntype ResolverWithOptions =\n import('webpack/lib/ResolverFactory').ResolverWithOptions;\ntype WebpackError = import('webpack/lib/WebpackError');\ntype ObjectSerializerContext =\n import('webpack/lib/serialization/ObjectMiddleware').ObjectSerializerContext;\ntype Hash = import('webpack/lib/util/Hash');\ntype InputFileSystem = import('webpack/lib/util/fs').InputFileSystem;\ntype ContainerEntryDependency = typeof import('./ContainerEntryDependency');\n\ndeclare class ContainerEntryModule extends Module {\n /**\n * @param {ObjectDeserializerContext} context context\n * @returns {ContainerEntryModule} deserialized container entry module\n */\n static deserialize(context: ObjectDeserializerContext): ContainerEntryModule;\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 _name: string;\n _exposes: [string, ExposeOptions][];\n _shareScope: string;\n}\ndeclare namespace ContainerEntryModule {\n export {\n WebpackOptions,\n ChunkGraph,\n ChunkGroup,\n Compilation,\n CodeGenerationContext,\n CodeGenerationResult,\n LibIdentOptions,\n NeedBuildContext,\n RequestShortener,\n ResolverWithOptions,\n WebpackError,\n ObjectDeserializerContext,\n ObjectSerializerContext,\n Hash,\n InputFileSystem,\n ContainerEntryDependency,\n ExposeOptions,\n };\n}\nexport default ContainerEntryModule;\n"],"names":["Module","ContainerEntryModule"],"mappings":";;;;+BAwEA;;;eAAA;;;AAxEA,MAAOA,iBAAiB;MAwExB,WAAeC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import Module from 'webpack/lib/Module';
|
|
2
|
-
import type Compilation from 'webpack/lib/Compilation';
|
|
3
|
-
import type { LibIdentOptions, NeedBuildContext, RequestShortener, ObjectDeserializerContext, ObjectSerializerContext, WebpackOptions, InputFileSystem, ResolverWithOptions } from 'webpack/lib/Module';
|
|
4
|
-
import type WebpackError from 'webpack/lib/WebpackError';
|
|
5
|
-
export type ExposeOptions = {
|
|
6
|
-
/**
|
|
7
|
-
* requests to exposed modules (last one is exported)
|
|
8
|
-
*/
|
|
9
|
-
import: string[];
|
|
10
|
-
/**
|
|
11
|
-
* custom chunk name for the exposed module
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
};
|
|
15
|
-
declare class ContainerEntryModule extends Module {
|
|
16
|
-
private _name;
|
|
17
|
-
private _exposes;
|
|
18
|
-
private _shareScope;
|
|
19
|
-
/**
|
|
20
|
-
* @param {string} name container entry name
|
|
21
|
-
* @param {[string, ExposeOptions][]} exposes list of exposed modules
|
|
22
|
-
* @param {string} shareScope name of the share scope
|
|
23
|
-
*/
|
|
24
|
-
constructor(name: string, exposes: [string, ExposeOptions][], shareScope: string);
|
|
25
|
-
/**
|
|
26
|
-
* @param {ObjectDeserializerContext} context context
|
|
27
|
-
* @returns {ContainerEntryModule} deserialized container entry module
|
|
28
|
-
*/
|
|
29
|
-
static deserialize(context: ObjectDeserializerContext): ContainerEntryModule;
|
|
30
|
-
/**
|
|
31
|
-
* @returns {Set<string>} types available (do not mutate)
|
|
32
|
-
*/
|
|
33
|
-
getSourceTypes(): Set<string>;
|
|
34
|
-
/**
|
|
35
|
-
* @returns {string} a unique identifier of the module
|
|
36
|
-
*/
|
|
37
|
-
identifier(): string;
|
|
38
|
-
/**
|
|
39
|
-
* @param {RequestShortener} requestShortener the request shortener
|
|
40
|
-
* @returns {string} a user readable identifier of the module
|
|
41
|
-
*/
|
|
42
|
-
readableIdentifier(requestShortener: RequestShortener): string;
|
|
43
|
-
/**
|
|
44
|
-
* @param {LibIdentOptions} options options
|
|
45
|
-
* @returns {string | null} an identifier for library inclusion
|
|
46
|
-
*/
|
|
47
|
-
libIdent(options: LibIdentOptions): string | null;
|
|
48
|
-
/**
|
|
49
|
-
* @param {NeedBuildContext} context context info
|
|
50
|
-
* @param {function((WebpackError | null)=, boolean=): void} callback callback function, returns true, if the module needs a rebuild
|
|
51
|
-
* @returns {void}
|
|
52
|
-
*/
|
|
53
|
-
needBuild(context: NeedBuildContext, callback: (arg0: (WebpackError | null) | undefined, arg1: boolean | undefined) => void): void;
|
|
54
|
-
/**
|
|
55
|
-
* @param {WebpackOptions} options webpack options
|
|
56
|
-
* @param {Compilation} compilation the compilation
|
|
57
|
-
* @param {ResolverWithOptions} resolver the resolver
|
|
58
|
-
* @param {InputFileSystem} fs the file system
|
|
59
|
-
* @param {function(WebpackError): void} callback callback function
|
|
60
|
-
* @returns {void}
|
|
61
|
-
*/
|
|
62
|
-
build(options: WebpackOptions, compilation: Compilation, resolver: ResolverWithOptions, fs: InputFileSystem, callback: (err?: WebpackError) => void): void;
|
|
63
|
-
/**
|
|
64
|
-
* @param {CodeGenerationContext} context context for code generation
|
|
65
|
-
* @returns {CodeGenerationResult} result
|
|
66
|
-
*/
|
|
67
|
-
codeGeneration({ moduleGraph, chunkGraph, runtimeTemplate }: {
|
|
68
|
-
moduleGraph: any;
|
|
69
|
-
chunkGraph: any;
|
|
70
|
-
runtimeTemplate: any;
|
|
71
|
-
}): {
|
|
72
|
-
sources: Map<any, any>;
|
|
73
|
-
runtimeRequirements: Set<"__webpack_require__.o" | "__webpack_require__.d" | "__webpack_exports__">;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* @param {string=} type the source type for which the size should be estimated
|
|
77
|
-
* @returns {number} the estimated size of the module (must be non-zero)
|
|
78
|
-
*/
|
|
79
|
-
size(type?: string): number;
|
|
80
|
-
/**
|
|
81
|
-
* @param {ObjectSerializerContext} context context
|
|
82
|
-
*/
|
|
83
|
-
serialize(context: ObjectSerializerContext): void;
|
|
84
|
-
}
|
|
85
|
-
export default ContainerEntryModule;
|