@module-federation/enhanced 0.0.1-rc.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/CHANGELOG.md +99 -0
- package/README.md +11 -0
- package/global.d.js +14 -0
- package/global.d.js.map +1 -0
- package/package.json +18 -0
- package/pullts.d.ts +1 -0
- package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js +14 -0
- package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js.map +1 -0
- package/src/declarations/plugins/container/ContainerPlugin.d.js +12 -0
- package/src/declarations/plugins/container/ContainerPlugin.d.js.map +1 -0
- package/src/declarations/plugins/container/ContainerReferencePlugin.d.js +12 -0
- package/src/declarations/plugins/container/ContainerReferencePlugin.d.js.map +1 -0
- package/src/declarations/plugins/container/Dependency.d.js +14 -0
- package/src/declarations/plugins/container/Dependency.d.js.map +1 -0
- package/src/declarations/plugins/container/Module.d.js +3 -0
- package/src/declarations/plugins/container/Module.d.js.map +1 -0
- package/src/declarations/plugins/container/ModuleFactory.d.js +3 -0
- package/src/declarations/plugins/container/ModuleFactory.d.js.map +1 -0
- package/src/declarations/plugins/container/ModuleFederationPlugin.d.js +12 -0
- package/src/declarations/plugins/container/ModuleFederationPlugin.d.js.map +1 -0
- package/src/declarations/plugins/container/ObjectDeserializerContext.d.js +6 -0
- package/src/declarations/plugins/container/ObjectDeserializerContext.d.js.map +1 -0
- package/src/declarations/plugins/container/StaticExportsDependency.d.js +14 -0
- package/src/declarations/plugins/container/StaticExportsDependency.d.js.map +1 -0
- package/src/declarations/plugins/container/Template.d.js +4 -0
- package/src/declarations/plugins/container/Template.d.js.map +1 -0
- package/src/declarations/plugins/container/WebpackError.d.js +3 -0
- package/src/declarations/plugins/container/WebpackError.d.js.map +1 -0
- package/src/declarations/plugins/container/WebpackOptions.d.js +6 -0
- package/src/declarations/plugins/container/WebpackOptions.d.js.map +1 -0
- package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js +12 -0
- package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js.map +1 -0
- package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js +12 -0
- package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js.map +1 -0
- package/src/declarations/plugins/sharing/SharePlugin.d.js +12 -0
- package/src/declarations/plugins/sharing/SharePlugin.d.js.map +1 -0
- package/src/index.d.ts +7 -0
- package/src/index.js +43 -0
- package/src/index.js.map +1 -0
- package/src/lib/Constants.d.ts +117 -0
- package/src/lib/Constants.js +103 -0
- package/src/lib/Constants.js.map +1 -0
- package/src/lib/RuntimeGlobals.d.ts +1 -0
- package/src/lib/RuntimeGlobals.js +246 -0
- package/src/lib/RuntimeGlobals.js.map +1 -0
- package/src/lib/container/AsyncBoundaryPlugin.d.ts +45 -0
- package/src/lib/container/AsyncBoundaryPlugin.js +103 -0
- package/src/lib/container/AsyncBoundaryPlugin.js.map +1 -0
- package/src/lib/container/ContainerEntryDependency.d.js +4 -0
- package/src/lib/container/ContainerEntryDependency.d.js.map +1 -0
- package/src/lib/container/ContainerEntryDependency.d.ts +20 -0
- package/src/lib/container/ContainerEntryDependency.js +43 -0
- package/src/lib/container/ContainerEntryDependency.js.map +1 -0
- package/src/lib/container/ContainerEntryModule.d.js +14 -0
- package/src/lib/container/ContainerEntryModule.d.js.map +1 -0
- package/src/lib/container/ContainerEntryModule.d.ts +85 -0
- package/src/lib/container/ContainerEntryModule.js +237 -0
- package/src/lib/container/ContainerEntryModule.js.map +1 -0
- package/src/lib/container/ContainerEntryModuleFactory.d.js +4 -0
- package/src/lib/container/ContainerEntryModuleFactory.d.js.map +1 -0
- package/src/lib/container/ContainerEntryModuleFactory.d.ts +10 -0
- package/src/lib/container/ContainerEntryModuleFactory.js +32 -0
- package/src/lib/container/ContainerEntryModuleFactory.js.map +1 -0
- package/src/lib/container/ContainerExposedDependency.d.js +4 -0
- package/src/lib/container/ContainerExposedDependency.d.js.map +1 -0
- package/src/lib/container/ContainerExposedDependency.d.ts +26 -0
- package/src/lib/container/ContainerExposedDependency.js +53 -0
- package/src/lib/container/ContainerExposedDependency.js.map +1 -0
- package/src/lib/container/ContainerPlugin.d.js +4 -0
- package/src/lib/container/ContainerPlugin.d.js.map +1 -0
- package/src/lib/container/ContainerPlugin.d.ts +11 -0
- package/src/lib/container/ContainerPlugin.js +88 -0
- package/src/lib/container/ContainerPlugin.js.map +1 -0
- package/src/lib/container/ContainerReferencePlugin.d.js +4 -0
- package/src/lib/container/ContainerReferencePlugin.d.js.map +1 -0
- package/src/lib/container/ContainerReferencePlugin.d.ts +14 -0
- package/src/lib/container/ContainerReferencePlugin.js +97 -0
- package/src/lib/container/ContainerReferencePlugin.js.map +1 -0
- package/src/lib/container/FallbackDependency.d.js +14 -0
- package/src/lib/container/FallbackDependency.d.js.map +1 -0
- package/src/lib/container/FallbackDependency.d.ts +25 -0
- package/src/lib/container/FallbackDependency.js +55 -0
- package/src/lib/container/FallbackDependency.js.map +1 -0
- package/src/lib/container/FallbackItemDependency.d.js +4 -0
- package/src/lib/container/FallbackItemDependency.d.js.map +1 -0
- package/src/lib/container/FallbackItemDependency.d.ts +10 -0
- package/src/lib/container/FallbackItemDependency.js +33 -0
- package/src/lib/container/FallbackItemDependency.js.map +1 -0
- package/src/lib/container/FallbackModule.d.js +4 -0
- package/src/lib/container/FallbackModule.d.js.map +1 -0
- package/src/lib/container/FallbackModule.d.ts +73 -0
- package/src/lib/container/FallbackModule.js +149 -0
- package/src/lib/container/FallbackModule.js.map +1 -0
- package/src/lib/container/FallbackModuleFactory.d.js +4 -0
- package/src/lib/container/FallbackModuleFactory.d.js.map +1 -0
- package/src/lib/container/FallbackModuleFactory.d.ts +10 -0
- package/src/lib/container/FallbackModuleFactory.js +30 -0
- package/src/lib/container/FallbackModuleFactory.js.map +1 -0
- package/src/lib/container/ModuleFederationPlugin.d.js +4 -0
- package/src/lib/container/ModuleFederationPlugin.d.js.map +1 -0
- package/src/lib/container/ModuleFederationPlugin.d.ts +16 -0
- package/src/lib/container/ModuleFederationPlugin.js +79 -0
- package/src/lib/container/ModuleFederationPlugin.js.map +1 -0
- package/src/lib/container/ModuleFederationPluginTypes.d.js +12 -0
- package/src/lib/container/ModuleFederationPluginTypes.d.js.map +1 -0
- package/src/lib/container/RemoteModule.d.js +13 -0
- package/src/lib/container/RemoteModule.d.js.map +1 -0
- package/src/lib/container/RemoteModule.d.ts +76 -0
- package/src/lib/container/RemoteModule.js +147 -0
- package/src/lib/container/RemoteModule.js.map +1 -0
- package/src/lib/container/RemoteRuntimeModule.d.js +13 -0
- package/src/lib/container/RemoteRuntimeModule.d.js.map +1 -0
- package/src/lib/container/RemoteRuntimeModule.d.ts +9 -0
- package/src/lib/container/RemoteRuntimeModule.js +121 -0
- package/src/lib/container/RemoteRuntimeModule.js.map +1 -0
- package/src/lib/container/RemoteToExternalDependency.d.js +15 -0
- package/src/lib/container/RemoteToExternalDependency.d.js.map +1 -0
- package/src/lib/container/RemoteToExternalDependency.d.ts +10 -0
- package/src/lib/container/RemoteToExternalDependency.js +33 -0
- package/src/lib/container/RemoteToExternalDependency.js.map +1 -0
- package/src/lib/container/options.d.js +6 -0
- package/src/lib/container/options.d.js.map +1 -0
- package/src/lib/container/options.d.ts +18 -0
- package/src/lib/container/options.js +91 -0
- package/src/lib/container/options.js.map +1 -0
- package/src/lib/inversion/ContainerInversionPlugin.d.ts +1 -0
- package/src/lib/inversion/ContainerInversionPlugin.js +3 -0
- package/src/lib/inversion/ContainerInversionPlugin.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js +4 -0
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +10 -0
- package/src/lib/sharing/ConsumeSharedFallbackDependency.js +33 -0
- package/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedModule.d.js +4 -0
- package/src/lib/sharing/ConsumeSharedModule.d.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedModule.d.ts +106 -0
- package/src/lib/sharing/ConsumeSharedModule.js +191 -0
- package/src/lib/sharing/ConsumeSharedModule.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedPlugin.d.js +4 -0
- package/src/lib/sharing/ConsumeSharedPlugin.d.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedPlugin.d.ts +8 -0
- package/src/lib/sharing/ConsumeSharedPlugin.js +217 -0
- package/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js +4 -0
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js.map +1 -0
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +13 -0
- package/src/lib/sharing/ConsumeSharedRuntimeModule.js +251 -0
- package/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -0
- package/src/lib/sharing/ProvideForSharedDependency.d.js +4 -0
- package/src/lib/sharing/ProvideForSharedDependency.d.js.map +1 -0
- package/src/lib/sharing/ProvideForSharedDependency.d.ts +11 -0
- package/src/lib/sharing/ProvideForSharedDependency.js +34 -0
- package/src/lib/sharing/ProvideForSharedDependency.js.map +1 -0
- package/src/lib/sharing/ProvideSharedDependency.d.js +14 -0
- package/src/lib/sharing/ProvideSharedDependency.d.js.map +1 -0
- package/src/lib/sharing/ProvideSharedDependency.d.ts +32 -0
- package/src/lib/sharing/ProvideSharedDependency.js +65 -0
- package/src/lib/sharing/ProvideSharedDependency.js.map +1 -0
- package/src/lib/sharing/ProvideSharedModule.d.js +4 -0
- package/src/lib/sharing/ProvideSharedModule.d.js.map +1 -0
- package/src/lib/sharing/ProvideSharedModule.d.ts +79 -0
- package/src/lib/sharing/ProvideSharedModule.js +159 -0
- package/src/lib/sharing/ProvideSharedModule.js.map +1 -0
- package/src/lib/sharing/ProvideSharedModuleFactory.d.js +4 -0
- package/src/lib/sharing/ProvideSharedModuleFactory.d.js.map +1 -0
- package/src/lib/sharing/ProvideSharedModuleFactory.d.ts +11 -0
- package/src/lib/sharing/ProvideSharedModuleFactory.js +32 -0
- package/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -0
- package/src/lib/sharing/ProvideSharedPlugin.d.js +4 -0
- package/src/lib/sharing/ProvideSharedPlugin.d.js.map +1 -0
- package/src/lib/sharing/ProvideSharedPlugin.d.ts +34 -0
- package/src/lib/sharing/ProvideSharedPlugin.js +165 -0
- package/src/lib/sharing/ProvideSharedPlugin.js.map +1 -0
- package/src/lib/sharing/SharePlugin.d.js +4 -0
- package/src/lib/sharing/SharePlugin.d.js.map +1 -0
- package/src/lib/sharing/SharePlugin.d.ts +15 -0
- package/src/lib/sharing/SharePlugin.js +73 -0
- package/src/lib/sharing/SharePlugin.js.map +1 -0
- package/src/lib/sharing/ShareRuntimeModule.d.js +4 -0
- package/src/lib/sharing/ShareRuntimeModule.d.js.map +1 -0
- package/src/lib/sharing/ShareRuntimeModule.d.ts +9 -0
- package/src/lib/sharing/ShareRuntimeModule.js +117 -0
- package/src/lib/sharing/ShareRuntimeModule.js.map +1 -0
- package/src/lib/sharing/resolveMatchedConfigs.d.js +6 -0
- package/src/lib/sharing/resolveMatchedConfigs.d.js.map +1 -0
- package/src/lib/sharing/resolveMatchedConfigs.d.ts +8 -0
- package/src/lib/sharing/resolveMatchedConfigs.js +69 -0
- package/src/lib/sharing/resolveMatchedConfigs.js.map +1 -0
- package/src/lib/sharing/utils.d.js +6 -0
- package/src/lib/sharing/utils.d.js.map +1 -0
- package/src/lib/sharing/utils.d.ts +33 -0
- package/src/lib/sharing/utils.js +331 -0
- package/src/lib/sharing/utils.js.map +1 -0
- package/src/runtime/ModuleInfoRuntimeModule.d.ts +16 -0
- package/src/runtime/ModuleInfoRuntimeModule.js +88 -0
- package/src/runtime/ModuleInfoRuntimeModule.js.map +1 -0
- package/src/runtime/ModuleInfoRuntimePlugin.d.ts +5 -0
- package/src/runtime/ModuleInfoRuntimePlugin.js +29 -0
- package/src/runtime/ModuleInfoRuntimePlugin.js.map +1 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @type {Readonly<"javascript/auto">}
|
|
3
|
+
*/
|
|
4
|
+
export declare const JAVASCRIPT_MODULE_TYPE_AUTO: Readonly<'javascript/auto'>;
|
|
5
|
+
/**
|
|
6
|
+
* @type {Readonly<"javascript/dynamic">}
|
|
7
|
+
*/
|
|
8
|
+
export declare const JAVASCRIPT_MODULE_TYPE_DYNAMIC: Readonly<'javascript/dynamic'>;
|
|
9
|
+
/**
|
|
10
|
+
* @type {Readonly<"javascript/esm">}
|
|
11
|
+
* This is the module type used for _strict_ ES Module syntax. This means that all legacy formats
|
|
12
|
+
* that webpack supports (CommonJS, AMD, SystemJS) are not supported.
|
|
13
|
+
*/
|
|
14
|
+
export declare const JAVASCRIPT_MODULE_TYPE_ESM: Readonly<'javascript/esm'>;
|
|
15
|
+
/**
|
|
16
|
+
* @type {Readonly<"json">}
|
|
17
|
+
* This is the module type used for JSON files. JSON files are always parsed as ES Module.
|
|
18
|
+
*/
|
|
19
|
+
export declare const JSON_MODULE_TYPE: Readonly<'json'>;
|
|
20
|
+
/**
|
|
21
|
+
* @type {Readonly<"webassembly/async">}
|
|
22
|
+
* This is the module type used for WebAssembly modules. In webpack 5 they are always treated as async modules.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare const WEBASSEMBLY_MODULE_TYPE_ASYNC: Readonly<'webassembly/async'>;
|
|
26
|
+
/**
|
|
27
|
+
* @type {Readonly<"webassembly/sync">}
|
|
28
|
+
* This is the module type used for WebAssembly modules. In webpack 4 they are always treated as sync modules.
|
|
29
|
+
* There is a legacy option to support this usage in webpack 5 and up.
|
|
30
|
+
*/
|
|
31
|
+
export declare const WEBASSEMBLY_MODULE_TYPE_SYNC: Readonly<'webassembly/sync'>;
|
|
32
|
+
/**
|
|
33
|
+
* @type {Readonly<"css">}
|
|
34
|
+
* This is the module type used for CSS files.
|
|
35
|
+
*/
|
|
36
|
+
export declare const CSS_MODULE_TYPE: Readonly<'css'>;
|
|
37
|
+
/**
|
|
38
|
+
* @type {Readonly<"css/global">}
|
|
39
|
+
* This is the module type used for CSS modules files where you need to use `:local` in selector list to hash classes.
|
|
40
|
+
*/
|
|
41
|
+
export declare const CSS_MODULE_TYPE_GLOBAL: Readonly<'css/global'>;
|
|
42
|
+
/**
|
|
43
|
+
* @type {Readonly<"css/module">}
|
|
44
|
+
* This is the module type used for CSS modules files, by default all classes are hashed.
|
|
45
|
+
*/
|
|
46
|
+
export declare const CSS_MODULE_TYPE_MODULE: Readonly<'css/module'>;
|
|
47
|
+
/**
|
|
48
|
+
* @type {Readonly<"css/auto">}
|
|
49
|
+
* 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.`.
|
|
50
|
+
*/
|
|
51
|
+
export declare const CSS_MODULE_TYPE_AUTO: Readonly<'css/auto'>;
|
|
52
|
+
/**
|
|
53
|
+
* @type {Readonly<"asset">}
|
|
54
|
+
* This is the module type used for automatically choosing between `asset/inline`, `asset/resource` based on asset size limit (8096).
|
|
55
|
+
*/
|
|
56
|
+
export declare const ASSET_MODULE_TYPE: Readonly<'asset'>;
|
|
57
|
+
/**
|
|
58
|
+
* @type {Readonly<"asset/inline">}
|
|
59
|
+
* This is the module type used for assets that are inlined as a data URI. This is the equivalent of `url-loader`.
|
|
60
|
+
*/
|
|
61
|
+
export declare const ASSET_MODULE_TYPE_INLINE: Readonly<'asset/inline'>;
|
|
62
|
+
/**
|
|
63
|
+
* @type {Readonly<"asset/resource">}
|
|
64
|
+
* This is the module type used for assets that are copied to the output directory. This is the equivalent of `file-loader`.
|
|
65
|
+
*/
|
|
66
|
+
export declare const ASSET_MODULE_TYPE_RESOURCE: Readonly<'asset/resource'>;
|
|
67
|
+
/**
|
|
68
|
+
* @type {Readonly<"asset/source">}
|
|
69
|
+
* This is the module type used for assets that are imported as source code. This is the equivalent of `raw-loader`.
|
|
70
|
+
*/
|
|
71
|
+
export declare const ASSET_MODULE_TYPE_SOURCE: Readonly<'asset/source'>;
|
|
72
|
+
/**
|
|
73
|
+
* @type {Readonly<"asset/raw-data-url">}
|
|
74
|
+
* TODO: Document what this asset type is for. See css-loader tests for its usage.
|
|
75
|
+
*/
|
|
76
|
+
export declare const ASSET_MODULE_TYPE_RAW_DATA_URL: Readonly<'asset/raw-data-url'>;
|
|
77
|
+
/**
|
|
78
|
+
* @type {Readonly<"runtime">}
|
|
79
|
+
* This is the module type used for the webpack runtime abstractions.
|
|
80
|
+
*/
|
|
81
|
+
export declare const WEBPACK_MODULE_TYPE_RUNTIME: Readonly<'runtime'>;
|
|
82
|
+
/**
|
|
83
|
+
* @type {Readonly<"fallback-module">}
|
|
84
|
+
* This is the module type used for the ModuleFederation feature's FallbackModule class.
|
|
85
|
+
* TODO: Document this better.
|
|
86
|
+
*/
|
|
87
|
+
export declare const WEBPACK_MODULE_TYPE_FALLBACK: Readonly<'fallback-module'>;
|
|
88
|
+
/**
|
|
89
|
+
* @type {Readonly<"remote-module">}
|
|
90
|
+
* This is the module type used for the ModuleFederation feature's RemoteModule class.
|
|
91
|
+
* TODO: Document this better.
|
|
92
|
+
*/
|
|
93
|
+
export declare const WEBPACK_MODULE_TYPE_REMOTE: Readonly<'remote-module'>;
|
|
94
|
+
/**
|
|
95
|
+
* @type {Readonly<"provide-module">}
|
|
96
|
+
* This is the module type used for the ModuleFederation feature's ProvideModule class.
|
|
97
|
+
* TODO: Document this better.
|
|
98
|
+
*/
|
|
99
|
+
export declare const WEBPACK_MODULE_TYPE_PROVIDE: Readonly<'provide-module'>;
|
|
100
|
+
/**
|
|
101
|
+
* @type {Readonly<"consume-shared-module">}
|
|
102
|
+
* This is the module type used for the ModuleFederation feature's ConsumeSharedModule class.
|
|
103
|
+
*/
|
|
104
|
+
export declare const WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE: Readonly<'consume-shared-module'>;
|
|
105
|
+
/**
|
|
106
|
+
* @type {Readonly<"lazy-compilation-proxy">}
|
|
107
|
+
* Module type used for `experiments.lazyCompilation` feature. See `LazyCompilationPlugin` for more information.
|
|
108
|
+
*/
|
|
109
|
+
export declare const WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY: Readonly<'lazy-compilation-proxy'>;
|
|
110
|
+
/** @typedef {"javascript/auto" | "javascript/dynamic" | "javascript/esm"} JavaScriptModuleTypes */
|
|
111
|
+
/** @typedef {"json"} JSONModuleType */
|
|
112
|
+
/** @typedef {"webassembly/async" | "webassembly/sync"} WebAssemblyModuleTypes */
|
|
113
|
+
/** @typedef {"css" | "css/global" | "css/module"} CSSModuleTypes */
|
|
114
|
+
/** @typedef {"asset" | "asset/inline" | "asset/resource" | "asset/source" | "asset/raw-data-url"} AssetModuleTypes */
|
|
115
|
+
/** @typedef {"runtime" | "fallback-module" | "remote-module" | "provide-module" | "consume-shared-module" | "lazy-compilation-proxy"} WebpackModuleTypes */
|
|
116
|
+
/** @typedef {string} UnknownModuleTypes */
|
|
117
|
+
/** @typedef {JavaScriptModuleTypes | JSONModuleType | WebAssemblyModuleTypes | CSSModuleTypes | AssetModuleTypes | WebpackModuleTypes | UnknownModuleTypes} ModuleTypes */
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
3
|
+
Author Sean Larkin @TheLarkInn
|
|
4
|
+
*/ /**
|
|
5
|
+
* @type {Readonly<"javascript/auto">}
|
|
6
|
+
*/ "use strict";
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
function _export(target, all) {
|
|
11
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: all[name]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
_export(exports, {
|
|
17
|
+
JAVASCRIPT_MODULE_TYPE_AUTO: function() {
|
|
18
|
+
return JAVASCRIPT_MODULE_TYPE_AUTO;
|
|
19
|
+
},
|
|
20
|
+
JAVASCRIPT_MODULE_TYPE_DYNAMIC: function() {
|
|
21
|
+
return JAVASCRIPT_MODULE_TYPE_DYNAMIC;
|
|
22
|
+
},
|
|
23
|
+
JAVASCRIPT_MODULE_TYPE_ESM: function() {
|
|
24
|
+
return JAVASCRIPT_MODULE_TYPE_ESM;
|
|
25
|
+
},
|
|
26
|
+
JSON_MODULE_TYPE: function() {
|
|
27
|
+
return JSON_MODULE_TYPE;
|
|
28
|
+
},
|
|
29
|
+
WEBASSEMBLY_MODULE_TYPE_ASYNC: function() {
|
|
30
|
+
return WEBASSEMBLY_MODULE_TYPE_ASYNC;
|
|
31
|
+
},
|
|
32
|
+
WEBASSEMBLY_MODULE_TYPE_SYNC: function() {
|
|
33
|
+
return WEBASSEMBLY_MODULE_TYPE_SYNC;
|
|
34
|
+
},
|
|
35
|
+
CSS_MODULE_TYPE: function() {
|
|
36
|
+
return CSS_MODULE_TYPE;
|
|
37
|
+
},
|
|
38
|
+
CSS_MODULE_TYPE_GLOBAL: function() {
|
|
39
|
+
return CSS_MODULE_TYPE_GLOBAL;
|
|
40
|
+
},
|
|
41
|
+
CSS_MODULE_TYPE_MODULE: function() {
|
|
42
|
+
return CSS_MODULE_TYPE_MODULE;
|
|
43
|
+
},
|
|
44
|
+
CSS_MODULE_TYPE_AUTO: function() {
|
|
45
|
+
return CSS_MODULE_TYPE_AUTO;
|
|
46
|
+
},
|
|
47
|
+
ASSET_MODULE_TYPE: function() {
|
|
48
|
+
return ASSET_MODULE_TYPE;
|
|
49
|
+
},
|
|
50
|
+
ASSET_MODULE_TYPE_INLINE: function() {
|
|
51
|
+
return ASSET_MODULE_TYPE_INLINE;
|
|
52
|
+
},
|
|
53
|
+
ASSET_MODULE_TYPE_RESOURCE: function() {
|
|
54
|
+
return ASSET_MODULE_TYPE_RESOURCE;
|
|
55
|
+
},
|
|
56
|
+
ASSET_MODULE_TYPE_SOURCE: function() {
|
|
57
|
+
return ASSET_MODULE_TYPE_SOURCE;
|
|
58
|
+
},
|
|
59
|
+
ASSET_MODULE_TYPE_RAW_DATA_URL: function() {
|
|
60
|
+
return ASSET_MODULE_TYPE_RAW_DATA_URL;
|
|
61
|
+
},
|
|
62
|
+
WEBPACK_MODULE_TYPE_RUNTIME: function() {
|
|
63
|
+
return WEBPACK_MODULE_TYPE_RUNTIME;
|
|
64
|
+
},
|
|
65
|
+
WEBPACK_MODULE_TYPE_FALLBACK: function() {
|
|
66
|
+
return WEBPACK_MODULE_TYPE_FALLBACK;
|
|
67
|
+
},
|
|
68
|
+
WEBPACK_MODULE_TYPE_REMOTE: function() {
|
|
69
|
+
return WEBPACK_MODULE_TYPE_REMOTE;
|
|
70
|
+
},
|
|
71
|
+
WEBPACK_MODULE_TYPE_PROVIDE: function() {
|
|
72
|
+
return WEBPACK_MODULE_TYPE_PROVIDE;
|
|
73
|
+
},
|
|
74
|
+
WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE: function() {
|
|
75
|
+
return WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE;
|
|
76
|
+
},
|
|
77
|
+
WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY: function() {
|
|
78
|
+
return WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const JAVASCRIPT_MODULE_TYPE_AUTO = 'javascript/auto';
|
|
82
|
+
const JAVASCRIPT_MODULE_TYPE_DYNAMIC = 'javascript/dynamic';
|
|
83
|
+
const JAVASCRIPT_MODULE_TYPE_ESM = 'javascript/esm';
|
|
84
|
+
const JSON_MODULE_TYPE = 'json';
|
|
85
|
+
const WEBASSEMBLY_MODULE_TYPE_ASYNC = 'webassembly/async';
|
|
86
|
+
const WEBASSEMBLY_MODULE_TYPE_SYNC = 'webassembly/sync';
|
|
87
|
+
const CSS_MODULE_TYPE = 'css';
|
|
88
|
+
const CSS_MODULE_TYPE_GLOBAL = 'css/global';
|
|
89
|
+
const CSS_MODULE_TYPE_MODULE = 'css/module';
|
|
90
|
+
const CSS_MODULE_TYPE_AUTO = 'css/auto';
|
|
91
|
+
const ASSET_MODULE_TYPE = 'asset';
|
|
92
|
+
const ASSET_MODULE_TYPE_INLINE = 'asset/inline';
|
|
93
|
+
const ASSET_MODULE_TYPE_RESOURCE = 'asset/resource';
|
|
94
|
+
const ASSET_MODULE_TYPE_SOURCE = 'asset/source';
|
|
95
|
+
const ASSET_MODULE_TYPE_RAW_DATA_URL = 'asset/raw-data-url';
|
|
96
|
+
const WEBPACK_MODULE_TYPE_RUNTIME = 'runtime';
|
|
97
|
+
const WEBPACK_MODULE_TYPE_FALLBACK = 'fallback-module';
|
|
98
|
+
const WEBPACK_MODULE_TYPE_REMOTE = 'remote-module';
|
|
99
|
+
const WEBPACK_MODULE_TYPE_PROVIDE = 'provide-module';
|
|
100
|
+
const WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE = 'consume-shared-module';
|
|
101
|
+
const WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY = 'lazy-compilation-proxy'; /** @typedef {"javascript/auto" | "javascript/dynamic" | "javascript/esm"} JavaScriptModuleTypes */ /** @typedef {"json"} JSONModuleType */ /** @typedef {"webassembly/async" | "webassembly/sync"} WebAssemblyModuleTypes */ /** @typedef {"css" | "css/global" | "css/module"} CSSModuleTypes */ /** @typedef {"asset" | "asset/inline" | "asset/resource" | "asset/source" | "asset/raw-data-url"} AssetModuleTypes */ /** @typedef {"runtime" | "fallback-module" | "remote-module" | "provide-module" | "consume-shared-module" | "lazy-compilation-proxy"} WebpackModuleTypes */ /** @typedef {string} UnknownModuleTypes */ /** @typedef {JavaScriptModuleTypes | JSONModuleType | WebAssemblyModuleTypes | CSSModuleTypes | AssetModuleTypes | WebpackModuleTypes | UnknownModuleTypes} ModuleTypes */
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=Constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../packages/enhanced/src/lib/Constants.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Sean Larkin @TheLarkInn\n*/\n\n/**\n * @type {Readonly<\"javascript/auto\">}\n */\nexport const JAVASCRIPT_MODULE_TYPE_AUTO: Readonly<'javascript/auto'> =\n 'javascript/auto';\n\n/**\n * @type {Readonly<\"javascript/dynamic\">}\n */\nexport const JAVASCRIPT_MODULE_TYPE_DYNAMIC: Readonly<'javascript/dynamic'> =\n 'javascript/dynamic';\n\n/**\n * @type {Readonly<\"javascript/esm\">}\n * This is the module type used for _strict_ ES Module syntax. This means that all legacy formats\n * that webpack supports (CommonJS, AMD, SystemJS) are not supported.\n */\nexport const JAVASCRIPT_MODULE_TYPE_ESM: Readonly<'javascript/esm'> =\n 'javascript/esm';\n\n/**\n * @type {Readonly<\"json\">}\n * This is the module type used for JSON files. JSON files are always parsed as ES Module.\n */\nexport const JSON_MODULE_TYPE: Readonly<'json'> = 'json';\n\n/**\n * @type {Readonly<\"webassembly/async\">}\n * This is the module type used for WebAssembly modules. In webpack 5 they are always treated as async modules.\n *\n */\nexport const WEBASSEMBLY_MODULE_TYPE_ASYNC: Readonly<'webassembly/async'> =\n 'webassembly/async';\n\n/**\n * @type {Readonly<\"webassembly/sync\">}\n * This is the module type used for WebAssembly modules. In webpack 4 they are always treated as sync modules.\n * There is a legacy option to support this usage in webpack 5 and up.\n */\nexport const WEBASSEMBLY_MODULE_TYPE_SYNC: Readonly<'webassembly/sync'> =\n 'webassembly/sync';\n\n/**\n * @type {Readonly<\"css\">}\n * This is the module type used for CSS files.\n */\nexport const CSS_MODULE_TYPE: Readonly<'css'> = 'css';\n\n/**\n * @type {Readonly<\"css/global\">}\n * This is the module type used for CSS modules files where you need to use `:local` in selector list to hash classes.\n */\nexport const CSS_MODULE_TYPE_GLOBAL: Readonly<'css/global'> = 'css/global';\n\n/**\n * @type {Readonly<\"css/module\">}\n * This is the module type used for CSS modules files, by default all classes are hashed.\n */\nexport const CSS_MODULE_TYPE_MODULE: Readonly<'css/module'> = 'css/module';\n\n/**\n * @type {Readonly<\"css/auto\">}\n * 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.`.\n */\nexport const CSS_MODULE_TYPE_AUTO: Readonly<'css/auto'> = 'css/auto';\n\n/**\n * @type {Readonly<\"asset\">}\n * This is the module type used for automatically choosing between `asset/inline`, `asset/resource` based on asset size limit (8096).\n */\nexport const ASSET_MODULE_TYPE: Readonly<'asset'> = 'asset';\n\n/**\n * @type {Readonly<\"asset/inline\">}\n * This is the module type used for assets that are inlined as a data URI. This is the equivalent of `url-loader`.\n */\nexport const ASSET_MODULE_TYPE_INLINE: Readonly<'asset/inline'> =\n 'asset/inline';\n\n/**\n * @type {Readonly<\"asset/resource\">}\n * This is the module type used for assets that are copied to the output directory. This is the equivalent of `file-loader`.\n */\nexport const ASSET_MODULE_TYPE_RESOURCE: Readonly<'asset/resource'> =\n 'asset/resource';\n\n/**\n * @type {Readonly<\"asset/source\">}\n * This is the module type used for assets that are imported as source code. This is the equivalent of `raw-loader`.\n */\nexport const ASSET_MODULE_TYPE_SOURCE: Readonly<'asset/source'> =\n 'asset/source';\n\n/**\n * @type {Readonly<\"asset/raw-data-url\">}\n * TODO: Document what this asset type is for. See css-loader tests for its usage.\n */\nexport const ASSET_MODULE_TYPE_RAW_DATA_URL: Readonly<'asset/raw-data-url'> =\n 'asset/raw-data-url';\n\n/**\n * @type {Readonly<\"runtime\">}\n * This is the module type used for the webpack runtime abstractions.\n */\nexport const WEBPACK_MODULE_TYPE_RUNTIME: Readonly<'runtime'> = 'runtime';\n\n/**\n * @type {Readonly<\"fallback-module\">}\n * This is the module type used for the ModuleFederation feature's FallbackModule class.\n * TODO: Document this better.\n */\nexport const WEBPACK_MODULE_TYPE_FALLBACK: Readonly<'fallback-module'> =\n 'fallback-module';\n\n/**\n * @type {Readonly<\"remote-module\">}\n * This is the module type used for the ModuleFederation feature's RemoteModule class.\n * TODO: Document this better.\n */\nexport const WEBPACK_MODULE_TYPE_REMOTE: Readonly<'remote-module'> =\n 'remote-module';\n\n/**\n * @type {Readonly<\"provide-module\">}\n * This is the module type used for the ModuleFederation feature's ProvideModule class.\n * TODO: Document this better.\n */\nexport const WEBPACK_MODULE_TYPE_PROVIDE: Readonly<'provide-module'> =\n 'provide-module';\n\n/**\n * @type {Readonly<\"consume-shared-module\">}\n * This is the module type used for the ModuleFederation feature's ConsumeSharedModule class.\n */\nexport const WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE: Readonly<'consume-shared-module'> =\n 'consume-shared-module';\n\n/**\n * @type {Readonly<\"lazy-compilation-proxy\">}\n * Module type used for `experiments.lazyCompilation` feature. See `LazyCompilationPlugin` for more information.\n */\nexport const WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY: Readonly<'lazy-compilation-proxy'> =\n 'lazy-compilation-proxy';\n\n/** @typedef {\"javascript/auto\" | \"javascript/dynamic\" | \"javascript/esm\"} JavaScriptModuleTypes */\n/** @typedef {\"json\"} JSONModuleType */\n/** @typedef {\"webassembly/async\" | \"webassembly/sync\"} WebAssemblyModuleTypes */\n/** @typedef {\"css\" | \"css/global\" | \"css/module\"} CSSModuleTypes */\n/** @typedef {\"asset\" | \"asset/inline\" | \"asset/resource\" | \"asset/source\" | \"asset/raw-data-url\"} AssetModuleTypes */\n/** @typedef {\"runtime\" | \"fallback-module\" | \"remote-module\" | \"provide-module\" | \"consume-shared-module\" | \"lazy-compilation-proxy\"} WebpackModuleTypes */\n/** @typedef {string} UnknownModuleTypes */\n/** @typedef {JavaScriptModuleTypes | JSONModuleType | WebAssemblyModuleTypes | CSSModuleTypes | AssetModuleTypes | WebpackModuleTypes | UnknownModuleTypes} ModuleTypes */\n"],"names":["JAVASCRIPT_MODULE_TYPE_AUTO","JAVASCRIPT_MODULE_TYPE_DYNAMIC","JAVASCRIPT_MODULE_TYPE_ESM","JSON_MODULE_TYPE","WEBASSEMBLY_MODULE_TYPE_ASYNC","WEBASSEMBLY_MODULE_TYPE_SYNC","CSS_MODULE_TYPE","CSS_MODULE_TYPE_GLOBAL","CSS_MODULE_TYPE_MODULE","CSS_MODULE_TYPE_AUTO","ASSET_MODULE_TYPE","ASSET_MODULE_TYPE_INLINE","ASSET_MODULE_TYPE_RESOURCE","ASSET_MODULE_TYPE_SOURCE","ASSET_MODULE_TYPE_RAW_DATA_URL","WEBPACK_MODULE_TYPE_RUNTIME","WEBPACK_MODULE_TYPE_FALLBACK","WEBPACK_MODULE_TYPE_REMOTE","WEBPACK_MODULE_TYPE_PROVIDE","WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE","WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY"],"mappings":"AAAA;;;AAGA,GAEA;;CAEC;;;;;;;;;;;IACYA,2BAA2B;eAA3BA;;IAMAC,8BAA8B;eAA9BA;;IAQAC,0BAA0B;eAA1BA;;IAOAC,gBAAgB;eAAhBA;;IAOAC,6BAA6B;eAA7BA;;IAQAC,4BAA4B;eAA5BA;;IAOAC,eAAe;eAAfA;;IAMAC,sBAAsB;eAAtBA;;IAMAC,sBAAsB;eAAtBA;;IAMAC,oBAAoB;eAApBA;;IAMAC,iBAAiB;eAAjBA;;IAMAC,wBAAwB;eAAxBA;;IAOAC,0BAA0B;eAA1BA;;IAOAC,wBAAwB;eAAxBA;;IAOAC,8BAA8B;eAA9BA;;IAOAC,2BAA2B;eAA3BA;;IAOAC,4BAA4B;eAA5BA;;IAQAC,0BAA0B;eAA1BA;;IAQAC,2BAA2B;eAA3BA;;IAOAC,yCAAyC;eAAzCA;;IAOAC,0CAA0C;eAA1CA;;;AA1IN,MAAMpB,8BACX;AAKK,MAAMC,iCACX;AAOK,MAAMC,6BACX;AAMK,MAAMC,mBAAqC;AAO3C,MAAMC,gCACX;AAOK,MAAMC,+BACX;AAMK,MAAMC,kBAAmC;AAMzC,MAAMC,yBAAiD;AAMvD,MAAMC,yBAAiD;AAMvD,MAAMC,uBAA6C;AAMnD,MAAMC,oBAAuC;AAM7C,MAAMC,2BACX;AAMK,MAAMC,6BACX;AAMK,MAAMC,2BACX;AAMK,MAAMC,iCACX;AAMK,MAAMC,8BAAmD;AAOzD,MAAMC,+BACX;AAOK,MAAMC,6BACX;AAOK,MAAMC,8BACX;AAMK,MAAMC,4CACX;AAMK,MAAMC,6CACX,0BAEF,iGAAiG,IACjG,qCAAqC,IACrC,+EAA+E,IAC/E,kEAAkE,IAClE,oHAAoH,IACpH,0JAA0J,IAC1J,yCAAyC,IACzC,yKAAyK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/*
|
|
2
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
3
|
+
Author Tobias Koppers @sokra
|
|
4
|
+
*/ 'use strict';
|
|
5
|
+
/**
|
|
6
|
+
* the internal require function
|
|
7
|
+
*/ exports.require = '__webpack_require__';
|
|
8
|
+
/**
|
|
9
|
+
* access to properties of the internal require function/object
|
|
10
|
+
*/ exports.requireScope = '__webpack_require__.*';
|
|
11
|
+
/**
|
|
12
|
+
* the internal exports object
|
|
13
|
+
*/ exports.exports = '__webpack_exports__';
|
|
14
|
+
/**
|
|
15
|
+
* top-level this need to be the exports object
|
|
16
|
+
*/ exports.thisAsExports = 'top-level-this-exports';
|
|
17
|
+
/**
|
|
18
|
+
* runtime need to return the exports of the last entry module
|
|
19
|
+
*/ exports.returnExportsFromRuntime = 'return-exports-from-runtime';
|
|
20
|
+
/**
|
|
21
|
+
* the internal module object
|
|
22
|
+
*/ exports.module = 'module';
|
|
23
|
+
/**
|
|
24
|
+
* the internal module object
|
|
25
|
+
*/ exports.moduleId = 'module.id';
|
|
26
|
+
/**
|
|
27
|
+
* the internal module object
|
|
28
|
+
*/ exports.moduleLoaded = 'module.loaded';
|
|
29
|
+
/**
|
|
30
|
+
* the bundle public path
|
|
31
|
+
*/ exports.publicPath = '__webpack_require__.p';
|
|
32
|
+
/**
|
|
33
|
+
* the module id of the entry point
|
|
34
|
+
*/ exports.entryModuleId = '__webpack_require__.s';
|
|
35
|
+
/**
|
|
36
|
+
* the module cache
|
|
37
|
+
*/ exports.moduleCache = '__webpack_require__.c';
|
|
38
|
+
/**
|
|
39
|
+
* the module functions
|
|
40
|
+
*/ exports.moduleFactories = '__webpack_require__.m';
|
|
41
|
+
/**
|
|
42
|
+
* the module functions, with only write access
|
|
43
|
+
*/ exports.moduleFactoriesAddOnly = '__webpack_require__.m (add only)';
|
|
44
|
+
/**
|
|
45
|
+
* the chunk ensure function
|
|
46
|
+
*/ exports.ensureChunk = '__webpack_require__.e';
|
|
47
|
+
/**
|
|
48
|
+
* an object with handlers to ensure a chunk
|
|
49
|
+
*/ exports.ensureChunkHandlers = '__webpack_require__.f';
|
|
50
|
+
/**
|
|
51
|
+
* a runtime requirement if ensureChunkHandlers should include loading of chunk needed for entries
|
|
52
|
+
*/ exports.ensureChunkIncludeEntries = '__webpack_require__.f (include entries)';
|
|
53
|
+
/**
|
|
54
|
+
* the chunk prefetch function
|
|
55
|
+
*/ exports.prefetchChunk = '__webpack_require__.E';
|
|
56
|
+
/**
|
|
57
|
+
* an object with handlers to prefetch a chunk
|
|
58
|
+
*/ exports.prefetchChunkHandlers = '__webpack_require__.F';
|
|
59
|
+
/**
|
|
60
|
+
* the chunk preload function
|
|
61
|
+
*/ exports.preloadChunk = '__webpack_require__.G';
|
|
62
|
+
/**
|
|
63
|
+
* an object with handlers to preload a chunk
|
|
64
|
+
*/ exports.preloadChunkHandlers = '__webpack_require__.H';
|
|
65
|
+
/**
|
|
66
|
+
* the exported property define getters function
|
|
67
|
+
*/ exports.definePropertyGetters = '__webpack_require__.d';
|
|
68
|
+
/**
|
|
69
|
+
* define compatibility on export
|
|
70
|
+
*/ exports.makeNamespaceObject = '__webpack_require__.r';
|
|
71
|
+
/**
|
|
72
|
+
* create a fake namespace object
|
|
73
|
+
*/ exports.createFakeNamespaceObject = '__webpack_require__.t';
|
|
74
|
+
/**
|
|
75
|
+
* compatibility get default export
|
|
76
|
+
*/ exports.compatGetDefaultExport = '__webpack_require__.n';
|
|
77
|
+
/**
|
|
78
|
+
* harmony module decorator
|
|
79
|
+
*/ exports.harmonyModuleDecorator = '__webpack_require__.hmd';
|
|
80
|
+
/**
|
|
81
|
+
* node.js module decorator
|
|
82
|
+
*/ exports.nodeModuleDecorator = '__webpack_require__.nmd';
|
|
83
|
+
/**
|
|
84
|
+
* the webpack hash
|
|
85
|
+
*/ exports.getFullHash = '__webpack_require__.h';
|
|
86
|
+
/**
|
|
87
|
+
* an object containing all installed WebAssembly.Instance export objects keyed by module id
|
|
88
|
+
*/ exports.wasmInstances = '__webpack_require__.w';
|
|
89
|
+
/**
|
|
90
|
+
* instantiate a wasm instance from module exports object, id, hash and importsObject
|
|
91
|
+
*/ exports.instantiateWasm = '__webpack_require__.v';
|
|
92
|
+
/**
|
|
93
|
+
* the uncaught error handler for the webpack runtime
|
|
94
|
+
*/ exports.uncaughtErrorHandler = '__webpack_require__.oe';
|
|
95
|
+
/**
|
|
96
|
+
* the script nonce
|
|
97
|
+
*/ exports.scriptNonce = '__webpack_require__.nc';
|
|
98
|
+
/**
|
|
99
|
+
* function to load a script tag.
|
|
100
|
+
* Arguments: (url: string, done: (event) => void), key?: string | number, chunkId?: string | number) => void
|
|
101
|
+
* done function is called when loading has finished or timeout occurred.
|
|
102
|
+
* It will attach to existing script tags with data-webpack == uniqueName + ":" + key or src == url.
|
|
103
|
+
*/ exports.loadScript = '__webpack_require__.l';
|
|
104
|
+
/**
|
|
105
|
+
* function to promote a string to a TrustedScript using webpack's Trusted
|
|
106
|
+
* Types policy
|
|
107
|
+
* Arguments: (script: string) => TrustedScript
|
|
108
|
+
*/ exports.createScript = '__webpack_require__.ts';
|
|
109
|
+
/**
|
|
110
|
+
* function to promote a string to a TrustedScriptURL using webpack's Trusted
|
|
111
|
+
* Types policy
|
|
112
|
+
* Arguments: (url: string) => TrustedScriptURL
|
|
113
|
+
*/ exports.createScriptUrl = '__webpack_require__.tu';
|
|
114
|
+
/**
|
|
115
|
+
* function to return webpack's Trusted Types policy
|
|
116
|
+
* Arguments: () => TrustedTypePolicy
|
|
117
|
+
*/ exports.getTrustedTypesPolicy = '__webpack_require__.tt';
|
|
118
|
+
/**
|
|
119
|
+
* a flag when a chunk has a fetch priority
|
|
120
|
+
*/ exports.hasFetchPriority = 'has fetch priority';
|
|
121
|
+
/**
|
|
122
|
+
* the chunk name of the chunk with the runtime
|
|
123
|
+
*/ exports.chunkName = '__webpack_require__.cn';
|
|
124
|
+
/**
|
|
125
|
+
* the runtime id of the current runtime
|
|
126
|
+
*/ exports.runtimeId = '__webpack_require__.j';
|
|
127
|
+
/**
|
|
128
|
+
* the filename of the script part of the chunk
|
|
129
|
+
*/ exports.getChunkScriptFilename = '__webpack_require__.u';
|
|
130
|
+
/**
|
|
131
|
+
* the filename of the css part of the chunk
|
|
132
|
+
*/ exports.getChunkCssFilename = '__webpack_require__.k';
|
|
133
|
+
/**
|
|
134
|
+
* a flag when a module/chunk/tree has css modules
|
|
135
|
+
*/ exports.hasCssModules = 'has css modules';
|
|
136
|
+
/**
|
|
137
|
+
* the filename of the script part of the hot update chunk
|
|
138
|
+
*/ exports.getChunkUpdateScriptFilename = '__webpack_require__.hu';
|
|
139
|
+
/**
|
|
140
|
+
* the filename of the css part of the hot update chunk
|
|
141
|
+
*/ exports.getChunkUpdateCssFilename = '__webpack_require__.hk';
|
|
142
|
+
/**
|
|
143
|
+
* startup signal from runtime
|
|
144
|
+
* This will be called when the runtime chunk has been loaded.
|
|
145
|
+
*/ exports.startup = '__webpack_require__.x';
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated
|
|
148
|
+
* creating a default startup function with the entry modules
|
|
149
|
+
*/ exports.startupNoDefault = '__webpack_require__.x (no default handler)';
|
|
150
|
+
/**
|
|
151
|
+
* startup signal from runtime but only used to add logic after the startup
|
|
152
|
+
*/ exports.startupOnlyAfter = '__webpack_require__.x (only after)';
|
|
153
|
+
/**
|
|
154
|
+
* startup signal from runtime but only used to add sync logic before the startup
|
|
155
|
+
*/ exports.startupOnlyBefore = '__webpack_require__.x (only before)';
|
|
156
|
+
/**
|
|
157
|
+
* global callback functions for installing chunks
|
|
158
|
+
*/ exports.chunkCallback = 'webpackChunk';
|
|
159
|
+
/**
|
|
160
|
+
* method to startup an entrypoint with needed chunks.
|
|
161
|
+
* Signature: (moduleId: Id, chunkIds: Id[]) => any.
|
|
162
|
+
* Returns the exports of the module or a Promise
|
|
163
|
+
*/ exports.startupEntrypoint = '__webpack_require__.X';
|
|
164
|
+
/**
|
|
165
|
+
* register deferred code, which will run when certain
|
|
166
|
+
* chunks are loaded.
|
|
167
|
+
* Signature: (chunkIds: Id[], fn: () => any, priority: int >= 0 = 0) => any
|
|
168
|
+
* Returned value will be returned directly when all chunks are already loaded
|
|
169
|
+
* When (priority & 1) it will wait for all other handlers with lower priority to
|
|
170
|
+
* be executed before itself is executed
|
|
171
|
+
*/ exports.onChunksLoaded = '__webpack_require__.O';
|
|
172
|
+
/**
|
|
173
|
+
* method to install a chunk that was loaded somehow
|
|
174
|
+
* Signature: ({ id, ids, modules, runtime }) => void
|
|
175
|
+
*/ exports.externalInstallChunk = '__webpack_require__.C';
|
|
176
|
+
/**
|
|
177
|
+
* interceptor for module executions
|
|
178
|
+
*/ exports.interceptModuleExecution = '__webpack_require__.i';
|
|
179
|
+
/**
|
|
180
|
+
* the global object
|
|
181
|
+
*/ exports.global = '__webpack_require__.g';
|
|
182
|
+
/**
|
|
183
|
+
* an object with all share scopes
|
|
184
|
+
*/ exports.shareScopeMap = '__webpack_require__.S';
|
|
185
|
+
/**
|
|
186
|
+
* The sharing init sequence function (only runs once per share scope).
|
|
187
|
+
* Has one argument, the name of the share scope.
|
|
188
|
+
* Creates a share scope if not existing
|
|
189
|
+
*/ exports.initializeSharing = '__webpack_require__.I';
|
|
190
|
+
/**
|
|
191
|
+
* The current scope when getting a module from a remote
|
|
192
|
+
*/ exports.currentRemoteGetScope = '__webpack_require__.R';
|
|
193
|
+
/**
|
|
194
|
+
* the filename of the HMR manifest
|
|
195
|
+
*/ exports.getUpdateManifestFilename = '__webpack_require__.hmrF';
|
|
196
|
+
/**
|
|
197
|
+
* function downloading the update manifest
|
|
198
|
+
*/ exports.hmrDownloadManifest = '__webpack_require__.hmrM';
|
|
199
|
+
/**
|
|
200
|
+
* array with handler functions to download chunk updates
|
|
201
|
+
*/ exports.hmrDownloadUpdateHandlers = '__webpack_require__.hmrC';
|
|
202
|
+
/**
|
|
203
|
+
* object with all hmr module data for all modules
|
|
204
|
+
*/ exports.hmrModuleData = '__webpack_require__.hmrD';
|
|
205
|
+
/**
|
|
206
|
+
* array with handler functions when a module should be invalidated
|
|
207
|
+
*/ exports.hmrInvalidateModuleHandlers = '__webpack_require__.hmrI';
|
|
208
|
+
/**
|
|
209
|
+
* the prefix for storing state of runtime modules when hmr is enabled
|
|
210
|
+
*/ exports.hmrRuntimeStatePrefix = '__webpack_require__.hmrS';
|
|
211
|
+
/**
|
|
212
|
+
* the AMD define function
|
|
213
|
+
*/ exports.amdDefine = '__webpack_require__.amdD';
|
|
214
|
+
/**
|
|
215
|
+
* the AMD options
|
|
216
|
+
*/ exports.amdOptions = '__webpack_require__.amdO';
|
|
217
|
+
/**
|
|
218
|
+
* the System polyfill object
|
|
219
|
+
*/ exports.system = '__webpack_require__.System';
|
|
220
|
+
/**
|
|
221
|
+
* the shorthand for Object.prototype.hasOwnProperty
|
|
222
|
+
* using of it decreases the compiled bundle size
|
|
223
|
+
*/ exports.hasOwnProperty = '__webpack_require__.o';
|
|
224
|
+
/**
|
|
225
|
+
* the System.register context object
|
|
226
|
+
*/ exports.systemContext = '__webpack_require__.y';
|
|
227
|
+
/**
|
|
228
|
+
* the baseURI of current document
|
|
229
|
+
*/ exports.baseURI = '__webpack_require__.b';
|
|
230
|
+
/**
|
|
231
|
+
* a RelativeURL class when relative URLs are used
|
|
232
|
+
*/ exports.relativeUrl = '__webpack_require__.U';
|
|
233
|
+
/**
|
|
234
|
+
* Creates an async module. The body function must be a async function.
|
|
235
|
+
* "module.exports" will be decorated with an AsyncModulePromise.
|
|
236
|
+
* The body function will be called.
|
|
237
|
+
* To handle async dependencies correctly do this: "([a, b, c] = await handleDependencies([a, b, c]));".
|
|
238
|
+
* If "hasAwaitAfterDependencies" is truthy, "handleDependencies()" must be called at the end of the body function.
|
|
239
|
+
* Signature: function(
|
|
240
|
+
* module: Module,
|
|
241
|
+
* body: (handleDependencies: (deps: AsyncModulePromise[]) => Promise<any[]> & () => void,
|
|
242
|
+
* hasAwaitAfterDependencies?: boolean
|
|
243
|
+
* ) => void
|
|
244
|
+
*/ exports.asyncModule = '__webpack_require__.a';
|
|
245
|
+
|
|
246
|
+
//# sourceMappingURL=RuntimeGlobals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../packages/enhanced/src/lib/RuntimeGlobals.ts"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\n'use strict';\n\n/**\n * the internal require function\n */\nexports.require = '__webpack_require__';\n\n/**\n * access to properties of the internal require function/object\n */\nexports.requireScope = '__webpack_require__.*';\n\n/**\n * the internal exports object\n */\nexports.exports = '__webpack_exports__';\n\n/**\n * top-level this need to be the exports object\n */\nexports.thisAsExports = 'top-level-this-exports';\n\n/**\n * runtime need to return the exports of the last entry module\n */\nexports.returnExportsFromRuntime = 'return-exports-from-runtime';\n\n/**\n * the internal module object\n */\nexports.module = 'module';\n\n/**\n * the internal module object\n */\nexports.moduleId = 'module.id';\n\n/**\n * the internal module object\n */\nexports.moduleLoaded = 'module.loaded';\n\n/**\n * the bundle public path\n */\nexports.publicPath = '__webpack_require__.p';\n\n/**\n * the module id of the entry point\n */\nexports.entryModuleId = '__webpack_require__.s';\n\n/**\n * the module cache\n */\nexports.moduleCache = '__webpack_require__.c';\n\n/**\n * the module functions\n */\nexports.moduleFactories = '__webpack_require__.m';\n\n/**\n * the module functions, with only write access\n */\nexports.moduleFactoriesAddOnly = '__webpack_require__.m (add only)';\n\n/**\n * the chunk ensure function\n */\nexports.ensureChunk = '__webpack_require__.e';\n\n/**\n * an object with handlers to ensure a chunk\n */\nexports.ensureChunkHandlers = '__webpack_require__.f';\n\n/**\n * a runtime requirement if ensureChunkHandlers should include loading of chunk needed for entries\n */\nexports.ensureChunkIncludeEntries = '__webpack_require__.f (include entries)';\n\n/**\n * the chunk prefetch function\n */\nexports.prefetchChunk = '__webpack_require__.E';\n\n/**\n * an object with handlers to prefetch a chunk\n */\nexports.prefetchChunkHandlers = '__webpack_require__.F';\n\n/**\n * the chunk preload function\n */\nexports.preloadChunk = '__webpack_require__.G';\n\n/**\n * an object with handlers to preload a chunk\n */\nexports.preloadChunkHandlers = '__webpack_require__.H';\n\n/**\n * the exported property define getters function\n */\nexports.definePropertyGetters = '__webpack_require__.d';\n\n/**\n * define compatibility on export\n */\nexports.makeNamespaceObject = '__webpack_require__.r';\n\n/**\n * create a fake namespace object\n */\nexports.createFakeNamespaceObject = '__webpack_require__.t';\n\n/**\n * compatibility get default export\n */\nexports.compatGetDefaultExport = '__webpack_require__.n';\n\n/**\n * harmony module decorator\n */\nexports.harmonyModuleDecorator = '__webpack_require__.hmd';\n\n/**\n * node.js module decorator\n */\nexports.nodeModuleDecorator = '__webpack_require__.nmd';\n\n/**\n * the webpack hash\n */\nexports.getFullHash = '__webpack_require__.h';\n\n/**\n * an object containing all installed WebAssembly.Instance export objects keyed by module id\n */\nexports.wasmInstances = '__webpack_require__.w';\n\n/**\n * instantiate a wasm instance from module exports object, id, hash and importsObject\n */\nexports.instantiateWasm = '__webpack_require__.v';\n\n/**\n * the uncaught error handler for the webpack runtime\n */\nexports.uncaughtErrorHandler = '__webpack_require__.oe';\n\n/**\n * the script nonce\n */\nexports.scriptNonce = '__webpack_require__.nc';\n\n/**\n * function to load a script tag.\n * Arguments: (url: string, done: (event) => void), key?: string | number, chunkId?: string | number) => void\n * done function is called when loading has finished or timeout occurred.\n * It will attach to existing script tags with data-webpack == uniqueName + \":\" + key or src == url.\n */\nexports.loadScript = '__webpack_require__.l';\n\n/**\n * function to promote a string to a TrustedScript using webpack's Trusted\n * Types policy\n * Arguments: (script: string) => TrustedScript\n */\nexports.createScript = '__webpack_require__.ts';\n\n/**\n * function to promote a string to a TrustedScriptURL using webpack's Trusted\n * Types policy\n * Arguments: (url: string) => TrustedScriptURL\n */\nexports.createScriptUrl = '__webpack_require__.tu';\n\n/**\n * function to return webpack's Trusted Types policy\n * Arguments: () => TrustedTypePolicy\n */\nexports.getTrustedTypesPolicy = '__webpack_require__.tt';\n\n/**\n * a flag when a chunk has a fetch priority\n */\nexports.hasFetchPriority = 'has fetch priority';\n\n/**\n * the chunk name of the chunk with the runtime\n */\nexports.chunkName = '__webpack_require__.cn';\n\n/**\n * the runtime id of the current runtime\n */\nexports.runtimeId = '__webpack_require__.j';\n\n/**\n * the filename of the script part of the chunk\n */\nexports.getChunkScriptFilename = '__webpack_require__.u';\n\n/**\n * the filename of the css part of the chunk\n */\nexports.getChunkCssFilename = '__webpack_require__.k';\n\n/**\n * a flag when a module/chunk/tree has css modules\n */\nexports.hasCssModules = 'has css modules';\n\n/**\n * the filename of the script part of the hot update chunk\n */\nexports.getChunkUpdateScriptFilename = '__webpack_require__.hu';\n\n/**\n * the filename of the css part of the hot update chunk\n */\nexports.getChunkUpdateCssFilename = '__webpack_require__.hk';\n\n/**\n * startup signal from runtime\n * This will be called when the runtime chunk has been loaded.\n */\nexports.startup = '__webpack_require__.x';\n\n/**\n * @deprecated\n * creating a default startup function with the entry modules\n */\nexports.startupNoDefault = '__webpack_require__.x (no default handler)';\n\n/**\n * startup signal from runtime but only used to add logic after the startup\n */\nexports.startupOnlyAfter = '__webpack_require__.x (only after)';\n\n/**\n * startup signal from runtime but only used to add sync logic before the startup\n */\nexports.startupOnlyBefore = '__webpack_require__.x (only before)';\n\n/**\n * global callback functions for installing chunks\n */\nexports.chunkCallback = 'webpackChunk';\n\n/**\n * method to startup an entrypoint with needed chunks.\n * Signature: (moduleId: Id, chunkIds: Id[]) => any.\n * Returns the exports of the module or a Promise\n */\nexports.startupEntrypoint = '__webpack_require__.X';\n\n/**\n * register deferred code, which will run when certain\n * chunks are loaded.\n * Signature: (chunkIds: Id[], fn: () => any, priority: int >= 0 = 0) => any\n * Returned value will be returned directly when all chunks are already loaded\n * When (priority & 1) it will wait for all other handlers with lower priority to\n * be executed before itself is executed\n */\nexports.onChunksLoaded = '__webpack_require__.O';\n\n/**\n * method to install a chunk that was loaded somehow\n * Signature: ({ id, ids, modules, runtime }) => void\n */\nexports.externalInstallChunk = '__webpack_require__.C';\n\n/**\n * interceptor for module executions\n */\nexports.interceptModuleExecution = '__webpack_require__.i';\n\n/**\n * the global object\n */\nexports.global = '__webpack_require__.g';\n\n/**\n * an object with all share scopes\n */\nexports.shareScopeMap = '__webpack_require__.S';\n\n/**\n * The sharing init sequence function (only runs once per share scope).\n * Has one argument, the name of the share scope.\n * Creates a share scope if not existing\n */\nexports.initializeSharing = '__webpack_require__.I';\n\n/**\n * The current scope when getting a module from a remote\n */\nexports.currentRemoteGetScope = '__webpack_require__.R';\n\n/**\n * the filename of the HMR manifest\n */\nexports.getUpdateManifestFilename = '__webpack_require__.hmrF';\n\n/**\n * function downloading the update manifest\n */\nexports.hmrDownloadManifest = '__webpack_require__.hmrM';\n\n/**\n * array with handler functions to download chunk updates\n */\nexports.hmrDownloadUpdateHandlers = '__webpack_require__.hmrC';\n\n/**\n * object with all hmr module data for all modules\n */\nexports.hmrModuleData = '__webpack_require__.hmrD';\n\n/**\n * array with handler functions when a module should be invalidated\n */\nexports.hmrInvalidateModuleHandlers = '__webpack_require__.hmrI';\n\n/**\n * the prefix for storing state of runtime modules when hmr is enabled\n */\nexports.hmrRuntimeStatePrefix = '__webpack_require__.hmrS';\n\n/**\n * the AMD define function\n */\nexports.amdDefine = '__webpack_require__.amdD';\n\n/**\n * the AMD options\n */\nexports.amdOptions = '__webpack_require__.amdO';\n\n/**\n * the System polyfill object\n */\nexports.system = '__webpack_require__.System';\n\n/**\n * the shorthand for Object.prototype.hasOwnProperty\n * using of it decreases the compiled bundle size\n */\nexports.hasOwnProperty = '__webpack_require__.o';\n\n/**\n * the System.register context object\n */\nexports.systemContext = '__webpack_require__.y';\n\n/**\n * the baseURI of current document\n */\nexports.baseURI = '__webpack_require__.b';\n\n/**\n * a RelativeURL class when relative URLs are used\n */\nexports.relativeUrl = '__webpack_require__.U';\n\n/**\n * Creates an async module. The body function must be a async function.\n * \"module.exports\" will be decorated with an AsyncModulePromise.\n * The body function will be called.\n * To handle async dependencies correctly do this: \"([a, b, c] = await handleDependencies([a, b, c]));\".\n * If \"hasAwaitAfterDependencies\" is truthy, \"handleDependencies()\" must be called at the end of the body function.\n * Signature: function(\n * module: Module,\n * body: (handleDependencies: (deps: AsyncModulePromise[]) => Promise<any[]> & () => void,\n * hasAwaitAfterDependencies?: boolean\n * ) => void\n */\nexports.asyncModule = '__webpack_require__.a';\n"],"names":["exports","require","requireScope","thisAsExports","returnExportsFromRuntime","module","moduleId","moduleLoaded","publicPath","entryModuleId","moduleCache","moduleFactories","moduleFactoriesAddOnly","ensureChunk","ensureChunkHandlers","ensureChunkIncludeEntries","prefetchChunk","prefetchChunkHandlers","preloadChunk","preloadChunkHandlers","definePropertyGetters","makeNamespaceObject","createFakeNamespaceObject","compatGetDefaultExport","harmonyModuleDecorator","nodeModuleDecorator","getFullHash","wasmInstances","instantiateWasm","uncaughtErrorHandler","scriptNonce","loadScript","createScript","createScriptUrl","getTrustedTypesPolicy","hasFetchPriority","chunkName","runtimeId","getChunkScriptFilename","getChunkCssFilename","hasCssModules","getChunkUpdateScriptFilename","getChunkUpdateCssFilename","startup","startupNoDefault","startupOnlyAfter","startupOnlyBefore","chunkCallback","startupEntrypoint","onChunksLoaded","externalInstallChunk","interceptModuleExecution","global","shareScopeMap","initializeSharing","currentRemoteGetScope","getUpdateManifestFilename","hmrDownloadManifest","hmrDownloadUpdateHandlers","hmrModuleData","hmrInvalidateModuleHandlers","hmrRuntimeStatePrefix","amdDefine","amdOptions","system","hasOwnProperty","systemContext","baseURI","relativeUrl","asyncModule"],"mappings":"AAAA;;;AAGA,GAEA;AAEA;;CAEC,GACDA,QAAQC,OAAO,GAAG;AAElB;;CAEC,GACDD,QAAQE,YAAY,GAAG;AAEvB;;CAEC,GACDF,QAAQA,OAAO,GAAG;AAElB;;CAEC,GACDA,QAAQG,aAAa,GAAG;AAExB;;CAEC,GACDH,QAAQI,wBAAwB,GAAG;AAEnC;;CAEC,GACDJ,QAAQK,MAAM,GAAG;AAEjB;;CAEC,GACDL,QAAQM,QAAQ,GAAG;AAEnB;;CAEC,GACDN,QAAQO,YAAY,GAAG;AAEvB;;CAEC,GACDP,QAAQQ,UAAU,GAAG;AAErB;;CAEC,GACDR,QAAQS,aAAa,GAAG;AAExB;;CAEC,GACDT,QAAQU,WAAW,GAAG;AAEtB;;CAEC,GACDV,QAAQW,eAAe,GAAG;AAE1B;;CAEC,GACDX,QAAQY,sBAAsB,GAAG;AAEjC;;CAEC,GACDZ,QAAQa,WAAW,GAAG;AAEtB;;CAEC,GACDb,QAAQc,mBAAmB,GAAG;AAE9B;;CAEC,GACDd,QAAQe,yBAAyB,GAAG;AAEpC;;CAEC,GACDf,QAAQgB,aAAa,GAAG;AAExB;;CAEC,GACDhB,QAAQiB,qBAAqB,GAAG;AAEhC;;CAEC,GACDjB,QAAQkB,YAAY,GAAG;AAEvB;;CAEC,GACDlB,QAAQmB,oBAAoB,GAAG;AAE/B;;CAEC,GACDnB,QAAQoB,qBAAqB,GAAG;AAEhC;;CAEC,GACDpB,QAAQqB,mBAAmB,GAAG;AAE9B;;CAEC,GACDrB,QAAQsB,yBAAyB,GAAG;AAEpC;;CAEC,GACDtB,QAAQuB,sBAAsB,GAAG;AAEjC;;CAEC,GACDvB,QAAQwB,sBAAsB,GAAG;AAEjC;;CAEC,GACDxB,QAAQyB,mBAAmB,GAAG;AAE9B;;CAEC,GACDzB,QAAQ0B,WAAW,GAAG;AAEtB;;CAEC,GACD1B,QAAQ2B,aAAa,GAAG;AAExB;;CAEC,GACD3B,QAAQ4B,eAAe,GAAG;AAE1B;;CAEC,GACD5B,QAAQ6B,oBAAoB,GAAG;AAE/B;;CAEC,GACD7B,QAAQ8B,WAAW,GAAG;AAEtB;;;;;CAKC,GACD9B,QAAQ+B,UAAU,GAAG;AAErB;;;;CAIC,GACD/B,QAAQgC,YAAY,GAAG;AAEvB;;;;CAIC,GACDhC,QAAQiC,eAAe,GAAG;AAE1B;;;CAGC,GACDjC,QAAQkC,qBAAqB,GAAG;AAEhC;;CAEC,GACDlC,QAAQmC,gBAAgB,GAAG;AAE3B;;CAEC,GACDnC,QAAQoC,SAAS,GAAG;AAEpB;;CAEC,GACDpC,QAAQqC,SAAS,GAAG;AAEpB;;CAEC,GACDrC,QAAQsC,sBAAsB,GAAG;AAEjC;;CAEC,GACDtC,QAAQuC,mBAAmB,GAAG;AAE9B;;CAEC,GACDvC,QAAQwC,aAAa,GAAG;AAExB;;CAEC,GACDxC,QAAQyC,4BAA4B,GAAG;AAEvC;;CAEC,GACDzC,QAAQ0C,yBAAyB,GAAG;AAEpC;;;CAGC,GACD1C,QAAQ2C,OAAO,GAAG;AAElB;;;CAGC,GACD3C,QAAQ4C,gBAAgB,GAAG;AAE3B;;CAEC,GACD5C,QAAQ6C,gBAAgB,GAAG;AAE3B;;CAEC,GACD7C,QAAQ8C,iBAAiB,GAAG;AAE5B;;CAEC,GACD9C,QAAQ+C,aAAa,GAAG;AAExB;;;;CAIC,GACD/C,QAAQgD,iBAAiB,GAAG;AAE5B;;;;;;;CAOC,GACDhD,QAAQiD,cAAc,GAAG;AAEzB;;;CAGC,GACDjD,QAAQkD,oBAAoB,GAAG;AAE/B;;CAEC,GACDlD,QAAQmD,wBAAwB,GAAG;AAEnC;;CAEC,GACDnD,QAAQoD,MAAM,GAAG;AAEjB;;CAEC,GACDpD,QAAQqD,aAAa,GAAG;AAExB;;;;CAIC,GACDrD,QAAQsD,iBAAiB,GAAG;AAE5B;;CAEC,GACDtD,QAAQuD,qBAAqB,GAAG;AAEhC;;CAEC,GACDvD,QAAQwD,yBAAyB,GAAG;AAEpC;;CAEC,GACDxD,QAAQyD,mBAAmB,GAAG;AAE9B;;CAEC,GACDzD,QAAQ0D,yBAAyB,GAAG;AAEpC;;CAEC,GACD1D,QAAQ2D,aAAa,GAAG;AAExB;;CAEC,GACD3D,QAAQ4D,2BAA2B,GAAG;AAEtC;;CAEC,GACD5D,QAAQ6D,qBAAqB,GAAG;AAEhC;;CAEC,GACD7D,QAAQ8D,SAAS,GAAG;AAEpB;;CAEC,GACD9D,QAAQ+D,UAAU,GAAG;AAErB;;CAEC,GACD/D,QAAQgE,MAAM,GAAG;AAEjB;;;CAGC,GACDhE,QAAQiE,cAAc,GAAG;AAEzB;;CAEC,GACDjE,QAAQkE,aAAa,GAAG;AAExB;;CAEC,GACDlE,QAAQmE,OAAO,GAAG;AAElB;;CAEC,GACDnE,QAAQoE,WAAW,GAAG;AAEtB;;;;;;;;;;;CAWC,GACDpE,QAAQqE,WAAW,GAAG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type Compilation from 'webpack/lib/Compilation';
|
|
2
|
+
import type Compiler from 'webpack/lib/Compiler';
|
|
3
|
+
import type Module from 'webpack/lib/Module';
|
|
4
|
+
import { SyncBailHook } from 'tapable';
|
|
5
|
+
/**
|
|
6
|
+
* AsyncBoundaryPlugin is a Webpack plugin that handles asynchronous boundaries in a federated module.
|
|
7
|
+
* @class
|
|
8
|
+
*/
|
|
9
|
+
declare class AsyncBoundaryPlugin {
|
|
10
|
+
/**
|
|
11
|
+
* Define hooks
|
|
12
|
+
* @property {SyncBailHook} checkInvalidContext - A hook that checks if the render context is invalid.
|
|
13
|
+
*/
|
|
14
|
+
hooks: {
|
|
15
|
+
checkInvalidContext: SyncBailHook<[Module, Compilation], boolean, import("tapable").UnsetAdditionalOptions>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Apply the plugin to the Webpack compiler instance.
|
|
19
|
+
* @param {Compiler} compiler - Webpack compiler instance.
|
|
20
|
+
*/
|
|
21
|
+
apply(compiler: Compiler): void;
|
|
22
|
+
/**
|
|
23
|
+
* Render the startup logic for the plugin.
|
|
24
|
+
* @param {Source} source - The source code.
|
|
25
|
+
* @param {RenderContext} renderContext - The render context.
|
|
26
|
+
* @param {any} startupRenderContext - The startup render context.
|
|
27
|
+
* @param {Compilation} compilation - The Webpack compilation instance.
|
|
28
|
+
* @returns {string} - The modified source code.
|
|
29
|
+
*/
|
|
30
|
+
private renderStartupLogic;
|
|
31
|
+
/**
|
|
32
|
+
* Replace the webpack exec string.
|
|
33
|
+
* @param {string} webpack_exec - The webpack exec string.
|
|
34
|
+
* @returns {string} - The replaced webpack exec string.
|
|
35
|
+
*/
|
|
36
|
+
private replaceWebpackExec;
|
|
37
|
+
/**
|
|
38
|
+
* Get the IDs of the dependent chunks.
|
|
39
|
+
* @param {any} startupRenderContext - The startup render context.
|
|
40
|
+
* @param {any} chunkGraph - The chunk graph.
|
|
41
|
+
* @returns {Set} - The set of dependent chunk IDs.
|
|
42
|
+
*/
|
|
43
|
+
private getDependentChunkIds;
|
|
44
|
+
}
|
|
45
|
+
export default AsyncBoundaryPlugin;
|