@module-federation/sdk 0.0.0-next-20240808065005 → 0.0.0-next-20240808084345

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
@@ -31,13 +31,6 @@ const MFModuleType = {
31
31
  const MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
32
32
  const ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
33
33
  const TEMP_DIR = '.federation';
34
- const MFPrefetchCommon = {
35
- identifier: 'MFDataPrefetch',
36
- globalKey: '__PREFETCH__',
37
- library: 'mf-data-prefetch',
38
- exportsKey: '__PREFETCH_EXPORTS__',
39
- fileName: 'bootstrap.js'
40
- };
41
34
 
42
35
  var ContainerPlugin = /*#__PURE__*/Object.freeze({
43
36
  __proto__: null
@@ -717,7 +710,6 @@ exports.FederationModuleManifest = FederationModuleManifest;
717
710
  exports.Logger = Logger;
718
711
  exports.MANIFEST_EXT = MANIFEST_EXT;
719
712
  exports.MFModuleType = MFModuleType;
720
- exports.MFPrefetchCommon = MFPrefetchCommon;
721
713
  exports.MODULE_DEVTOOL_IDENTIFIER = MODULE_DEVTOOL_IDENTIFIER;
722
714
  exports.ManifestFileName = ManifestFileName;
723
715
  exports.NameTransformMap = NameTransformMap;
package/dist/index.esm.js CHANGED
@@ -27,13 +27,6 @@ const MFModuleType = {
27
27
  const MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
28
28
  const ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
29
29
  const TEMP_DIR = '.federation';
30
- const MFPrefetchCommon = {
31
- identifier: 'MFDataPrefetch',
32
- globalKey: '__PREFETCH__',
33
- library: 'mf-data-prefetch',
34
- exportsKey: '__PREFETCH_EXPORTS__',
35
- fileName: 'bootstrap.js'
36
- };
37
30
 
38
31
  var ContainerPlugin = /*#__PURE__*/Object.freeze({
39
32
  __proto__: null
@@ -705,4 +698,4 @@ function normalizeOptions(enableDefault, defaultOptions, key) {
705
698
  };
706
699
  }
707
700
 
708
- 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, 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, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
701
+ 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, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
@@ -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;
@@ -174,7 +170,6 @@ export interface ModuleFederationPluginOptions {
174
170
  dev?: boolean | PluginDevOptions;
175
171
  dts?: boolean | PluginDtsOptions;
176
172
  async?: boolean | AsyncBoundaryOptions;
177
- dataPrefetch?: DataPrefetch;
178
173
  }
179
174
  /**
180
175
  * 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-20240808065005",
3
+ "version": "0.0.0-next-20240808084345",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [