@module-federation/enhanced 0.2.0-canary.5 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/dist/package.json +85 -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 +133 -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/RemoteEntryPlugin.d.ts +8 -0
- package/dist/src/lib/container/runtime/RemoteEntryPlugin.js +32 -0
- package/dist/src/lib/container/runtime/RemoteEntryPlugin.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 +75 -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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file was automatically generated.
|
|
3
|
+
* DO NOT MODIFY BY HAND.
|
|
4
|
+
* Run `yarn special-lint-fix` to update
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.
|
|
9
|
+
*/
|
|
10
|
+
export type Provides = (ProvidesItem | ProvidesObject)[] | ProvidesObject;
|
|
11
|
+
/**
|
|
12
|
+
* Request to a module that should be provided as shared module to the share scope (will be resolved when relative).
|
|
13
|
+
*/
|
|
14
|
+
export type ProvidesItem = string;
|
|
15
|
+
|
|
16
|
+
export interface ProvideSharedPluginOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.
|
|
19
|
+
*/
|
|
20
|
+
provides: Provides;
|
|
21
|
+
/**
|
|
22
|
+
* Share scope name used for all provided modules (defaults to 'default').
|
|
23
|
+
*/
|
|
24
|
+
shareScope?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Modules that should be provided as shared modules to the share scope. Property names are used as share keys.
|
|
28
|
+
*/
|
|
29
|
+
export interface ProvidesObject {
|
|
30
|
+
/**
|
|
31
|
+
* Modules that should be provided as shared modules to the share scope.
|
|
32
|
+
*/
|
|
33
|
+
[k: string]: ProvidesConfig | ProvidesItem;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Advanced configuration for modules that should be provided as shared modules to the share scope.
|
|
37
|
+
*/
|
|
38
|
+
export interface ProvidesConfig {
|
|
39
|
+
/**
|
|
40
|
+
* Include the provided module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.
|
|
41
|
+
*/
|
|
42
|
+
eager?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Key in the share scope under which the shared modules should be stored.
|
|
45
|
+
*/
|
|
46
|
+
shareKey?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Share scope name.
|
|
49
|
+
*/
|
|
50
|
+
shareScope?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Version of the provided module. Will replace lower matching versions, but not higher.
|
|
53
|
+
*/
|
|
54
|
+
version?: false | string;
|
|
55
|
+
/**
|
|
56
|
+
* Version requirement from module in share scope.
|
|
57
|
+
*/
|
|
58
|
+
requiredVersion?: false | string;
|
|
59
|
+
/**
|
|
60
|
+
* Allow only a single version of the shared module in share scope (disabled by default).
|
|
61
|
+
*/
|
|
62
|
+
singleton?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).
|
|
65
|
+
*/
|
|
66
|
+
strictVersion?: boolean;
|
|
67
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file was automatically generated.
|
|
3
|
+
* DO NOT MODIFY BY HAND.
|
|
4
|
+
* Run `yarn special-lint-fix` to update
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
|
|
9
|
+
*/
|
|
10
|
+
export type Shared = (SharedItem | SharedObject)[] | SharedObject;
|
|
11
|
+
/**
|
|
12
|
+
* A module that should be shared in the share scope.
|
|
13
|
+
*/
|
|
14
|
+
export type SharedItem = string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Options for shared modules.
|
|
18
|
+
*/
|
|
19
|
+
export interface SharePluginOptions {
|
|
20
|
+
/**
|
|
21
|
+
* Share scope name used for all shared modules (defaults to 'default').
|
|
22
|
+
*/
|
|
23
|
+
shareScope?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
|
|
26
|
+
*/
|
|
27
|
+
shared: Shared;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.
|
|
31
|
+
*/
|
|
32
|
+
export interface SharedObject {
|
|
33
|
+
/**
|
|
34
|
+
* Modules that should be shared in the share scope.
|
|
35
|
+
*/
|
|
36
|
+
[k: string]: SharedConfig | SharedItem;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Advanced configuration for modules that should be shared in the share scope.
|
|
40
|
+
*/
|
|
41
|
+
export interface SharedConfig {
|
|
42
|
+
/**
|
|
43
|
+
* Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.
|
|
44
|
+
*/
|
|
45
|
+
eager?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.
|
|
48
|
+
*/
|
|
49
|
+
import?: false | SharedItem;
|
|
50
|
+
/**
|
|
51
|
+
* Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.
|
|
52
|
+
*/
|
|
53
|
+
packageName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Version requirement from module in share scope.
|
|
56
|
+
*/
|
|
57
|
+
requiredVersion?: false | string;
|
|
58
|
+
/**
|
|
59
|
+
* Module is looked up under this key from the share scope.
|
|
60
|
+
*/
|
|
61
|
+
shareKey?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Share scope name.
|
|
64
|
+
*/
|
|
65
|
+
shareScope?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Allow only a single version of the shared module in share scope (disabled by default).
|
|
68
|
+
*/
|
|
69
|
+
singleton?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).
|
|
72
|
+
*/
|
|
73
|
+
strictVersion?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Version of the provided module. Will replace lower matching versions, but not higher.
|
|
76
|
+
*/
|
|
77
|
+
version?: false | string;
|
|
78
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin';
|
|
2
|
+
export { default as ContainerReferencePlugin } from './wrapper/ContainerReferencePlugin';
|
|
3
|
+
export { default as SharePlugin } from './wrapper/SharePlugin';
|
|
4
|
+
export { default as ContainerPlugin } from './wrapper/ContainerPlugin';
|
|
5
|
+
export { default as ConsumeSharedPlugin } from './wrapper/ConsumeSharedPlugin';
|
|
6
|
+
export { default as ProvideSharedPlugin } from './wrapper/ProvideSharedPlugin';
|
|
7
|
+
export { default as FederationRuntimePlugin } from './wrapper/FederationRuntimePlugin';
|
|
8
|
+
export { default as AsyncBoundaryPlugin } from './wrapper/AsyncBoundaryPlugin';
|
|
9
|
+
export { default as HoistContainerReferencesPlugin } from './wrapper/HoistContainerReferencesPlugin';
|
|
10
|
+
export { isRequiredVersion, normalizeVersion, getDescriptionFile, getRequiredVersionFromDescriptionFile, } from './lib/sharing/utils';
|
|
11
|
+
export { parseOptions } from './lib/container/options';
|
|
12
|
+
export declare const container: {
|
|
13
|
+
readonly ContainerEntryModule: any;
|
|
14
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.container = exports.parseOptions = exports.getRequiredVersionFromDescriptionFile = exports.getDescriptionFile = exports.normalizeVersion = exports.isRequiredVersion = exports.HoistContainerReferencesPlugin = exports.AsyncBoundaryPlugin = exports.FederationRuntimePlugin = exports.ProvideSharedPlugin = exports.ConsumeSharedPlugin = exports.ContainerPlugin = exports.SharePlugin = exports.ContainerReferencePlugin = exports.ModuleFederationPlugin = void 0;
|
|
7
|
+
var ModuleFederationPlugin_1 = require("./wrapper/ModuleFederationPlugin");
|
|
8
|
+
Object.defineProperty(exports, "ModuleFederationPlugin", { enumerable: true, get: function () { return __importDefault(ModuleFederationPlugin_1).default; } });
|
|
9
|
+
var ContainerReferencePlugin_1 = require("./wrapper/ContainerReferencePlugin");
|
|
10
|
+
Object.defineProperty(exports, "ContainerReferencePlugin", { enumerable: true, get: function () { return __importDefault(ContainerReferencePlugin_1).default; } });
|
|
11
|
+
var SharePlugin_1 = require("./wrapper/SharePlugin");
|
|
12
|
+
Object.defineProperty(exports, "SharePlugin", { enumerable: true, get: function () { return __importDefault(SharePlugin_1).default; } });
|
|
13
|
+
var ContainerPlugin_1 = require("./wrapper/ContainerPlugin");
|
|
14
|
+
Object.defineProperty(exports, "ContainerPlugin", { enumerable: true, get: function () { return __importDefault(ContainerPlugin_1).default; } });
|
|
15
|
+
var ConsumeSharedPlugin_1 = require("./wrapper/ConsumeSharedPlugin");
|
|
16
|
+
Object.defineProperty(exports, "ConsumeSharedPlugin", { enumerable: true, get: function () { return __importDefault(ConsumeSharedPlugin_1).default; } });
|
|
17
|
+
var ProvideSharedPlugin_1 = require("./wrapper/ProvideSharedPlugin");
|
|
18
|
+
Object.defineProperty(exports, "ProvideSharedPlugin", { enumerable: true, get: function () { return __importDefault(ProvideSharedPlugin_1).default; } });
|
|
19
|
+
var FederationRuntimePlugin_1 = require("./wrapper/FederationRuntimePlugin");
|
|
20
|
+
Object.defineProperty(exports, "FederationRuntimePlugin", { enumerable: true, get: function () { return __importDefault(FederationRuntimePlugin_1).default; } });
|
|
21
|
+
var AsyncBoundaryPlugin_1 = require("./wrapper/AsyncBoundaryPlugin");
|
|
22
|
+
Object.defineProperty(exports, "AsyncBoundaryPlugin", { enumerable: true, get: function () { return __importDefault(AsyncBoundaryPlugin_1).default; } });
|
|
23
|
+
var HoistContainerReferencesPlugin_1 = require("./wrapper/HoistContainerReferencesPlugin");
|
|
24
|
+
Object.defineProperty(exports, "HoistContainerReferencesPlugin", { enumerable: true, get: function () { return __importDefault(HoistContainerReferencesPlugin_1).default; } });
|
|
25
|
+
var utils_1 = require("./lib/sharing/utils");
|
|
26
|
+
Object.defineProperty(exports, "isRequiredVersion", { enumerable: true, get: function () { return utils_1.isRequiredVersion; } });
|
|
27
|
+
Object.defineProperty(exports, "normalizeVersion", { enumerable: true, get: function () { return utils_1.normalizeVersion; } });
|
|
28
|
+
Object.defineProperty(exports, "getDescriptionFile", { enumerable: true, get: function () { return utils_1.getDescriptionFile; } });
|
|
29
|
+
Object.defineProperty(exports, "getRequiredVersionFromDescriptionFile", { enumerable: true, get: function () { return utils_1.getRequiredVersionFromDescriptionFile; } });
|
|
30
|
+
var options_1 = require("./lib/container/options");
|
|
31
|
+
Object.defineProperty(exports, "parseOptions", { enumerable: true, get: function () { return options_1.parseOptions; } });
|
|
32
|
+
exports.container = {
|
|
33
|
+
get ContainerEntryModule() {
|
|
34
|
+
return require('./lib/container/ContainerEntryModule').default;
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,2EAAqF;AAA5E,iJAAA,OAAO,OAA0B;AAC1C,+EAAyF;AAAhF,qJAAA,OAAO,OAA4B;AAC5C,qDAA+D;AAAtD,2HAAA,OAAO,OAAe;AAC/B,6DAAuE;AAA9D,mIAAA,OAAO,OAAmB;AACnC,qEAA+E;AAAtE,2IAAA,OAAO,OAAuB;AACvC,qEAA+E;AAAtE,2IAAA,OAAO,OAAuB;AAEvC,6EAAuF;AAA9E,mJAAA,OAAO,OAA2B;AAC3C,qEAA+E;AAAtE,2IAAA,OAAO,OAAuB;AACvC,2FAAqG;AAA5F,iKAAA,OAAO,OAAkC;AAElD,6CAK6B;AAJ3B,0GAAA,iBAAiB,OAAA;AACjB,yGAAA,gBAAgB,OAAA;AAChB,2GAAA,kBAAkB,OAAA;AAClB,8HAAA,qCAAqC,OAAA;AAEvC,mDAAuD;AAA9C,uGAAA,YAAY,OAAA;AAER,QAAA,SAAS,GAAG;IACvB,IAAI,oBAAoB;QACtB,OAAO,OAAO,CAAC,sCAAsC,CAAC,CAAC,OAAO,CAAC;IACjE,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
4
|
+
Author Sean Larkin @TheLarkInn
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY = exports.WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE = exports.WEBPACK_MODULE_TYPE_PROVIDE = exports.WEBPACK_MODULE_TYPE_REMOTE = exports.WEBPACK_MODULE_TYPE_FALLBACK = exports.WEBPACK_MODULE_TYPE_RUNTIME = exports.ASSET_MODULE_TYPE_RAW_DATA_URL = exports.ASSET_MODULE_TYPE_SOURCE = exports.ASSET_MODULE_TYPE_RESOURCE = exports.ASSET_MODULE_TYPE_INLINE = exports.ASSET_MODULE_TYPE = exports.CSS_MODULE_TYPE_AUTO = exports.CSS_MODULE_TYPE_MODULE = exports.CSS_MODULE_TYPE_GLOBAL = exports.CSS_MODULE_TYPE = exports.WEBASSEMBLY_MODULE_TYPE_SYNC = exports.WEBASSEMBLY_MODULE_TYPE_ASYNC = exports.JSON_MODULE_TYPE = exports.JAVASCRIPT_MODULE_TYPE_ESM = exports.JAVASCRIPT_MODULE_TYPE_DYNAMIC = exports.JAVASCRIPT_MODULE_TYPE_AUTO = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* @type {Readonly<"javascript/auto">}
|
|
10
|
+
*/
|
|
11
|
+
exports.JAVASCRIPT_MODULE_TYPE_AUTO = 'javascript/auto';
|
|
12
|
+
/**
|
|
13
|
+
* @type {Readonly<"javascript/dynamic">}
|
|
14
|
+
*/
|
|
15
|
+
exports.JAVASCRIPT_MODULE_TYPE_DYNAMIC = 'javascript/dynamic';
|
|
16
|
+
/**
|
|
17
|
+
* @type {Readonly<"javascript/esm">}
|
|
18
|
+
* This is the module type used for _strict_ ES Module syntax. This means that all legacy formats
|
|
19
|
+
* that webpack supports (CommonJS, AMD, SystemJS) are not supported.
|
|
20
|
+
*/
|
|
21
|
+
exports.JAVASCRIPT_MODULE_TYPE_ESM = 'javascript/esm';
|
|
22
|
+
/**
|
|
23
|
+
* @type {Readonly<"json">}
|
|
24
|
+
* This is the module type used for JSON files. JSON files are always parsed as ES Module.
|
|
25
|
+
*/
|
|
26
|
+
exports.JSON_MODULE_TYPE = 'json';
|
|
27
|
+
/**
|
|
28
|
+
* @type {Readonly<"webassembly/async">}
|
|
29
|
+
* This is the module type used for WebAssembly modules. In webpack 5 they are always treated as async modules.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
exports.WEBASSEMBLY_MODULE_TYPE_ASYNC = 'webassembly/async';
|
|
33
|
+
/**
|
|
34
|
+
* @type {Readonly<"webassembly/sync">}
|
|
35
|
+
* This is the module type used for WebAssembly modules. In webpack 4 they are always treated as sync modules.
|
|
36
|
+
* There is a legacy option to support this usage in webpack 5 and up.
|
|
37
|
+
*/
|
|
38
|
+
exports.WEBASSEMBLY_MODULE_TYPE_SYNC = 'webassembly/sync';
|
|
39
|
+
/**
|
|
40
|
+
* @type {Readonly<"css">}
|
|
41
|
+
* This is the module type used for CSS files.
|
|
42
|
+
*/
|
|
43
|
+
exports.CSS_MODULE_TYPE = 'css';
|
|
44
|
+
/**
|
|
45
|
+
* @type {Readonly<"css/global">}
|
|
46
|
+
* This is the module type used for CSS modules files where you need to use `:local` in selector list to hash classes.
|
|
47
|
+
*/
|
|
48
|
+
exports.CSS_MODULE_TYPE_GLOBAL = 'css/global';
|
|
49
|
+
/**
|
|
50
|
+
* @type {Readonly<"css/module">}
|
|
51
|
+
* This is the module type used for CSS modules files, by default all classes are hashed.
|
|
52
|
+
*/
|
|
53
|
+
exports.CSS_MODULE_TYPE_MODULE = 'css/module';
|
|
54
|
+
/**
|
|
55
|
+
* @type {Readonly<"css/auto">}
|
|
56
|
+
* This is the module type used for CSS files, the module will be parsed as CSS modules if it's filename contains `.module.` or `.modules.`.
|
|
57
|
+
*/
|
|
58
|
+
exports.CSS_MODULE_TYPE_AUTO = 'css/auto';
|
|
59
|
+
/**
|
|
60
|
+
* @type {Readonly<"asset">}
|
|
61
|
+
* This is the module type used for automatically choosing between `asset/inline`, `asset/resource` based on asset size limit (8096).
|
|
62
|
+
*/
|
|
63
|
+
exports.ASSET_MODULE_TYPE = 'asset';
|
|
64
|
+
/**
|
|
65
|
+
* @type {Readonly<"asset/inline">}
|
|
66
|
+
* This is the module type used for assets that are inlined as a data URI. This is the equivalent of `url-loader`.
|
|
67
|
+
*/
|
|
68
|
+
exports.ASSET_MODULE_TYPE_INLINE = 'asset/inline';
|
|
69
|
+
/**
|
|
70
|
+
* @type {Readonly<"asset/resource">}
|
|
71
|
+
* This is the module type used for assets that are copied to the output directory. This is the equivalent of `file-loader`.
|
|
72
|
+
*/
|
|
73
|
+
exports.ASSET_MODULE_TYPE_RESOURCE = 'asset/resource';
|
|
74
|
+
/**
|
|
75
|
+
* @type {Readonly<"asset/source">}
|
|
76
|
+
* This is the module type used for assets that are imported as source code. This is the equivalent of `raw-loader`.
|
|
77
|
+
*/
|
|
78
|
+
exports.ASSET_MODULE_TYPE_SOURCE = 'asset/source';
|
|
79
|
+
/**
|
|
80
|
+
* @type {Readonly<"asset/raw-data-url">}
|
|
81
|
+
* TODO: Document what this asset type is for. See css-loader tests for its usage.
|
|
82
|
+
*/
|
|
83
|
+
exports.ASSET_MODULE_TYPE_RAW_DATA_URL = 'asset/raw-data-url';
|
|
84
|
+
/**
|
|
85
|
+
* @type {Readonly<"runtime">}
|
|
86
|
+
* This is the module type used for the webpack runtime abstractions.
|
|
87
|
+
*/
|
|
88
|
+
exports.WEBPACK_MODULE_TYPE_RUNTIME = 'runtime';
|
|
89
|
+
/**
|
|
90
|
+
* @type {Readonly<"fallback-module">}
|
|
91
|
+
* This is the module type used for the ModuleFederation feature's FallbackModule class.
|
|
92
|
+
* TODO: Document this better.
|
|
93
|
+
*/
|
|
94
|
+
exports.WEBPACK_MODULE_TYPE_FALLBACK = 'fallback-module';
|
|
95
|
+
/**
|
|
96
|
+
* @type {Readonly<"remote-module">}
|
|
97
|
+
* This is the module type used for the ModuleFederation feature's RemoteModule class.
|
|
98
|
+
* TODO: Document this better.
|
|
99
|
+
*/
|
|
100
|
+
exports.WEBPACK_MODULE_TYPE_REMOTE = 'remote-module';
|
|
101
|
+
/**
|
|
102
|
+
* @type {Readonly<"provide-module">}
|
|
103
|
+
* This is the module type used for the ModuleFederation feature's ProvideModule class.
|
|
104
|
+
* TODO: Document this better.
|
|
105
|
+
*/
|
|
106
|
+
exports.WEBPACK_MODULE_TYPE_PROVIDE = 'provide-module';
|
|
107
|
+
/**
|
|
108
|
+
* @type {Readonly<"consume-shared-module">}
|
|
109
|
+
* This is the module type used for the ModuleFederation feature's ConsumeSharedModule class.
|
|
110
|
+
*/
|
|
111
|
+
exports.WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE = 'consume-shared-module';
|
|
112
|
+
/**
|
|
113
|
+
* @type {Readonly<"lazy-compilation-proxy">}
|
|
114
|
+
* Module type used for `experiments.lazyCompilation` feature. See `LazyCompilationPlugin` for more information.
|
|
115
|
+
*/
|
|
116
|
+
exports.WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY = 'lazy-compilation-proxy';
|
|
117
|
+
/** @typedef {"javascript/auto" | "javascript/dynamic" | "javascript/esm"} JavaScriptModuleTypes */
|
|
118
|
+
/** @typedef {"json"} JSONModuleType */
|
|
119
|
+
/** @typedef {"webassembly/async" | "webassembly/sync"} WebAssemblyModuleTypes */
|
|
120
|
+
/** @typedef {"css" | "css/global" | "css/module"} CSSModuleTypes */
|
|
121
|
+
/** @typedef {"asset" | "asset/inline" | "asset/resource" | "asset/source" | "asset/raw-data-url"} AssetModuleTypes */
|
|
122
|
+
/** @typedef {"runtime" | "fallback-module" | "remote-module" | "provide-module" | "consume-shared-module" | "lazy-compilation-proxy"} WebpackModuleTypes */
|
|
123
|
+
/** @typedef {string} UnknownModuleTypes */
|
|
124
|
+
/** @typedef {JavaScriptModuleTypes | JSONModuleType | WebAssemblyModuleTypes | CSSModuleTypes | AssetModuleTypes | WebpackModuleTypes | UnknownModuleTypes} ModuleTypes */
|
|
125
|
+
//# sourceMappingURL=Constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../../src/lib/Constants.ts"],"names":[],"mappings":";AAAA;;;EAGE;;;AAEF;;GAEG;AACU,QAAA,2BAA2B,GACtC,iBAAiB,CAAC;AAEpB;;GAEG;AACU,QAAA,8BAA8B,GACzC,oBAAoB,CAAC;AAEvB;;;;GAIG;AACU,QAAA,0BAA0B,GACrC,gBAAgB,CAAC;AAEnB;;;GAGG;AACU,QAAA,gBAAgB,GAAqB,MAAM,CAAC;AAEzD;;;;GAIG;AACU,QAAA,6BAA6B,GACxC,mBAAmB,CAAC;AAEtB;;;;GAIG;AACU,QAAA,4BAA4B,GACvC,kBAAkB,CAAC;AAErB;;;GAGG;AACU,QAAA,eAAe,GAAoB,KAAK,CAAC;AAEtD;;;GAGG;AACU,QAAA,sBAAsB,GAA2B,YAAY,CAAC;AAE3E;;;GAGG;AACU,QAAA,sBAAsB,GAA2B,YAAY,CAAC;AAE3E;;;GAGG;AACU,QAAA,oBAAoB,GAAyB,UAAU,CAAC;AAErE;;;GAGG;AACU,QAAA,iBAAiB,GAAsB,OAAO,CAAC;AAE5D;;;GAGG;AACU,QAAA,wBAAwB,GACnC,cAAc,CAAC;AAEjB;;;GAGG;AACU,QAAA,0BAA0B,GACrC,gBAAgB,CAAC;AAEnB;;;GAGG;AACU,QAAA,wBAAwB,GACnC,cAAc,CAAC;AAEjB;;;GAGG;AACU,QAAA,8BAA8B,GACzC,oBAAoB,CAAC;AAEvB;;;GAGG;AACU,QAAA,2BAA2B,GAAwB,SAAS,CAAC;AAE1E;;;;GAIG;AACU,QAAA,4BAA4B,GACvC,iBAAiB,CAAC;AAEpB;;;;GAIG;AACU,QAAA,0BAA0B,GACrC,eAAe,CAAC;AAElB;;;;GAIG;AACU,QAAA,2BAA2B,GACtC,gBAAgB,CAAC;AAEnB;;;GAGG;AACU,QAAA,yCAAyC,GACpD,uBAAuB,CAAC;AAE1B;;;GAGG;AACU,QAAA,0CAA0C,GACrD,wBAAwB,CAAC;AAE3B,mGAAmG;AACnG,uCAAuC;AACvC,iFAAiF;AACjF,oEAAoE;AACpE,sHAAsH;AACtH,4JAA4J;AAC5J,2CAA2C;AAC3C,2KAA2K"}
|
|
File without changes
|