@module-federation/sdk 0.0.0-next-20240701101956 → 0.0.0-next-20240704021704

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
@@ -30,13 +30,6 @@ const MFModuleType = {
30
30
  };
31
31
  const MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
32
32
  const ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
33
- const MFPrefetchCommon = {
34
- identifier: 'MFDataPrefetch',
35
- globalKey: '__PREFETCH__',
36
- library: 'mf-data-prefetch',
37
- exportsKey: '__PREFETCH_EXPORTS__',
38
- fileName: 'bootstrap.js'
39
- };
40
33
 
41
34
  var ContainerPlugin = /*#__PURE__*/Object.freeze({
42
35
  __proto__: null
@@ -707,7 +700,6 @@ exports.FederationModuleManifest = FederationModuleManifest;
707
700
  exports.Logger = Logger;
708
701
  exports.MANIFEST_EXT = MANIFEST_EXT;
709
702
  exports.MFModuleType = MFModuleType;
710
- exports.MFPrefetchCommon = MFPrefetchCommon;
711
703
  exports.MODULE_DEVTOOL_IDENTIFIER = MODULE_DEVTOOL_IDENTIFIER;
712
704
  exports.ManifestFileName = ManifestFileName;
713
705
  exports.NameTransformMap = NameTransformMap;
package/dist/index.esm.js CHANGED
@@ -26,13 +26,6 @@ const MFModuleType = {
26
26
  };
27
27
  const MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
28
28
  const ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
29
- const MFPrefetchCommon = {
30
- identifier: 'MFDataPrefetch',
31
- globalKey: '__PREFETCH__',
32
- library: 'mf-data-prefetch',
33
- exportsKey: '__PREFETCH_EXPORTS__',
34
- fileName: 'bootstrap.js'
35
- };
36
29
 
37
30
  var ContainerPlugin = /*#__PURE__*/Object.freeze({
38
31
  __proto__: null
@@ -695,4 +688,4 @@ function normalizeOptions(enableDefault, defaultOptions, key) {
695
688
  };
696
689
  }
697
690
 
698
- export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, ENCODE_NAME_PREFIX, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType, MFPrefetchCommon, MODULE_DEVTOOL_IDENTIFIER, ManifestFileName, NameTransformMap, NameTransformSymbol, SEPARATOR, StatsFileName, 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, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
691
+ export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, ENCODE_NAME_PREFIX, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType, MODULE_DEVTOOL_IDENTIFIER, ManifestFileName, NameTransformMap, NameTransformSymbol, SEPARATOR, StatsFileName, 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, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
@@ -22,10 +22,3 @@ export declare const MFModuleType: {
22
22
  };
23
23
  export declare const MODULE_DEVTOOL_IDENTIFIER = "__MF_DEVTOOLS_MODULE_INFO__";
24
24
  export declare const ENCODE_NAME_PREFIX = "ENCODE_NAME_PREFIX";
25
- export declare const MFPrefetchCommon: {
26
- identifier: string;
27
- globalKey: string;
28
- library: string;
29
- exportsKey: string;
30
- fileName: string;
31
- };
@@ -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;
@@ -168,7 +164,6 @@ export interface ModuleFederationPluginOptions {
168
164
  manifest?: boolean | PluginManifestOptions;
169
165
  dev?: boolean | PluginDevOptions;
170
166
  dts?: boolean | PluginDtsOptions;
171
- dataPrefetch?: DataPrefetch;
172
167
  }
173
168
  /**
174
169
  * Modules that should be exposed by this container. Property names are used as public paths.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.0.0-next-20240701101956",
3
+ "version": "0.0.0-next-20240704021704",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [