@module-federation/sdk 0.0.0-next-20240919075108 → 0.0.0-next-20240919100820
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/dist/index.cjs.js
CHANGED
|
@@ -33,13 +33,6 @@ const MFModuleType = {
|
|
|
33
33
|
const MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
|
|
34
34
|
const ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
|
|
35
35
|
const TEMP_DIR = '.federation';
|
|
36
|
-
const MFPrefetchCommon = {
|
|
37
|
-
identifier: 'MFDataPrefetch',
|
|
38
|
-
globalKey: '__PREFETCH__',
|
|
39
|
-
library: 'mf-data-prefetch',
|
|
40
|
-
exportsKey: '__PREFETCH_EXPORTS__',
|
|
41
|
-
fileName: 'bootstrap.js'
|
|
42
|
-
};
|
|
43
36
|
|
|
44
37
|
var ContainerPlugin = /*#__PURE__*/Object.freeze({
|
|
45
38
|
__proto__: null
|
|
@@ -719,7 +712,6 @@ exports.FederationModuleManifest = FederationModuleManifest;
|
|
|
719
712
|
exports.Logger = Logger;
|
|
720
713
|
exports.MANIFEST_EXT = MANIFEST_EXT;
|
|
721
714
|
exports.MFModuleType = MFModuleType;
|
|
722
|
-
exports.MFPrefetchCommon = MFPrefetchCommon;
|
|
723
715
|
exports.MODULE_DEVTOOL_IDENTIFIER = MODULE_DEVTOOL_IDENTIFIER;
|
|
724
716
|
exports.ManifestFileName = ManifestFileName;
|
|
725
717
|
exports.NameTransformMap = NameTransformMap;
|
package/dist/index.esm.js
CHANGED
|
@@ -29,13 +29,6 @@ const MFModuleType = {
|
|
|
29
29
|
const MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
|
|
30
30
|
const ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
|
|
31
31
|
const TEMP_DIR = '.federation';
|
|
32
|
-
const MFPrefetchCommon = {
|
|
33
|
-
identifier: 'MFDataPrefetch',
|
|
34
|
-
globalKey: '__PREFETCH__',
|
|
35
|
-
library: 'mf-data-prefetch',
|
|
36
|
-
exportsKey: '__PREFETCH_EXPORTS__',
|
|
37
|
-
fileName: 'bootstrap.js'
|
|
38
|
-
};
|
|
39
32
|
|
|
40
33
|
var ContainerPlugin = /*#__PURE__*/Object.freeze({
|
|
41
34
|
__proto__: null
|
|
@@ -707,4 +700,4 @@ function normalizeOptions(enableDefault, defaultOptions, key) {
|
|
|
707
700
|
};
|
|
708
701
|
}
|
|
709
702
|
|
|
710
|
-
export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, ENCODE_NAME_PREFIX, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType,
|
|
703
|
+
export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, ENCODE_NAME_PREFIX, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType, MODULE_DEVTOOL_IDENTIFIER, ManifestFileName, NameTransformMap, NameTransformSymbol, SEPARATOR, StatsFileName, TEMP_DIR, assert, composeKeyWithSeparator, ContainerPlugin as containerPlugin, ContainerReferencePlugin as containerReferencePlugin, createLink, createScript, createScriptNode, decodeName, encodeName, error, generateExposeFilename, generateShareFilename, generateSnapshotFromManifest, getProcessEnv, getResourceUrl, inferAutoPublicPath, isBrowserEnv, isDebugMode, isManifestProvider, isStaticResourcesEqual, loadScript, loadScriptNode, logger, ModuleFederationPlugin as moduleFederationPlugin, normalizeOptions, parseEntry, safeToString, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
|
package/dist/package.json
CHANGED
package/dist/src/constant.d.ts
CHANGED
|
@@ -23,10 +23,3 @@ export declare const MFModuleType: {
|
|
|
23
23
|
export declare const MODULE_DEVTOOL_IDENTIFIER = "__MF_DEVTOOLS_MODULE_INFO__";
|
|
24
24
|
export declare const ENCODE_NAME_PREFIX = "ENCODE_NAME_PREFIX";
|
|
25
25
|
export declare const TEMP_DIR = ".federation";
|
|
26
|
-
export declare const MFPrefetchCommon: {
|
|
27
|
-
identifier: string;
|
|
28
|
-
globalKey: string;
|
|
29
|
-
library: string;
|
|
30
|
-
exportsKey: string;
|
|
31
|
-
fileName: string;
|
|
32
|
-
};
|
|
@@ -65,10 +65,6 @@ export type Shared = (SharedItem | SharedObject)[] | SharedObject;
|
|
|
65
65
|
* A module that should be shared in the share scope.
|
|
66
66
|
*/
|
|
67
67
|
export type SharedItem = string;
|
|
68
|
-
/**
|
|
69
|
-
* Enable Data Prefetch
|
|
70
|
-
*/
|
|
71
|
-
export type DataPrefetch = boolean;
|
|
72
68
|
export interface AdditionalDataOptions {
|
|
73
69
|
stats: Stats;
|
|
74
70
|
manifest?: Manifest;
|
|
@@ -178,7 +174,6 @@ export interface ModuleFederationPluginOptions {
|
|
|
178
174
|
dev?: boolean | PluginDevOptions;
|
|
179
175
|
dts?: boolean | PluginDtsOptions;
|
|
180
176
|
async?: boolean | AsyncBoundaryOptions;
|
|
181
|
-
dataPrefetch?: DataPrefetch;
|
|
182
177
|
virtualRuntimeEntry?: boolean;
|
|
183
178
|
experiments?: {
|
|
184
179
|
federationRuntime?: false | 'hoisted';
|