@module-federation/enhanced 0.2.0-canary.4 → 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/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -0
- 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.d.ts +0 -16
- package/src/lib/container/AsyncBoundaryPlugin.js +0 -141
- 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,138 @@
|
|
|
1
|
+
declare class Module extends DependenciesBlock {
|
|
2
|
+
constructor(type: string, context?: null | string, layer?: null | string);
|
|
3
|
+
type: string;
|
|
4
|
+
context: null | string;
|
|
5
|
+
layer: null | string;
|
|
6
|
+
needId: boolean;
|
|
7
|
+
debugId: number;
|
|
8
|
+
resolveOptions?: ResolveOptionsWebpackOptions;
|
|
9
|
+
factoryMeta?: FactoryMeta;
|
|
10
|
+
useSourceMap: boolean;
|
|
11
|
+
useSimpleSourceMap: boolean;
|
|
12
|
+
buildMeta?: BuildMeta;
|
|
13
|
+
buildInfo?: BuildInfo;
|
|
14
|
+
presentationalDependencies?: Dependency[];
|
|
15
|
+
codeGenerationDependencies?: Dependency[];
|
|
16
|
+
id: string | number;
|
|
17
|
+
get hash(): string;
|
|
18
|
+
get renderedHash(): string;
|
|
19
|
+
profile: null | ModuleProfile;
|
|
20
|
+
index: null | number;
|
|
21
|
+
index2: null | number;
|
|
22
|
+
depth: null | number;
|
|
23
|
+
issuer: null | Module;
|
|
24
|
+
get usedExports(): null | boolean | SortableSet<string>;
|
|
25
|
+
get optimizationBailout(): (
|
|
26
|
+
| string
|
|
27
|
+
| ((requestShortener: RequestShortener) => string)
|
|
28
|
+
)[];
|
|
29
|
+
get optional(): boolean;
|
|
30
|
+
addChunk(chunk: Chunk): boolean;
|
|
31
|
+
removeChunk(chunk: Chunk): void;
|
|
32
|
+
isInChunk(chunk: Chunk): boolean;
|
|
33
|
+
isEntryModule(): boolean;
|
|
34
|
+
getChunks(): Chunk[];
|
|
35
|
+
getNumberOfChunks(): number;
|
|
36
|
+
get chunksIterable(): Iterable<Chunk>;
|
|
37
|
+
isProvided(exportName: string): null | boolean;
|
|
38
|
+
get exportsArgument(): string;
|
|
39
|
+
get moduleArgument(): string;
|
|
40
|
+
getExportsType(
|
|
41
|
+
moduleGraph: ModuleGraph,
|
|
42
|
+
strict?: boolean,
|
|
43
|
+
): 'namespace' | 'default-only' | 'default-with-named' | 'dynamic';
|
|
44
|
+
addPresentationalDependency(presentationalDependency: Dependency): void;
|
|
45
|
+
addCodeGenerationDependency(codeGenerationDependency: Dependency): void;
|
|
46
|
+
addWarning(warning: WebpackError): void;
|
|
47
|
+
getWarnings(): undefined | Iterable<WebpackError>;
|
|
48
|
+
getNumberOfWarnings(): number;
|
|
49
|
+
addError(error: WebpackError): void;
|
|
50
|
+
getErrors(): undefined | Iterable<WebpackError>;
|
|
51
|
+
getNumberOfErrors(): number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* removes all warnings and errors
|
|
55
|
+
*/
|
|
56
|
+
clearWarningsAndErrors(): void;
|
|
57
|
+
isOptional(moduleGraph: ModuleGraph): boolean;
|
|
58
|
+
isAccessibleInChunk(
|
|
59
|
+
chunkGraph: ChunkGraph,
|
|
60
|
+
chunk: Chunk,
|
|
61
|
+
ignoreChunk?: Chunk,
|
|
62
|
+
): boolean;
|
|
63
|
+
isAccessibleInChunkGroup(
|
|
64
|
+
chunkGraph: ChunkGraph,
|
|
65
|
+
chunkGroup: ChunkGroup,
|
|
66
|
+
ignoreChunk?: Chunk,
|
|
67
|
+
): boolean;
|
|
68
|
+
hasReasonForChunk(
|
|
69
|
+
chunk: Chunk,
|
|
70
|
+
moduleGraph: ModuleGraph,
|
|
71
|
+
chunkGraph: ChunkGraph,
|
|
72
|
+
): boolean;
|
|
73
|
+
hasReasons(moduleGraph: ModuleGraph, runtime: RuntimeSpec): boolean;
|
|
74
|
+
needBuild(
|
|
75
|
+
context: NeedBuildContext,
|
|
76
|
+
callback: (arg0?: null | WebpackError, arg1?: boolean) => void,
|
|
77
|
+
): void;
|
|
78
|
+
needRebuild(
|
|
79
|
+
fileTimestamps: Map<string, null | number>,
|
|
80
|
+
contextTimestamps: Map<string, null | number>,
|
|
81
|
+
): boolean;
|
|
82
|
+
invalidateBuild(): void;
|
|
83
|
+
identifier(): string;
|
|
84
|
+
readableIdentifier(requestShortener: RequestShortener): string;
|
|
85
|
+
build(
|
|
86
|
+
options: WebpackOptionsNormalized,
|
|
87
|
+
compilation: Compilation,
|
|
88
|
+
resolver: ResolverWithOptions,
|
|
89
|
+
fs: InputFileSystem,
|
|
90
|
+
callback: (arg0?: WebpackError) => void,
|
|
91
|
+
): void;
|
|
92
|
+
getSourceTypes(): Set<string>;
|
|
93
|
+
source(
|
|
94
|
+
dependencyTemplates: DependencyTemplates,
|
|
95
|
+
runtimeTemplate: RuntimeTemplate,
|
|
96
|
+
type?: string,
|
|
97
|
+
): Source;
|
|
98
|
+
size(type?: string): number;
|
|
99
|
+
libIdent(options: LibIdentOptions): null | string;
|
|
100
|
+
nameForCondition(): null | string;
|
|
101
|
+
getConcatenationBailoutReason(
|
|
102
|
+
context: ConcatenationBailoutReasonContext,
|
|
103
|
+
): undefined | string;
|
|
104
|
+
getSideEffectsConnectionState(moduleGraph: ModuleGraph): ConnectionState;
|
|
105
|
+
codeGeneration(context: CodeGenerationContext): CodeGenerationResult;
|
|
106
|
+
chunkCondition(chunk: Chunk, compilation: Compilation): boolean;
|
|
107
|
+
hasChunkCondition(): boolean;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Assuming this module is in the cache. Update the (cached) module with
|
|
111
|
+
* the fresh module from the factory. Usually updates internal references
|
|
112
|
+
* and properties.
|
|
113
|
+
*/
|
|
114
|
+
updateCacheModule(module: Module): void;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Module should be unsafe cached. Get data that's needed for that.
|
|
118
|
+
* This data will be passed to restoreFromUnsafeCache later.
|
|
119
|
+
*/
|
|
120
|
+
getUnsafeCacheData(): object;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Assuming this module is in the cache. Remove internal references to allow freeing some memory.
|
|
124
|
+
*/
|
|
125
|
+
cleanupForCache(): void;
|
|
126
|
+
originalSource(): null | Source;
|
|
127
|
+
addCacheDependencies(
|
|
128
|
+
fileDependencies: LazySet<string>,
|
|
129
|
+
contextDependencies: LazySet<string>,
|
|
130
|
+
missingDependencies: LazySet<string>,
|
|
131
|
+
buildDependencies: LazySet<string>,
|
|
132
|
+
): void;
|
|
133
|
+
get hasEqualsChunks(): any;
|
|
134
|
+
get isUsed(): any;
|
|
135
|
+
get errors(): any;
|
|
136
|
+
get warnings(): any;
|
|
137
|
+
used: any;
|
|
138
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare abstract class ModuleFactory {
|
|
2
|
+
create(
|
|
3
|
+
data: ModuleFactoryCreateData,
|
|
4
|
+
callback: (arg0?: null | Error, arg1?: ModuleFactoryResult) => void,
|
|
5
|
+
): void;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare interface ModuleFactoryCreateData {
|
|
9
|
+
contextInfo: ModuleFactoryCreateDataContextInfo;
|
|
10
|
+
resolveOptions?: ResolveOptionsWebpackOptions;
|
|
11
|
+
context: string;
|
|
12
|
+
dependencies: Dependency[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare interface ModuleFactoryCreateDataContextInfo {
|
|
16
|
+
issuer: string;
|
|
17
|
+
issuerLayer?: null | string;
|
|
18
|
+
compiler: string;
|
|
19
|
+
}
|
|
20
|
+
declare interface ModuleFactoryResult {
|
|
21
|
+
/**
|
|
22
|
+
* the created module or unset if no module was created
|
|
23
|
+
*/
|
|
24
|
+
module?: Module;
|
|
25
|
+
fileDependencies?: Set<string>;
|
|
26
|
+
contextDependencies?: Set<string>;
|
|
27
|
+
missingDependencies?: Set<string>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* allow to use the unsafe cache
|
|
31
|
+
*/
|
|
32
|
+
cacheable?: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export class StaticExportsDependency extends NullDependency {
|
|
2
|
+
/**
|
|
3
|
+
* @param {string[] | true} exports export names
|
|
4
|
+
* @param {boolean} canMangle true, if mangling exports names is allowed
|
|
5
|
+
*/
|
|
6
|
+
constructor(exports: string[] | true, canMangle: boolean);
|
|
7
|
+
exports: true | string[];
|
|
8
|
+
canMangle: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare namespace StaticExportsDependency {
|
|
11
|
+
export {
|
|
12
|
+
ChunkGraph,
|
|
13
|
+
ExportSpec,
|
|
14
|
+
ExportsSpec,
|
|
15
|
+
UpdateHashContext,
|
|
16
|
+
ModuleGraph,
|
|
17
|
+
ObjectDeserializerContext,
|
|
18
|
+
ObjectSerializerContext,
|
|
19
|
+
Hash,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
import NullDependency = require('./NullDependency');
|
|
23
|
+
type ChunkGraph = import('../ChunkGraph');
|
|
24
|
+
type ExportSpec = import('./Dependency').ExportSpec;
|
|
25
|
+
type ExportsSpec = import('./Dependency').ExportsSpec;
|
|
26
|
+
type UpdateHashContext = import('./Dependency').UpdateHashContext;
|
|
27
|
+
type ModuleGraph = import('../ModuleGraph');
|
|
28
|
+
type Hash = import('../util/Hash');
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export = Template;
|
|
2
|
+
|
|
3
|
+
declare class Template {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param {Function} fn a runtime function (.runtime.js) "template"
|
|
7
|
+
* @returns {string} the updated and normalized function string
|
|
8
|
+
*/
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
10
|
+
static getFunctionContent(fn: Function): string;
|
|
11
|
+
/**
|
|
12
|
+
* @param {string} str the string converted to identifier
|
|
13
|
+
* @returns {string} created identifier
|
|
14
|
+
*/
|
|
15
|
+
static toIdentifier(str: string): string;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param {string} str string to be converted to commented in bundle code
|
|
19
|
+
* @returns {string} returns a commented version of string
|
|
20
|
+
*/
|
|
21
|
+
static toComment(str: string): string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param {string} str string to be converted to "normal comment"
|
|
25
|
+
* @returns {string} returns a commented version of string
|
|
26
|
+
*/
|
|
27
|
+
static toNormalComment(str: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} str string path to be normalized
|
|
30
|
+
* @returns {string} normalized bundle-safe path
|
|
31
|
+
*/
|
|
32
|
+
static toPath(str: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* @param {number} n number to convert to ident
|
|
35
|
+
* @returns {string} returns single character ident
|
|
36
|
+
*/
|
|
37
|
+
static numberToIdentifier(n: number): string;
|
|
38
|
+
/**
|
|
39
|
+
* @param {number} n number to convert to ident
|
|
40
|
+
* @returns {string} returns single character ident
|
|
41
|
+
*/
|
|
42
|
+
static numberToIdentifierContinuation(n: number): string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param {string | string[]} s string to convert to identity
|
|
46
|
+
* @returns {string} converted identity
|
|
47
|
+
*/
|
|
48
|
+
static indent(s: string | string[]): string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @param {string|string[]} s string to create prefix for
|
|
52
|
+
* @param {string} prefix prefix to compose
|
|
53
|
+
* @returns {string} returns new prefix string
|
|
54
|
+
*/
|
|
55
|
+
static prefix(s: string | string[], prefix: string): string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {string|string[]} str string or string collection
|
|
59
|
+
* @returns {string} returns a single string from array
|
|
60
|
+
*/
|
|
61
|
+
static asString(str: string | string[]): string;
|
|
62
|
+
/**
|
|
63
|
+
* @typedef {Object} WithId
|
|
64
|
+
* @property {string|number} id
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* @param {WithId[]} modules a collection of modules to get array bounds for
|
|
68
|
+
* @returns {[number, number] | false} returns the upper and lower array bounds
|
|
69
|
+
* or false if not every module has a number based id
|
|
70
|
+
*/
|
|
71
|
+
static getModulesArrayBounds(
|
|
72
|
+
modules: {
|
|
73
|
+
id: string | number;
|
|
74
|
+
}[],
|
|
75
|
+
): [number, number] | false;
|
|
76
|
+
/**
|
|
77
|
+
* @param {ChunkRenderContext} renderContext render context
|
|
78
|
+
* @param {Module[]} modules modules to render (should be ordered by identifier)
|
|
79
|
+
* @param {function(Module): Source} renderModule function to render a module
|
|
80
|
+
* @param {string=} prefix applying prefix strings
|
|
81
|
+
* @returns {Source | null} rendered chunk modules in a Source object or null if no modules
|
|
82
|
+
*/
|
|
83
|
+
static renderChunkModules(
|
|
84
|
+
renderContext: ChunkRenderContext,
|
|
85
|
+
modules: Module[],
|
|
86
|
+
renderModule: (arg0: Module) => Source,
|
|
87
|
+
prefix?: string | undefined,
|
|
88
|
+
): Source | null;
|
|
89
|
+
/**
|
|
90
|
+
* @param {RuntimeModule[]} runtimeModules array of runtime modules in order
|
|
91
|
+
* @param {RenderContext & { codeGenerationResults?: CodeGenerationResults }} renderContext render context
|
|
92
|
+
* @returns {Source} rendered runtime modules in a Source object
|
|
93
|
+
*/
|
|
94
|
+
static renderRuntimeModules(
|
|
95
|
+
runtimeModules: RuntimeModule[],
|
|
96
|
+
renderContext: RenderContext & {
|
|
97
|
+
codeGenerationResults?: CodeGenerationResults;
|
|
98
|
+
},
|
|
99
|
+
): Source;
|
|
100
|
+
/**
|
|
101
|
+
* @param {RuntimeModule[]} runtimeModules array of runtime modules in order
|
|
102
|
+
* @param {RenderContext} renderContext render context
|
|
103
|
+
* @returns {Source} rendered chunk runtime modules in a Source object
|
|
104
|
+
*/
|
|
105
|
+
static renderChunkRuntimeModules(
|
|
106
|
+
runtimeModules: RuntimeModule[],
|
|
107
|
+
renderContext: RenderContext,
|
|
108
|
+
): Source;
|
|
109
|
+
}
|
|
110
|
+
declare namespace Template {
|
|
111
|
+
export {
|
|
112
|
+
NUMBER_OF_IDENTIFIER_START_CHARS,
|
|
113
|
+
NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS,
|
|
114
|
+
Source,
|
|
115
|
+
OutputOptions,
|
|
116
|
+
Chunk,
|
|
117
|
+
ChunkGraph,
|
|
118
|
+
CodeGenerationResults,
|
|
119
|
+
AssetInfo,
|
|
120
|
+
PathData,
|
|
121
|
+
DependencyTemplates,
|
|
122
|
+
Module,
|
|
123
|
+
ModuleGraph,
|
|
124
|
+
ModuleTemplate,
|
|
125
|
+
RuntimeModule,
|
|
126
|
+
RuntimeTemplate,
|
|
127
|
+
ChunkRenderContext,
|
|
128
|
+
RenderContext,
|
|
129
|
+
RenderManifestOptions,
|
|
130
|
+
RenderManifestEntry,
|
|
131
|
+
RenderManifestEntryTemplated,
|
|
132
|
+
RenderManifestEntryStatic,
|
|
133
|
+
HasId,
|
|
134
|
+
ModuleFilterPredicate,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
type ChunkRenderContext =
|
|
138
|
+
import('./javascript/JavascriptModulesPlugin').ChunkRenderContext;
|
|
139
|
+
type Module = import('./Module');
|
|
140
|
+
type Source = import('webpack-sources').Source;
|
|
141
|
+
type RuntimeModule = import('./RuntimeModule');
|
|
142
|
+
type RenderContext =
|
|
143
|
+
import('./javascript/JavascriptModulesPlugin').RenderContext;
|
|
144
|
+
type CodeGenerationResults = import('./CodeGenerationResults');
|
|
145
|
+
declare const NUMBER_OF_IDENTIFIER_START_CHARS: number;
|
|
146
|
+
declare const NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS: number;
|
|
147
|
+
type OutputOptions = import('../declarations/WebpackOptions').Output;
|
|
148
|
+
type Chunk = import('./Chunk');
|
|
149
|
+
type ChunkGraph = import('./ChunkGraph');
|
|
150
|
+
type AssetInfo = import('./Compilation').AssetInfo;
|
|
151
|
+
type PathData = import('./Compilation').PathData;
|
|
152
|
+
type DependencyTemplates = import('./DependencyTemplates');
|
|
153
|
+
type ModuleGraph = import('./ModuleGraph');
|
|
154
|
+
type ModuleTemplate = import('./ModuleTemplate');
|
|
155
|
+
type RuntimeTemplate = import('./RuntimeTemplate');
|
|
156
|
+
type RenderManifestOptions = {
|
|
157
|
+
/**
|
|
158
|
+
* the chunk used to render
|
|
159
|
+
*/
|
|
160
|
+
chunk: Chunk;
|
|
161
|
+
hash: string;
|
|
162
|
+
fullHash: string;
|
|
163
|
+
outputOptions: OutputOptions;
|
|
164
|
+
codeGenerationResults: CodeGenerationResults;
|
|
165
|
+
moduleTemplates: {
|
|
166
|
+
javascript: ModuleTemplate;
|
|
167
|
+
};
|
|
168
|
+
dependencyTemplates: DependencyTemplates;
|
|
169
|
+
runtimeTemplate: RuntimeTemplate;
|
|
170
|
+
moduleGraph: ModuleGraph;
|
|
171
|
+
chunkGraph: ChunkGraph;
|
|
172
|
+
};
|
|
173
|
+
type RenderManifestEntry =
|
|
174
|
+
| RenderManifestEntryTemplated
|
|
175
|
+
| RenderManifestEntryStatic;
|
|
176
|
+
type RenderManifestEntryTemplated = {
|
|
177
|
+
render: () => Source;
|
|
178
|
+
filenameTemplate:
|
|
179
|
+
| string
|
|
180
|
+
| ((arg0: PathData, arg1: AssetInfo | undefined) => string);
|
|
181
|
+
pathOptions?: PathData | undefined;
|
|
182
|
+
info?: AssetInfo | undefined;
|
|
183
|
+
identifier: string;
|
|
184
|
+
hash?: string | undefined;
|
|
185
|
+
auxiliary?: boolean | undefined;
|
|
186
|
+
};
|
|
187
|
+
type RenderManifestEntryStatic = {
|
|
188
|
+
render: () => Source;
|
|
189
|
+
filename: string;
|
|
190
|
+
info: AssetInfo;
|
|
191
|
+
identifier: string;
|
|
192
|
+
hash?: string | undefined;
|
|
193
|
+
auxiliary?: boolean | undefined;
|
|
194
|
+
};
|
|
195
|
+
type HasId = {
|
|
196
|
+
id: number | string;
|
|
197
|
+
};
|
|
198
|
+
type ModuleFilterPredicate = (arg0: Module, arg1: number) => boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare class WebpackError extends Error {
|
|
2
|
+
/**
|
|
3
|
+
* Creates an instance of WebpackError.
|
|
4
|
+
*/
|
|
5
|
+
constructor(message?: string);
|
|
6
|
+
details?: string;
|
|
7
|
+
module?: null | Module;
|
|
8
|
+
loc?: SyntheticDependencyLocation | RealDependencyLocation;
|
|
9
|
+
hideStack?: boolean;
|
|
10
|
+
chunk?: Chunk;
|
|
11
|
+
file?: string;
|
|
12
|
+
serialize(__0: ObjectSerializerContext): void;
|
|
13
|
+
deserialize(__0: ObjectDeserializerContext): void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Create .stack property on a target object
|
|
17
|
+
*/
|
|
18
|
+
static captureStackTrace(
|
|
19
|
+
targetObject: object,
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
21
|
+
constructorOpt?: Function,
|
|
22
|
+
): void;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Optional override for formatting stack traces
|
|
26
|
+
*/
|
|
27
|
+
static prepareStackTrace?: (
|
|
28
|
+
err: Error,
|
|
29
|
+
stackTraces: NodeJS.CallSite[],
|
|
30
|
+
) => any;
|
|
31
|
+
static stackTraceLimit: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
export interface WebpackOptionsNormalized {
|
|
2
|
+
/**
|
|
3
|
+
* Set the value of `require.amd` and `define.amd`. Or disable AMD support.
|
|
4
|
+
*/
|
|
5
|
+
amd?: Amd;
|
|
6
|
+
/**
|
|
7
|
+
* Report the first error as a hard error instead of tolerating it.
|
|
8
|
+
*/
|
|
9
|
+
bail?: Bail;
|
|
10
|
+
/**
|
|
11
|
+
* Cache generated modules and chunks to improve performance for multiple incremental builds.
|
|
12
|
+
*/
|
|
13
|
+
cache: CacheOptionsNormalized;
|
|
14
|
+
/**
|
|
15
|
+
* The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.
|
|
16
|
+
*/
|
|
17
|
+
context?: Context;
|
|
18
|
+
/**
|
|
19
|
+
* References to other configurations to depend on.
|
|
20
|
+
*/
|
|
21
|
+
dependencies?: Dependencies;
|
|
22
|
+
/**
|
|
23
|
+
* Options for the webpack-dev-server.
|
|
24
|
+
*/
|
|
25
|
+
devServer?: DevServer;
|
|
26
|
+
/**
|
|
27
|
+
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
|
28
|
+
*/
|
|
29
|
+
devtool?: DevTool;
|
|
30
|
+
/**
|
|
31
|
+
* The entry point(s) of the compilation.
|
|
32
|
+
*/
|
|
33
|
+
entry: EntryNormalized;
|
|
34
|
+
/**
|
|
35
|
+
* Enables/Disables experiments (experimental features with relax SemVer compatibility).
|
|
36
|
+
*/
|
|
37
|
+
experiments: ExperimentsNormalized;
|
|
38
|
+
/**
|
|
39
|
+
* Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.
|
|
40
|
+
*/
|
|
41
|
+
externals: Externals;
|
|
42
|
+
/**
|
|
43
|
+
* Enable presets of externals for specific targets.
|
|
44
|
+
*/
|
|
45
|
+
externalsPresets: ExternalsPresets;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
|
|
48
|
+
*/
|
|
49
|
+
externalsType?: ExternalsType;
|
|
50
|
+
/**
|
|
51
|
+
* Ignore specific warnings.
|
|
52
|
+
*/
|
|
53
|
+
ignoreWarnings?: IgnoreWarningsNormalized;
|
|
54
|
+
/**
|
|
55
|
+
* Options for infrastructure level logging.
|
|
56
|
+
*/
|
|
57
|
+
infrastructureLogging: InfrastructureLogging;
|
|
58
|
+
/**
|
|
59
|
+
* Custom values available in the loader context.
|
|
60
|
+
*/
|
|
61
|
+
loader?: Loader;
|
|
62
|
+
/**
|
|
63
|
+
* Enable production optimizations or development hints.
|
|
64
|
+
*/
|
|
65
|
+
mode?: Mode;
|
|
66
|
+
/**
|
|
67
|
+
* Options affecting the normal modules (`NormalModuleFactory`).
|
|
68
|
+
*/
|
|
69
|
+
module: ModuleOptionsNormalized;
|
|
70
|
+
/**
|
|
71
|
+
* Name of the configuration. Used when loading multiple configurations.
|
|
72
|
+
*/
|
|
73
|
+
name?: Name;
|
|
74
|
+
/**
|
|
75
|
+
* Include polyfills or mocks for various node stuff.
|
|
76
|
+
*/
|
|
77
|
+
node: Node;
|
|
78
|
+
/**
|
|
79
|
+
* Enables/Disables integrated optimizations.
|
|
80
|
+
*/
|
|
81
|
+
optimization: Optimization;
|
|
82
|
+
/**
|
|
83
|
+
* Normalized options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.
|
|
84
|
+
*/
|
|
85
|
+
output: OutputNormalized;
|
|
86
|
+
/**
|
|
87
|
+
* The number of parallel processed modules in the compilation.
|
|
88
|
+
*/
|
|
89
|
+
parallelism?: Parallelism;
|
|
90
|
+
/**
|
|
91
|
+
* Configuration for web performance recommendations.
|
|
92
|
+
*/
|
|
93
|
+
performance?: Performance;
|
|
94
|
+
/**
|
|
95
|
+
* Add additional plugins to the compiler.
|
|
96
|
+
*/
|
|
97
|
+
plugins: Plugins;
|
|
98
|
+
/**
|
|
99
|
+
* Capture timing information for each module.
|
|
100
|
+
*/
|
|
101
|
+
profile?: Profile;
|
|
102
|
+
/**
|
|
103
|
+
* Store compiler state to a json file.
|
|
104
|
+
*/
|
|
105
|
+
recordsInputPath?: RecordsInputPath;
|
|
106
|
+
/**
|
|
107
|
+
* Load compiler state from a json file.
|
|
108
|
+
*/
|
|
109
|
+
recordsOutputPath?: RecordsOutputPath;
|
|
110
|
+
/**
|
|
111
|
+
* Options for the resolver.
|
|
112
|
+
*/
|
|
113
|
+
resolve: Resolve;
|
|
114
|
+
/**
|
|
115
|
+
* Options for the resolver when resolving loaders.
|
|
116
|
+
*/
|
|
117
|
+
resolveLoader: ResolveLoader;
|
|
118
|
+
/**
|
|
119
|
+
* Options affecting how file system snapshots are created and validated.
|
|
120
|
+
*/
|
|
121
|
+
snapshot: SnapshotOptions;
|
|
122
|
+
/**
|
|
123
|
+
* Stats options object or preset name.
|
|
124
|
+
*/
|
|
125
|
+
stats: StatsValue;
|
|
126
|
+
/**
|
|
127
|
+
* Environment to build for. An array of environments to build for all of them when possible.
|
|
128
|
+
*/
|
|
129
|
+
target?: Target;
|
|
130
|
+
/**
|
|
131
|
+
* Enter watch mode, which rebuilds on file change.
|
|
132
|
+
*/
|
|
133
|
+
watch?: Watch;
|
|
134
|
+
/**
|
|
135
|
+
* Options for the watcher.
|
|
136
|
+
*/
|
|
137
|
+
watchOptions: WatchOptions;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type WebpackOptions = WebpackOptionsNormalized;
|
|
@@ -0,0 +1,74 @@
|
|
|
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 consumed from share scope. When provided, property names are used to match requested modules in this compilation.
|
|
9
|
+
*/
|
|
10
|
+
export type Consumes = (ConsumesItem | ConsumesObject)[] | ConsumesObject;
|
|
11
|
+
/**
|
|
12
|
+
* A module that should be consumed from share scope.
|
|
13
|
+
*/
|
|
14
|
+
export type ConsumesItem = string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Options for consuming shared modules.
|
|
18
|
+
*/
|
|
19
|
+
export interface ConsumeSharedPluginOptions {
|
|
20
|
+
/**
|
|
21
|
+
* Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.
|
|
22
|
+
*/
|
|
23
|
+
consumes: Consumes;
|
|
24
|
+
/**
|
|
25
|
+
* Share scope name used for all consumed modules (defaults to 'default').
|
|
26
|
+
*/
|
|
27
|
+
shareScope?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Modules that should be consumed from 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 ConsumesObject {
|
|
33
|
+
/**
|
|
34
|
+
* Modules that should be consumed from share scope.
|
|
35
|
+
*/
|
|
36
|
+
[k: string]: ConsumesConfig | ConsumesItem;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Advanced configuration for modules that should be consumed from share scope.
|
|
40
|
+
*/
|
|
41
|
+
export interface ConsumesConfig {
|
|
42
|
+
/**
|
|
43
|
+
* Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.
|
|
44
|
+
*/
|
|
45
|
+
eager?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Fallback module if no shared module is found in share scope. Defaults to the property name.
|
|
48
|
+
*/
|
|
49
|
+
import?: false | ConsumesItem;
|
|
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
|
+
}
|