@module-federation/enhanced 0.0.3 → 0.0.4
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/dist/package.json +33 -0
- package/{src → dist/src}/index.d.ts +4 -0
- package/dist/src/index.js +32 -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 +19 -0
- package/dist/src/lib/container/AsyncBoundaryPlugin.js +172 -0
- package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerEntryDependency.d.ts +1 -1
- package/dist/src/lib/container/ContainerEntryDependency.js +37 -0
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerEntryModule.d.ts +2 -2
- package/dist/src/lib/container/ContainerEntryModule.js +230 -0
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerEntryModuleFactory.d.ts +2 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +30 -0
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerExposedDependency.d.ts +2 -2
- package/dist/src/lib/container/ContainerExposedDependency.js +49 -0
- package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerPlugin.d.ts +1 -1
- package/dist/src/lib/container/ContainerPlugin.js +85 -0
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/src/lib/container/ContainerReferencePlugin.js +100 -0
- package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackDependency.d.ts +1 -5
- package/dist/src/lib/container/FallbackDependency.js +47 -0
- package/dist/src/lib/container/FallbackDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackItemDependency.d.ts +2 -2
- package/dist/src/lib/container/FallbackItemDependency.js +26 -0
- package/dist/src/lib/container/FallbackItemDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackModule.d.ts +2 -3
- package/dist/src/lib/container/FallbackModule.js +152 -0
- package/dist/src/lib/container/FallbackModule.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackModuleFactory.d.ts +3 -2
- 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 +13 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js +70 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/ModuleFederationPlugin.d.ts +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.js +86 -0
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/RemoteModule.d.ts +2 -3
- package/dist/src/lib/container/RemoteModule.js +148 -0
- package/dist/src/lib/container/RemoteModule.js.map +1 -0
- package/{src → dist/src}/lib/container/RemoteRuntimeModule.d.ts +1 -1
- package/dist/src/lib/container/RemoteRuntimeModule.js +103 -0
- package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -0
- package/{src → dist/src}/lib/container/RemoteToExternalDependency.d.ts +2 -2
- package/dist/src/lib/container/RemoteToExternalDependency.js +26 -0
- package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/options.js +32 -42
- package/dist/src/lib/container/options.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedFallbackDependency.d.ts +2 -2
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +26 -0
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedModule.d.ts +1 -1
- package/dist/src/lib/sharing/ConsumeSharedModule.js +201 -0
- package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +238 -0
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedRuntimeModule.d.ts +1 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +247 -0
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideForSharedDependency.d.ts +2 -2
- package/dist/src/lib/sharing/ProvideForSharedDependency.js +27 -0
- package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedDependency.d.ts +1 -1
- package/dist/src/lib/sharing/ProvideSharedDependency.js +61 -0
- package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedModule.d.ts +5 -5
- package/dist/src/lib/sharing/ProvideSharedModule.js +163 -0
- package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedModuleFactory.d.ts +1 -1
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +30 -0
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +185 -0
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -0
- package/{src → dist/src}/lib/sharing/SharePlugin.d.ts +1 -1
- package/dist/src/lib/sharing/SharePlugin.js +76 -0
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ShareRuntimeModule.d.ts +1 -1
- package/dist/src/lib/sharing/ShareRuntimeModule.js +116 -0
- package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/resolveMatchedConfigs.d.ts +1 -1
- package/dist/src/lib/sharing/resolveMatchedConfigs.js +66 -0
- package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -0
- package/{src → dist/src}/lib/sharing/utils.d.ts +1 -1
- package/{src → dist/src}/lib/sharing/utils.js +94 -81
- package/dist/src/lib/sharing/utils.js.map +1 -0
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +5 -0
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -0
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -0
- package/{src → dist/src}/runtime/ModuleInfoRuntimeModule.d.ts +2 -1
- package/dist/src/runtime/ModuleInfoRuntimeModule.js +80 -0
- package/dist/src/runtime/ModuleInfoRuntimeModule.js.map +1 -0
- package/{src → dist/src}/runtime/ModuleInfoRuntimePlugin.d.ts +1 -1
- package/dist/src/runtime/ModuleInfoRuntimePlugin.js +24 -0
- package/dist/src/runtime/ModuleInfoRuntimePlugin.js.map +1 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +7 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +1668 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +437 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.js +529 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -0
- package/package.json +23 -8
- package/CHANGELOG.md +0 -111
- 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.js +0 -43
- 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 -45
- package/src/lib/container/AsyncBoundaryPlugin.js +0 -103
- 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.js +0 -43
- 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.js +0 -237
- 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.js +0 -32
- 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.js +0 -53
- 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.js +0 -88
- 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 -97
- 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.js +0 -55
- 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.js +0 -33
- 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.js +0 -149
- 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.js +0 -30
- package/src/lib/container/FallbackModuleFactory.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.js +0 -79
- 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.js +0 -147
- 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.js +0 -121
- package/src/lib/container/RemoteRuntimeModule.js.map +0 -1
- package/src/lib/container/RemoteToExternalDependency.d.js +0 -15
- package/src/lib/container/RemoteToExternalDependency.d.js.map +0 -1
- package/src/lib/container/RemoteToExternalDependency.js +0 -33
- 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.js +0 -33
- 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.js +0 -191
- 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.js +0 -217
- 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.js +0 -251
- 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.js +0 -34
- 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.js +0 -65
- 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.js +0 -159
- 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.js +0 -32
- 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.js +0 -165
- 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.js +0 -73
- 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.js +0 -117
- 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.js +0 -69
- 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.js.map +0 -1
- package/src/runtime/ModuleInfoRuntimeModule.js +0 -88
- package/src/runtime/ModuleInfoRuntimeModule.js.map +0 -1
- package/src/runtime/ModuleInfoRuntimePlugin.js +0 -29
- package/src/runtime/ModuleInfoRuntimePlugin.js.map +0 -1
- /package/{src → dist/src}/lib/Constants.d.ts +0 -0
- /package/{src → dist/src}/lib/container/options.d.ts +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 ScriptedAlchemy LLC (Zack Jackson)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@module-federation/enhanced",
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"types": "./dist/src/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"webpack": "^5.0.0"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"require": "./dist/src/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"typesVersions": {
|
|
24
|
+
"*": {
|
|
25
|
+
".": [
|
|
26
|
+
"./dist/src/index.d.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@module-federation/sdk": "workspace:*"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -2,6 +2,10 @@ export { ModuleInfoRuntimeModule } from './runtime/ModuleInfoRuntimeModule';
|
|
|
2
2
|
export { ModuleInfoRuntimePlugin } from './runtime/ModuleInfoRuntimePlugin';
|
|
3
3
|
export { default as ModuleFederationPlugin } from './lib/container/ModuleFederationPlugin';
|
|
4
4
|
export { default as ContainerReferencePlugin } from './lib/container/ContainerReferencePlugin';
|
|
5
|
+
export { default as SharePlugin } from './lib/sharing/SharePlugin';
|
|
5
6
|
export { default as ContainerPlugin } from './lib/container/ContainerPlugin';
|
|
6
7
|
export { default as ContainerEntryModule } from './lib/container/ContainerEntryModule';
|
|
7
8
|
export { default as AsyncBoundaryPlugin } from './lib/container/AsyncBoundaryPlugin';
|
|
9
|
+
export { isRequiredVersion, normalizeVersion, getDescriptionFile, getRequiredVersionFromDescriptionFile, } from './lib/sharing/utils';
|
|
10
|
+
export { parseOptions } from './lib/container/options';
|
|
11
|
+
export { default as HoistContainerReferencesPlugin } from './lib/container/HoistContainerReferencesPlugin';
|
|
@@ -0,0 +1,32 @@
|
|
|
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.HoistContainerReferencesPlugin = exports.parseOptions = exports.getRequiredVersionFromDescriptionFile = exports.getDescriptionFile = exports.normalizeVersion = exports.isRequiredVersion = exports.AsyncBoundaryPlugin = exports.ContainerEntryModule = exports.ContainerPlugin = exports.SharePlugin = exports.ContainerReferencePlugin = exports.ModuleFederationPlugin = exports.ModuleInfoRuntimePlugin = exports.ModuleInfoRuntimeModule = void 0;
|
|
7
|
+
var ModuleInfoRuntimeModule_1 = require("./runtime/ModuleInfoRuntimeModule");
|
|
8
|
+
Object.defineProperty(exports, "ModuleInfoRuntimeModule", { enumerable: true, get: function () { return ModuleInfoRuntimeModule_1.ModuleInfoRuntimeModule; } });
|
|
9
|
+
var ModuleInfoRuntimePlugin_1 = require("./runtime/ModuleInfoRuntimePlugin");
|
|
10
|
+
Object.defineProperty(exports, "ModuleInfoRuntimePlugin", { enumerable: true, get: function () { return ModuleInfoRuntimePlugin_1.ModuleInfoRuntimePlugin; } });
|
|
11
|
+
var ModuleFederationPlugin_1 = require("./lib/container/ModuleFederationPlugin");
|
|
12
|
+
Object.defineProperty(exports, "ModuleFederationPlugin", { enumerable: true, get: function () { return __importDefault(ModuleFederationPlugin_1).default; } });
|
|
13
|
+
var ContainerReferencePlugin_1 = require("./lib/container/ContainerReferencePlugin");
|
|
14
|
+
Object.defineProperty(exports, "ContainerReferencePlugin", { enumerable: true, get: function () { return __importDefault(ContainerReferencePlugin_1).default; } });
|
|
15
|
+
var SharePlugin_1 = require("./lib/sharing/SharePlugin");
|
|
16
|
+
Object.defineProperty(exports, "SharePlugin", { enumerable: true, get: function () { return __importDefault(SharePlugin_1).default; } });
|
|
17
|
+
var ContainerPlugin_1 = require("./lib/container/ContainerPlugin");
|
|
18
|
+
Object.defineProperty(exports, "ContainerPlugin", { enumerable: true, get: function () { return __importDefault(ContainerPlugin_1).default; } });
|
|
19
|
+
var ContainerEntryModule_1 = require("./lib/container/ContainerEntryModule");
|
|
20
|
+
Object.defineProperty(exports, "ContainerEntryModule", { enumerable: true, get: function () { return __importDefault(ContainerEntryModule_1).default; } });
|
|
21
|
+
var AsyncBoundaryPlugin_1 = require("./lib/container/AsyncBoundaryPlugin");
|
|
22
|
+
Object.defineProperty(exports, "AsyncBoundaryPlugin", { enumerable: true, get: function () { return __importDefault(AsyncBoundaryPlugin_1).default; } });
|
|
23
|
+
var utils_1 = require("./lib/sharing/utils");
|
|
24
|
+
Object.defineProperty(exports, "isRequiredVersion", { enumerable: true, get: function () { return utils_1.isRequiredVersion; } });
|
|
25
|
+
Object.defineProperty(exports, "normalizeVersion", { enumerable: true, get: function () { return utils_1.normalizeVersion; } });
|
|
26
|
+
Object.defineProperty(exports, "getDescriptionFile", { enumerable: true, get: function () { return utils_1.getDescriptionFile; } });
|
|
27
|
+
Object.defineProperty(exports, "getRequiredVersionFromDescriptionFile", { enumerable: true, get: function () { return utils_1.getRequiredVersionFromDescriptionFile; } });
|
|
28
|
+
var options_1 = require("./lib/container/options");
|
|
29
|
+
Object.defineProperty(exports, "parseOptions", { enumerable: true, get: function () { return options_1.parseOptions; } });
|
|
30
|
+
var HoistContainerReferencesPlugin_1 = require("./lib/container/HoistContainerReferencesPlugin");
|
|
31
|
+
Object.defineProperty(exports, "HoistContainerReferencesPlugin", { enumerable: true, get: function () { return __importDefault(HoistContainerReferencesPlugin_1).default; } });
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,6EAA4E;AAAnE,kIAAA,uBAAuB,OAAA;AAChC,6EAA4E;AAAnE,kIAAA,uBAAuB,OAAA;AAChC,iFAA2F;AAAlF,iJAAA,OAAO,OAA0B;AAC1C,qFAA+F;AAAtF,qJAAA,OAAO,OAA4B;AAC5C,yDAAmE;AAA1D,2HAAA,OAAO,OAAe;AAC/B,mEAA6E;AAApE,mIAAA,OAAO,OAAmB;AACnC,6EAAuF;AAA9E,6IAAA,OAAO,OAAwB;AACxC,2EAAqF;AAA5E,2IAAA,OAAO,OAAuB;AAEvC,6CAK6B;AAJ3B,0GAAA,iBAAiB,OAAA;AACjB,yGAAA,gBAAgB,OAAA;AAChB,2GAAA,kBAAkB,OAAA;AAClB,8HAAA,qCAAqC,OAAA;AAEvC,mDAAuD;AAA9C,uGAAA,YAAY,OAAA;AACrB,iGAA2G;AAAlG,iKAAA,OAAO,OAAkC"}
|
|
@@ -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
|
|
@@ -1,166 +1,216 @@
|
|
|
1
1
|
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
2
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
3
|
+
Author Tobias Koppers @sokra
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
5
6
|
/**
|
|
6
7
|
* the internal require function
|
|
7
|
-
*/
|
|
8
|
+
*/
|
|
9
|
+
exports.require = '__webpack_require__';
|
|
8
10
|
/**
|
|
9
11
|
* access to properties of the internal require function/object
|
|
10
|
-
*/
|
|
12
|
+
*/
|
|
13
|
+
exports.requireScope = '__webpack_require__.*';
|
|
11
14
|
/**
|
|
12
15
|
* the internal exports object
|
|
13
|
-
*/
|
|
16
|
+
*/
|
|
17
|
+
exports.exports = '__webpack_exports__';
|
|
14
18
|
/**
|
|
15
19
|
* top-level this need to be the exports object
|
|
16
|
-
*/
|
|
20
|
+
*/
|
|
21
|
+
exports.thisAsExports = 'top-level-this-exports';
|
|
17
22
|
/**
|
|
18
23
|
* runtime need to return the exports of the last entry module
|
|
19
|
-
*/
|
|
24
|
+
*/
|
|
25
|
+
exports.returnExportsFromRuntime = 'return-exports-from-runtime';
|
|
20
26
|
/**
|
|
21
27
|
* the internal module object
|
|
22
|
-
*/
|
|
28
|
+
*/
|
|
29
|
+
exports.module = 'module';
|
|
23
30
|
/**
|
|
24
31
|
* the internal module object
|
|
25
|
-
*/
|
|
32
|
+
*/
|
|
33
|
+
exports.moduleId = 'module.id';
|
|
26
34
|
/**
|
|
27
35
|
* the internal module object
|
|
28
|
-
*/
|
|
36
|
+
*/
|
|
37
|
+
exports.moduleLoaded = 'module.loaded';
|
|
29
38
|
/**
|
|
30
39
|
* the bundle public path
|
|
31
|
-
*/
|
|
40
|
+
*/
|
|
41
|
+
exports.publicPath = '__webpack_require__.p';
|
|
32
42
|
/**
|
|
33
43
|
* the module id of the entry point
|
|
34
|
-
*/
|
|
44
|
+
*/
|
|
45
|
+
exports.entryModuleId = '__webpack_require__.s';
|
|
35
46
|
/**
|
|
36
47
|
* the module cache
|
|
37
|
-
*/
|
|
48
|
+
*/
|
|
49
|
+
exports.moduleCache = '__webpack_require__.c';
|
|
38
50
|
/**
|
|
39
51
|
* the module functions
|
|
40
|
-
*/
|
|
52
|
+
*/
|
|
53
|
+
exports.moduleFactories = '__webpack_require__.m';
|
|
41
54
|
/**
|
|
42
55
|
* the module functions, with only write access
|
|
43
|
-
*/
|
|
56
|
+
*/
|
|
57
|
+
exports.moduleFactoriesAddOnly = '__webpack_require__.m (add only)';
|
|
44
58
|
/**
|
|
45
59
|
* the chunk ensure function
|
|
46
|
-
*/
|
|
60
|
+
*/
|
|
61
|
+
exports.ensureChunk = '__webpack_require__.e';
|
|
47
62
|
/**
|
|
48
63
|
* an object with handlers to ensure a chunk
|
|
49
|
-
*/
|
|
64
|
+
*/
|
|
65
|
+
exports.ensureChunkHandlers = '__webpack_require__.f';
|
|
50
66
|
/**
|
|
51
67
|
* a runtime requirement if ensureChunkHandlers should include loading of chunk needed for entries
|
|
52
|
-
*/
|
|
68
|
+
*/
|
|
69
|
+
exports.ensureChunkIncludeEntries = '__webpack_require__.f (include entries)';
|
|
53
70
|
/**
|
|
54
71
|
* the chunk prefetch function
|
|
55
|
-
*/
|
|
72
|
+
*/
|
|
73
|
+
exports.prefetchChunk = '__webpack_require__.E';
|
|
56
74
|
/**
|
|
57
75
|
* an object with handlers to prefetch a chunk
|
|
58
|
-
*/
|
|
76
|
+
*/
|
|
77
|
+
exports.prefetchChunkHandlers = '__webpack_require__.F';
|
|
59
78
|
/**
|
|
60
79
|
* the chunk preload function
|
|
61
|
-
*/
|
|
80
|
+
*/
|
|
81
|
+
exports.preloadChunk = '__webpack_require__.G';
|
|
62
82
|
/**
|
|
63
83
|
* an object with handlers to preload a chunk
|
|
64
|
-
*/
|
|
84
|
+
*/
|
|
85
|
+
exports.preloadChunkHandlers = '__webpack_require__.H';
|
|
65
86
|
/**
|
|
66
87
|
* the exported property define getters function
|
|
67
|
-
*/
|
|
88
|
+
*/
|
|
89
|
+
exports.definePropertyGetters = '__webpack_require__.d';
|
|
68
90
|
/**
|
|
69
91
|
* define compatibility on export
|
|
70
|
-
*/
|
|
92
|
+
*/
|
|
93
|
+
exports.makeNamespaceObject = '__webpack_require__.r';
|
|
71
94
|
/**
|
|
72
95
|
* create a fake namespace object
|
|
73
|
-
*/
|
|
96
|
+
*/
|
|
97
|
+
exports.createFakeNamespaceObject = '__webpack_require__.t';
|
|
74
98
|
/**
|
|
75
99
|
* compatibility get default export
|
|
76
|
-
*/
|
|
100
|
+
*/
|
|
101
|
+
exports.compatGetDefaultExport = '__webpack_require__.n';
|
|
77
102
|
/**
|
|
78
103
|
* harmony module decorator
|
|
79
|
-
*/
|
|
104
|
+
*/
|
|
105
|
+
exports.harmonyModuleDecorator = '__webpack_require__.hmd';
|
|
80
106
|
/**
|
|
81
107
|
* node.js module decorator
|
|
82
|
-
*/
|
|
108
|
+
*/
|
|
109
|
+
exports.nodeModuleDecorator = '__webpack_require__.nmd';
|
|
83
110
|
/**
|
|
84
111
|
* the webpack hash
|
|
85
|
-
*/
|
|
112
|
+
*/
|
|
113
|
+
exports.getFullHash = '__webpack_require__.h';
|
|
86
114
|
/**
|
|
87
115
|
* an object containing all installed WebAssembly.Instance export objects keyed by module id
|
|
88
|
-
*/
|
|
116
|
+
*/
|
|
117
|
+
exports.wasmInstances = '__webpack_require__.w';
|
|
89
118
|
/**
|
|
90
119
|
* instantiate a wasm instance from module exports object, id, hash and importsObject
|
|
91
|
-
*/
|
|
120
|
+
*/
|
|
121
|
+
exports.instantiateWasm = '__webpack_require__.v';
|
|
92
122
|
/**
|
|
93
123
|
* the uncaught error handler for the webpack runtime
|
|
94
|
-
*/
|
|
124
|
+
*/
|
|
125
|
+
exports.uncaughtErrorHandler = '__webpack_require__.oe';
|
|
95
126
|
/**
|
|
96
127
|
* the script nonce
|
|
97
|
-
*/
|
|
128
|
+
*/
|
|
129
|
+
exports.scriptNonce = '__webpack_require__.nc';
|
|
98
130
|
/**
|
|
99
131
|
* function to load a script tag.
|
|
100
132
|
* Arguments: (url: string, done: (event) => void), key?: string | number, chunkId?: string | number) => void
|
|
101
133
|
* done function is called when loading has finished or timeout occurred.
|
|
102
134
|
* It will attach to existing script tags with data-webpack == uniqueName + ":" + key or src == url.
|
|
103
|
-
*/
|
|
135
|
+
*/
|
|
136
|
+
exports.loadScript = '__webpack_require__.l';
|
|
104
137
|
/**
|
|
105
138
|
* function to promote a string to a TrustedScript using webpack's Trusted
|
|
106
139
|
* Types policy
|
|
107
140
|
* Arguments: (script: string) => TrustedScript
|
|
108
|
-
*/
|
|
141
|
+
*/
|
|
142
|
+
exports.createScript = '__webpack_require__.ts';
|
|
109
143
|
/**
|
|
110
144
|
* function to promote a string to a TrustedScriptURL using webpack's Trusted
|
|
111
145
|
* Types policy
|
|
112
146
|
* Arguments: (url: string) => TrustedScriptURL
|
|
113
|
-
*/
|
|
147
|
+
*/
|
|
148
|
+
exports.createScriptUrl = '__webpack_require__.tu';
|
|
114
149
|
/**
|
|
115
150
|
* function to return webpack's Trusted Types policy
|
|
116
151
|
* Arguments: () => TrustedTypePolicy
|
|
117
|
-
*/
|
|
152
|
+
*/
|
|
153
|
+
exports.getTrustedTypesPolicy = '__webpack_require__.tt';
|
|
118
154
|
/**
|
|
119
155
|
* a flag when a chunk has a fetch priority
|
|
120
|
-
*/
|
|
156
|
+
*/
|
|
157
|
+
exports.hasFetchPriority = 'has fetch priority';
|
|
121
158
|
/**
|
|
122
159
|
* the chunk name of the chunk with the runtime
|
|
123
|
-
*/
|
|
160
|
+
*/
|
|
161
|
+
exports.chunkName = '__webpack_require__.cn';
|
|
124
162
|
/**
|
|
125
163
|
* the runtime id of the current runtime
|
|
126
|
-
*/
|
|
164
|
+
*/
|
|
165
|
+
exports.runtimeId = '__webpack_require__.j';
|
|
127
166
|
/**
|
|
128
167
|
* the filename of the script part of the chunk
|
|
129
|
-
*/
|
|
168
|
+
*/
|
|
169
|
+
exports.getChunkScriptFilename = '__webpack_require__.u';
|
|
130
170
|
/**
|
|
131
171
|
* the filename of the css part of the chunk
|
|
132
|
-
*/
|
|
172
|
+
*/
|
|
173
|
+
exports.getChunkCssFilename = '__webpack_require__.k';
|
|
133
174
|
/**
|
|
134
175
|
* a flag when a module/chunk/tree has css modules
|
|
135
|
-
*/
|
|
176
|
+
*/
|
|
177
|
+
exports.hasCssModules = 'has css modules';
|
|
136
178
|
/**
|
|
137
179
|
* the filename of the script part of the hot update chunk
|
|
138
|
-
*/
|
|
180
|
+
*/
|
|
181
|
+
exports.getChunkUpdateScriptFilename = '__webpack_require__.hu';
|
|
139
182
|
/**
|
|
140
183
|
* the filename of the css part of the hot update chunk
|
|
141
|
-
*/
|
|
184
|
+
*/
|
|
185
|
+
exports.getChunkUpdateCssFilename = '__webpack_require__.hk';
|
|
142
186
|
/**
|
|
143
187
|
* startup signal from runtime
|
|
144
188
|
* This will be called when the runtime chunk has been loaded.
|
|
145
|
-
*/
|
|
189
|
+
*/
|
|
190
|
+
exports.startup = '__webpack_require__.x';
|
|
146
191
|
/**
|
|
147
192
|
* @deprecated
|
|
148
193
|
* creating a default startup function with the entry modules
|
|
149
|
-
*/
|
|
194
|
+
*/
|
|
195
|
+
exports.startupNoDefault = '__webpack_require__.x (no default handler)';
|
|
150
196
|
/**
|
|
151
197
|
* startup signal from runtime but only used to add logic after the startup
|
|
152
|
-
*/
|
|
198
|
+
*/
|
|
199
|
+
exports.startupOnlyAfter = '__webpack_require__.x (only after)';
|
|
153
200
|
/**
|
|
154
201
|
* startup signal from runtime but only used to add sync logic before the startup
|
|
155
|
-
*/
|
|
202
|
+
*/
|
|
203
|
+
exports.startupOnlyBefore = '__webpack_require__.x (only before)';
|
|
156
204
|
/**
|
|
157
205
|
* global callback functions for installing chunks
|
|
158
|
-
*/
|
|
206
|
+
*/
|
|
207
|
+
exports.chunkCallback = 'webpackChunk';
|
|
159
208
|
/**
|
|
160
209
|
* method to startup an entrypoint with needed chunks.
|
|
161
210
|
* Signature: (moduleId: Id, chunkIds: Id[]) => any.
|
|
162
211
|
* Returns the exports of the module or a Promise
|
|
163
|
-
*/
|
|
212
|
+
*/
|
|
213
|
+
exports.startupEntrypoint = '__webpack_require__.X';
|
|
164
214
|
/**
|
|
165
215
|
* register deferred code, which will run when certain
|
|
166
216
|
* chunks are loaded.
|
|
@@ -168,68 +218,88 @@
|
|
|
168
218
|
* Returned value will be returned directly when all chunks are already loaded
|
|
169
219
|
* When (priority & 1) it will wait for all other handlers with lower priority to
|
|
170
220
|
* be executed before itself is executed
|
|
171
|
-
*/
|
|
221
|
+
*/
|
|
222
|
+
exports.onChunksLoaded = '__webpack_require__.O';
|
|
172
223
|
/**
|
|
173
224
|
* method to install a chunk that was loaded somehow
|
|
174
225
|
* Signature: ({ id, ids, modules, runtime }) => void
|
|
175
|
-
*/
|
|
226
|
+
*/
|
|
227
|
+
exports.externalInstallChunk = '__webpack_require__.C';
|
|
176
228
|
/**
|
|
177
229
|
* interceptor for module executions
|
|
178
|
-
*/
|
|
230
|
+
*/
|
|
231
|
+
exports.interceptModuleExecution = '__webpack_require__.i';
|
|
179
232
|
/**
|
|
180
233
|
* the global object
|
|
181
|
-
*/
|
|
234
|
+
*/
|
|
235
|
+
exports.global = '__webpack_require__.g';
|
|
182
236
|
/**
|
|
183
237
|
* an object with all share scopes
|
|
184
|
-
*/
|
|
238
|
+
*/
|
|
239
|
+
exports.shareScopeMap = '__webpack_require__.S';
|
|
185
240
|
/**
|
|
186
241
|
* The sharing init sequence function (only runs once per share scope).
|
|
187
242
|
* Has one argument, the name of the share scope.
|
|
188
243
|
* Creates a share scope if not existing
|
|
189
|
-
*/
|
|
244
|
+
*/
|
|
245
|
+
exports.initializeSharing = '__webpack_require__.I';
|
|
190
246
|
/**
|
|
191
247
|
* The current scope when getting a module from a remote
|
|
192
|
-
*/
|
|
248
|
+
*/
|
|
249
|
+
exports.currentRemoteGetScope = '__webpack_require__.R';
|
|
193
250
|
/**
|
|
194
251
|
* the filename of the HMR manifest
|
|
195
|
-
*/
|
|
252
|
+
*/
|
|
253
|
+
exports.getUpdateManifestFilename = '__webpack_require__.hmrF';
|
|
196
254
|
/**
|
|
197
255
|
* function downloading the update manifest
|
|
198
|
-
*/
|
|
256
|
+
*/
|
|
257
|
+
exports.hmrDownloadManifest = '__webpack_require__.hmrM';
|
|
199
258
|
/**
|
|
200
259
|
* array with handler functions to download chunk updates
|
|
201
|
-
*/
|
|
260
|
+
*/
|
|
261
|
+
exports.hmrDownloadUpdateHandlers = '__webpack_require__.hmrC';
|
|
202
262
|
/**
|
|
203
263
|
* object with all hmr module data for all modules
|
|
204
|
-
*/
|
|
264
|
+
*/
|
|
265
|
+
exports.hmrModuleData = '__webpack_require__.hmrD';
|
|
205
266
|
/**
|
|
206
267
|
* array with handler functions when a module should be invalidated
|
|
207
|
-
*/
|
|
268
|
+
*/
|
|
269
|
+
exports.hmrInvalidateModuleHandlers = '__webpack_require__.hmrI';
|
|
208
270
|
/**
|
|
209
271
|
* the prefix for storing state of runtime modules when hmr is enabled
|
|
210
|
-
*/
|
|
272
|
+
*/
|
|
273
|
+
exports.hmrRuntimeStatePrefix = '__webpack_require__.hmrS';
|
|
211
274
|
/**
|
|
212
275
|
* the AMD define function
|
|
213
|
-
*/
|
|
276
|
+
*/
|
|
277
|
+
exports.amdDefine = '__webpack_require__.amdD';
|
|
214
278
|
/**
|
|
215
279
|
* the AMD options
|
|
216
|
-
*/
|
|
280
|
+
*/
|
|
281
|
+
exports.amdOptions = '__webpack_require__.amdO';
|
|
217
282
|
/**
|
|
218
283
|
* the System polyfill object
|
|
219
|
-
*/
|
|
284
|
+
*/
|
|
285
|
+
exports.system = '__webpack_require__.System';
|
|
220
286
|
/**
|
|
221
287
|
* the shorthand for Object.prototype.hasOwnProperty
|
|
222
288
|
* using of it decreases the compiled bundle size
|
|
223
|
-
*/
|
|
289
|
+
*/
|
|
290
|
+
exports.hasOwnProperty = '__webpack_require__.o';
|
|
224
291
|
/**
|
|
225
292
|
* the System.register context object
|
|
226
|
-
*/
|
|
293
|
+
*/
|
|
294
|
+
exports.systemContext = '__webpack_require__.y';
|
|
227
295
|
/**
|
|
228
296
|
* the baseURI of current document
|
|
229
|
-
*/
|
|
297
|
+
*/
|
|
298
|
+
exports.baseURI = '__webpack_require__.b';
|
|
230
299
|
/**
|
|
231
300
|
* a RelativeURL class when relative URLs are used
|
|
232
|
-
*/
|
|
301
|
+
*/
|
|
302
|
+
exports.relativeUrl = '__webpack_require__.U';
|
|
233
303
|
/**
|
|
234
304
|
* Creates an async module. The body function must be a async function.
|
|
235
305
|
* "module.exports" will be decorated with an AsyncModulePromise.
|
|
@@ -241,6 +311,6 @@
|
|
|
241
311
|
* body: (handleDependencies: (deps: AsyncModulePromise[]) => Promise<any[]> & () => void,
|
|
242
312
|
* hasAwaitAfterDependencies?: boolean
|
|
243
313
|
* ) => void
|
|
244
|
-
*/
|
|
245
|
-
|
|
314
|
+
*/
|
|
315
|
+
exports.asyncModule = '__webpack_require__.a';
|
|
246
316
|
//# sourceMappingURL=RuntimeGlobals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuntimeGlobals.js","sourceRoot":"","sources":["../../../src/lib/RuntimeGlobals.ts"],"names":[],"mappings":"AAAA;;;EAGE;A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OAAO,CAAC,SAAS,GAAG,0BAA0B,CAAC;AAE/C;;GAEG;AACH,OAAO,CAAC,UAAU,GAAG,0BAA0B,CAAC;AAEhD;;GAEG;AACH,OAAO,CAAC,MAAM,GAAG,4BAA4B,CAAC;AAE9C;;;GAGG;AACH,OAAO,CAAC,cAAc,GAAG,uBAAuB,CAAC;AAEjD;;GAEG;AACH,OAAO,CAAC,aAAa,GAAG,uBAAuB,CAAC;AAEhD;;GAEG;AACH,OAAO,CAAC,OAAO,GAAG,uBAAuB,CAAC;AAE1C;;GAEG;AACH,OAAO,CAAC,WAAW,GAAG,uBAAuB,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,OAAO,CAAC,WAAW,GAAG,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Compiler, Chunk, Module } from 'webpack';
|
|
2
|
+
interface Options {
|
|
3
|
+
eager?: RegExp | ((module: Module) => boolean);
|
|
4
|
+
excludeChunk?: (chunk: Chunk) => boolean;
|
|
5
|
+
}
|
|
6
|
+
declare class AsyncEntryStartupPlugin {
|
|
7
|
+
private _options;
|
|
8
|
+
private _runtimeChunks;
|
|
9
|
+
constructor(options?: Options);
|
|
10
|
+
apply(compiler: Compiler): void;
|
|
11
|
+
private _collectRuntimeChunks;
|
|
12
|
+
private _handleRenderStartup;
|
|
13
|
+
private _getChunkRuntime;
|
|
14
|
+
private _getRemotes;
|
|
15
|
+
private _getShared;
|
|
16
|
+
private _getInitialEntryModules;
|
|
17
|
+
private _getTemplateString;
|
|
18
|
+
}
|
|
19
|
+
export default AsyncEntryStartupPlugin;
|