@module-federation/data-prefetch 1.0.16 → 2.0.1

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.
Files changed (98) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -1
  3. package/dist/LICENSE +21 -0
  4. package/dist/babel.cjs +95 -0
  5. package/dist/babel.d.ts +1 -0
  6. package/dist/babel.js +5 -0
  7. package/dist/cli/babel.cjs +115 -0
  8. package/dist/cli/babel.d.ts +2 -4
  9. package/dist/cli/babel.js +50 -82
  10. package/dist/cli/index.cjs +217 -0
  11. package/dist/cli/index.d.ts +5 -8
  12. package/dist/cli/index.js +150 -197
  13. package/dist/cli.cjs +95 -0
  14. package/dist/cli.d.ts +1 -0
  15. package/dist/cli.js +5 -0
  16. package/dist/common/constant.cjs +51 -0
  17. package/dist/common/constant.d.ts +1 -0
  18. package/dist/common/constant.js +5 -0
  19. package/dist/common/index.cjs +95 -0
  20. package/dist/common/index.js +5 -0
  21. package/dist/common/node-utils.cjs +100 -0
  22. package/dist/common/node-utils.d.ts +2 -0
  23. package/dist/common/node-utils.js +35 -0
  24. package/dist/common/runtime-utils.cjs +84 -0
  25. package/dist/common/runtime-utils.d.ts +5 -0
  26. package/dist/common/runtime-utils.js +29 -0
  27. package/dist/constant.cjs +51 -0
  28. package/dist/constant.d.ts +1 -0
  29. package/dist/constant.js +5 -0
  30. package/dist/index.cjs +106 -0
  31. package/dist/index.d.ts +2 -5
  32. package/dist/index.js +3 -346
  33. package/dist/logger/index.cjs +60 -0
  34. package/dist/logger/index.d.ts +2 -0
  35. package/dist/logger/index.js +10 -0
  36. package/dist/plugin.cjs +234 -0
  37. package/dist/plugin.d.ts +3 -5
  38. package/dist/plugin.js +167 -340
  39. package/dist/prefetch.cjs +197 -0
  40. package/dist/{prefetch-4e9646e4.d.ts → prefetch.d.ts} +14 -17
  41. package/dist/prefetch.js +149 -0
  42. package/dist/react/hooks.cjs +144 -0
  43. package/dist/react/hooks.d.ts +11 -0
  44. package/dist/react/hooks.js +86 -0
  45. package/dist/react/index.cjs +95 -0
  46. package/dist/react/index.d.ts +1 -16
  47. package/dist/react/index.js +2 -283
  48. package/dist/react/utils.cjs +65 -0
  49. package/dist/react/utils.d.ts +1 -0
  50. package/dist/react/utils.js +15 -0
  51. package/dist/react.cjs +95 -0
  52. package/dist/react.d.ts +1 -0
  53. package/dist/react.js +5 -0
  54. package/dist/universal/index.cjs +81 -0
  55. package/dist/universal/index.d.ts +2 -8
  56. package/dist/universal/index.js +24 -196
  57. package/dist/universal.cjs +95 -0
  58. package/dist/universal.d.ts +1 -0
  59. package/dist/universal.js +5 -0
  60. package/package.json +76 -40
  61. package/CHANGELOG.md +0 -9
  62. package/__tests__/babel.spec.ts +0 -75
  63. package/__tests__/prefetch.spec.ts +0 -138
  64. package/__tests__/react.spec.ts +0 -119
  65. package/dist/esm/chunk-AJPO2B2T.js +0 -30
  66. package/dist/esm/chunk-EZUCZHGV.js +0 -11
  67. package/dist/esm/chunk-ISLXMAIA.js +0 -155
  68. package/dist/esm/chunk-KI4QGPIS.js +0 -32
  69. package/dist/esm/chunk-TTJJJ2WZ.js +0 -7
  70. package/dist/esm/chunk-VVZ6XIM6.js +0 -166
  71. package/dist/esm/cli/babel.js +0 -57
  72. package/dist/esm/cli/index.js +0 -178
  73. package/dist/esm/index.js +0 -13
  74. package/dist/esm/plugin.js +0 -12
  75. package/dist/esm/react/index.js +0 -94
  76. package/dist/esm/shared/index.js +0 -27
  77. package/dist/esm/universal/index.js +0 -9
  78. package/dist/shared/index.d.ts +0 -5
  79. package/dist/shared/index.js +0 -48
  80. package/jest.config.js +0 -29
  81. package/project.json +0 -21
  82. package/src/cli/babel.ts +0 -94
  83. package/src/cli/index.ts +0 -171
  84. package/src/common/constant.ts +0 -1
  85. package/src/common/node-utils.ts +0 -24
  86. package/src/common/runtime-utils.ts +0 -34
  87. package/src/index.ts +0 -2
  88. package/src/logger/index.ts +0 -3
  89. package/src/plugin.ts +0 -191
  90. package/src/prefetch.ts +0 -207
  91. package/src/react/hooks.ts +0 -95
  92. package/src/react/index.ts +0 -1
  93. package/src/react/utils.ts +0 -11
  94. package/src/shared/index.ts +0 -26
  95. package/src/universal/index.ts +0 -27
  96. package/tsconfig.json +0 -27
  97. package/tsup.config.ts +0 -35
  98. /package/{src/common/index.ts → dist/common/index.d.ts} +0 -0
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
3
+ return typeof document === 'undefined'
4
+ ? new (require('url'.replace('', '')).URL)('file:' + __filename).href
5
+ : (document.currentScript && document.currentScript.src) ||
6
+ new URL('main.js', document.baseURI).href;
7
+ })();
8
+ ;
9
+ // The require scope
10
+ var __webpack_require__ = {};
11
+
12
+ /************************************************************************/
13
+ // webpack/runtime/compat_get_default_export
14
+ (() => {
15
+ // getDefaultExport function for compatibility with non-ESM modules
16
+ __webpack_require__.n = (module) => {
17
+ var getter = module && module.__esModule ?
18
+ () => (module['default']) :
19
+ () => (module);
20
+ __webpack_require__.d(getter, { a: getter });
21
+ return getter;
22
+ };
23
+
24
+ })();
25
+ // webpack/runtime/define_property_getters
26
+ (() => {
27
+ __webpack_require__.d = (exports, definition) => {
28
+ for(var key in definition) {
29
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
30
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
31
+ }
32
+ }
33
+ };
34
+ })();
35
+ // webpack/runtime/has_own_property
36
+ (() => {
37
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
38
+ })();
39
+ // webpack/runtime/make_namespace_object
40
+ (() => {
41
+ // define __esModule on exports
42
+ __webpack_require__.r = (exports) => {
43
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
44
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
45
+ }
46
+ Object.defineProperty(exports, '__esModule', { value: true });
47
+ };
48
+ })();
49
+ /************************************************************************/
50
+ var __webpack_exports__ = {};
51
+ // ESM COMPAT FLAG
52
+ __webpack_require__.r(__webpack_exports__);
53
+
54
+ // EXPORTS
55
+ __webpack_require__.d(__webpack_exports__, {
56
+ fileExistsWithCaseSync: () => (/* binding */ fileExistsWithCaseSync),
57
+ fixPrefetchPath: () => (/* binding */ fixPrefetchPath)
58
+ });
59
+
60
+ ;// CONCATENATED MODULE: external "path"
61
+ const external_path_namespaceObject = require("path");
62
+ var external_path_default = /*#__PURE__*/__webpack_require__.n(external_path_namespaceObject);
63
+ ;// CONCATENATED MODULE: external "fs-extra"
64
+ const external_fs_extra_namespaceObject = require("fs-extra");
65
+ var external_fs_extra_default = /*#__PURE__*/__webpack_require__.n(external_fs_extra_namespaceObject);
66
+ ;// CONCATENATED MODULE: ./src/common/node-utils.ts
67
+
68
+
69
+ const fileExistsWithCaseSync = (filepath)=>{
70
+ const dir = external_path_default().dirname(filepath);
71
+ if (filepath === '/' || filepath === '.') {
72
+ return true;
73
+ }
74
+ const filenames = external_fs_extra_default().readdirSync(dir);
75
+ if (filenames.indexOf(external_path_default().basename(filepath)) === -1) {
76
+ return false;
77
+ }
78
+ return fileExistsWithCaseSync(dir);
79
+ };
80
+ const fixPrefetchPath = (exposePath)=>{
81
+ const pathExt = [
82
+ '.js',
83
+ '.ts'
84
+ ];
85
+ const extReg = /\.(ts|js|tsx|jsx)$/;
86
+ if (extReg.test(exposePath)) {
87
+ return pathExt.map((ext)=>exposePath.replace(extReg, `.prefetch${ext}`));
88
+ } else {
89
+ return pathExt.map((ext)=>exposePath + `.prefetch${ext}`);
90
+ }
91
+ };
92
+
93
+ exports.fileExistsWithCaseSync = __webpack_exports__.fileExistsWithCaseSync;
94
+ exports.fixPrefetchPath = __webpack_exports__.fixPrefetchPath;
95
+ for(var __webpack_i__ in __webpack_exports__) {
96
+ if(["fileExistsWithCaseSync","fixPrefetchPath"].indexOf(__webpack_i__) === -1) {
97
+ exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
98
+ }
99
+ }
100
+ Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1,2 @@
1
+ export declare const fileExistsWithCaseSync: (filepath: string) => boolean;
2
+ export declare const fixPrefetchPath: (exposePath: string) => Array<string>;
@@ -0,0 +1,35 @@
1
+ import path from "path";
2
+ import fs_extra from "fs-extra";
3
+
4
+ ;// CONCATENATED MODULE: external "path"
5
+
6
+ ;// CONCATENATED MODULE: external "fs-extra"
7
+
8
+ ;// CONCATENATED MODULE: ./src/common/node-utils.ts
9
+
10
+
11
+ const fileExistsWithCaseSync = (filepath)=>{
12
+ const dir = path.dirname(filepath);
13
+ if (filepath === '/' || filepath === '.') {
14
+ return true;
15
+ }
16
+ const filenames = fs_extra.readdirSync(dir);
17
+ if (filenames.indexOf(path.basename(filepath)) === -1) {
18
+ return false;
19
+ }
20
+ return fileExistsWithCaseSync(dir);
21
+ };
22
+ const fixPrefetchPath = (exposePath)=>{
23
+ const pathExt = [
24
+ '.js',
25
+ '.ts'
26
+ ];
27
+ const extReg = /\.(ts|js|tsx|jsx)$/;
28
+ if (extReg.test(exposePath)) {
29
+ return pathExt.map((ext)=>exposePath.replace(extReg, `.prefetch${ext}`));
30
+ } else {
31
+ return pathExt.map((ext)=>exposePath + `.prefetch${ext}`);
32
+ }
33
+ };
34
+
35
+ export { fileExistsWithCaseSync, fixPrefetchPath };
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
3
+ return typeof document === 'undefined'
4
+ ? new (require('url'.replace('', '')).URL)('file:' + __filename).href
5
+ : (document.currentScript && document.currentScript.src) ||
6
+ new URL('main.js', document.baseURI).href;
7
+ })();
8
+ ;
9
+ // The require scope
10
+ var __webpack_require__ = {};
11
+
12
+ /************************************************************************/
13
+ // webpack/runtime/define_property_getters
14
+ (() => {
15
+ __webpack_require__.d = (exports, definition) => {
16
+ for(var key in definition) {
17
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
18
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
19
+ }
20
+ }
21
+ };
22
+ })();
23
+ // webpack/runtime/has_own_property
24
+ (() => {
25
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
26
+ })();
27
+ // webpack/runtime/make_namespace_object
28
+ (() => {
29
+ // define __esModule on exports
30
+ __webpack_require__.r = (exports) => {
31
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
32
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
33
+ }
34
+ Object.defineProperty(exports, '__esModule', { value: true });
35
+ };
36
+ })();
37
+ /************************************************************************/
38
+ var __webpack_exports__ = {};
39
+ // ESM COMPAT FLAG
40
+ __webpack_require__.r(__webpack_exports__);
41
+
42
+ // EXPORTS
43
+ __webpack_require__.d(__webpack_exports__, {
44
+ compatGetPrefetchId: () => (/* binding */ compatGetPrefetchId),
45
+ getPrefetchId: () => (/* binding */ getPrefetchId),
46
+ getSignalFromManifest: () => (/* binding */ getSignalFromManifest),
47
+ getScope: () => (/* binding */ getScope)
48
+ });
49
+
50
+ ;// CONCATENATED MODULE: external "@module-federation/runtime"
51
+ const runtime_namespaceObject = require("@module-federation/runtime");
52
+ ;// CONCATENATED MODULE: external "@module-federation/sdk"
53
+ const sdk_namespaceObject = require("@module-federation/sdk");
54
+ ;// CONCATENATED MODULE: ./src/common/runtime-utils.ts
55
+
56
+
57
+ const getScope = ()=>{
58
+ return (0,runtime_namespaceObject.getInstance)().options.name;
59
+ };
60
+ const getPrefetchId = (id)=>(0,sdk_namespaceObject.encodeName)(`${id}/${sdk_namespaceObject.MFPrefetchCommon.identifier}`);
61
+ const compatGetPrefetchId = (id)=>(0,sdk_namespaceObject.encodeName)(`${id}/VmokPrefetch`);
62
+ const getSignalFromManifest = (remoteSnapshot)=>{
63
+ if (!remoteSnapshot) {
64
+ return false;
65
+ }
66
+ if (!('prefetchEntry' in remoteSnapshot) && !('prefetchInterface' in remoteSnapshot)) {
67
+ return false;
68
+ }
69
+ if (!remoteSnapshot.prefetchEntry && !remoteSnapshot.prefetchInterface) {
70
+ return false;
71
+ }
72
+ return true;
73
+ };
74
+
75
+ exports.compatGetPrefetchId = __webpack_exports__.compatGetPrefetchId;
76
+ exports.getPrefetchId = __webpack_exports__.getPrefetchId;
77
+ exports.getScope = __webpack_exports__.getScope;
78
+ exports.getSignalFromManifest = __webpack_exports__.getSignalFromManifest;
79
+ for(var __webpack_i__ in __webpack_exports__) {
80
+ if(["compatGetPrefetchId","getPrefetchId","getScope","getSignalFromManifest"].indexOf(__webpack_i__) === -1) {
81
+ exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
82
+ }
83
+ }
84
+ Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1,5 @@
1
+ import { ModuleInfo } from '@module-federation/sdk';
2
+ export declare const getScope: () => string;
3
+ export declare const getPrefetchId: (id: string) => string;
4
+ export declare const compatGetPrefetchId: (id: string) => string;
5
+ export declare const getSignalFromManifest: (remoteSnapshot: ModuleInfo) => boolean;
@@ -0,0 +1,29 @@
1
+ import { getInstance } from "@module-federation/runtime";
2
+ import { MFPrefetchCommon, encodeName } from "@module-federation/sdk";
3
+
4
+ ;// CONCATENATED MODULE: external "@module-federation/runtime"
5
+
6
+ ;// CONCATENATED MODULE: external "@module-federation/sdk"
7
+
8
+ ;// CONCATENATED MODULE: ./src/common/runtime-utils.ts
9
+
10
+
11
+ const getScope = ()=>{
12
+ return getInstance().options.name;
13
+ };
14
+ const getPrefetchId = (id)=>encodeName(`${id}/${MFPrefetchCommon.identifier}`);
15
+ const compatGetPrefetchId = (id)=>encodeName(`${id}/VmokPrefetch`);
16
+ const getSignalFromManifest = (remoteSnapshot)=>{
17
+ if (!remoteSnapshot) {
18
+ return false;
19
+ }
20
+ if (!('prefetchEntry' in remoteSnapshot) && !('prefetchInterface' in remoteSnapshot)) {
21
+ return false;
22
+ }
23
+ if (!remoteSnapshot.prefetchEntry && !remoteSnapshot.prefetchInterface) {
24
+ return false;
25
+ }
26
+ return true;
27
+ };
28
+
29
+ export { compatGetPrefetchId, getPrefetchId, getScope, getSignalFromManifest };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
3
+ return typeof document === 'undefined'
4
+ ? new (require('url'.replace('', '')).URL)('file:' + __filename).href
5
+ : (document.currentScript && document.currentScript.src) ||
6
+ new URL('main.js', document.baseURI).href;
7
+ })();
8
+ ;
9
+ // The require scope
10
+ var __webpack_require__ = {};
11
+
12
+ /************************************************************************/
13
+ // webpack/runtime/define_property_getters
14
+ (() => {
15
+ __webpack_require__.d = (exports, definition) => {
16
+ for(var key in definition) {
17
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
18
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
19
+ }
20
+ }
21
+ };
22
+ })();
23
+ // webpack/runtime/has_own_property
24
+ (() => {
25
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
26
+ })();
27
+ // webpack/runtime/make_namespace_object
28
+ (() => {
29
+ // define __esModule on exports
30
+ __webpack_require__.r = (exports) => {
31
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
32
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
33
+ }
34
+ Object.defineProperty(exports, '__esModule', { value: true });
35
+ };
36
+ })();
37
+ /************************************************************************/
38
+ var __webpack_exports__ = {};
39
+ __webpack_require__.r(__webpack_exports__);
40
+ __webpack_require__.d(__webpack_exports__, {
41
+ SHARED_STRATEGY: () => (SHARED_STRATEGY)
42
+ });
43
+ const SHARED_STRATEGY = 'loaded-first';
44
+
45
+ exports.SHARED_STRATEGY = __webpack_exports__.SHARED_STRATEGY;
46
+ for(var __webpack_i__ in __webpack_exports__) {
47
+ if(["SHARED_STRATEGY"].indexOf(__webpack_i__) === -1) {
48
+ exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
49
+ }
50
+ }
51
+ Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1 @@
1
+ export declare const SHARED_STRATEGY = "loaded-first";
@@ -0,0 +1,5 @@
1
+
2
+ ;// CONCATENATED MODULE: ./src/constant.ts
3
+ const SHARED_STRATEGY = 'loaded-first';
4
+
5
+ export { SHARED_STRATEGY };
package/dist/index.cjs ADDED
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
3
+ return typeof document === 'undefined'
4
+ ? new (require('url'.replace('', '')).URL)('file:' + __filename).href
5
+ : (document.currentScript && document.currentScript.src) ||
6
+ new URL('main.js', document.baseURI).href;
7
+ })();
8
+ ;
9
+ var __webpack_modules__ = ({
10
+ "./plugin": (function (module) {
11
+ module.exports = require("./plugin.cjs");
12
+
13
+ }),
14
+ "./prefetch": (function (module) {
15
+ module.exports = require("./prefetch.cjs");
16
+
17
+ }),
18
+
19
+ });
20
+ /************************************************************************/
21
+ // The module cache
22
+ var __webpack_module_cache__ = {};
23
+
24
+ // The require function
25
+ function __webpack_require__(moduleId) {
26
+
27
+ // Check if module is in cache
28
+ var cachedModule = __webpack_module_cache__[moduleId];
29
+ if (cachedModule !== undefined) {
30
+ return cachedModule.exports;
31
+ }
32
+ // Create a new module (and put it into the cache)
33
+ var module = (__webpack_module_cache__[moduleId] = {
34
+ exports: {}
35
+ });
36
+ // Execute the module function
37
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
38
+
39
+ // Return the exports of the module
40
+ return module.exports;
41
+
42
+ }
43
+
44
+ /************************************************************************/
45
+ // webpack/runtime/compat_get_default_export
46
+ (() => {
47
+ // getDefaultExport function for compatibility with non-ESM modules
48
+ __webpack_require__.n = (module) => {
49
+ var getter = module && module.__esModule ?
50
+ () => (module['default']) :
51
+ () => (module);
52
+ __webpack_require__.d(getter, { a: getter });
53
+ return getter;
54
+ };
55
+
56
+ })();
57
+ // webpack/runtime/define_property_getters
58
+ (() => {
59
+ __webpack_require__.d = (exports, definition) => {
60
+ for(var key in definition) {
61
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
62
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
63
+ }
64
+ }
65
+ };
66
+ })();
67
+ // webpack/runtime/has_own_property
68
+ (() => {
69
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
70
+ })();
71
+ // webpack/runtime/make_namespace_object
72
+ (() => {
73
+ // define __esModule on exports
74
+ __webpack_require__.r = (exports) => {
75
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
76
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
77
+ }
78
+ Object.defineProperty(exports, '__esModule', { value: true });
79
+ };
80
+ })();
81
+ /************************************************************************/
82
+ var __webpack_exports__ = {};
83
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
84
+ (() => {
85
+ __webpack_require__.r(__webpack_exports__);
86
+ /* ESM import */var _prefetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./prefetch");
87
+ /* ESM import */var _prefetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_prefetch__WEBPACK_IMPORTED_MODULE_0__);
88
+
89
+ /* ESM reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
90
+ /* ESM reexport (unknown) */ for( var __WEBPACK_IMPORT_KEY__ in _prefetch__WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] =function(key) { return _prefetch__WEBPACK_IMPORTED_MODULE_0__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
91
+ /* ESM reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
92
+ /* ESM import */var _plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./plugin");
93
+ /* ESM import */var _plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_plugin__WEBPACK_IMPORTED_MODULE_1__);
94
+
95
+ /* ESM reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
96
+ /* ESM reexport (unknown) */ for( var __WEBPACK_IMPORT_KEY__ in _plugin__WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] =function(key) { return _plugin__WEBPACK_IMPORTED_MODULE_1__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
97
+ /* ESM reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
98
+
99
+
100
+
101
+ })();
102
+
103
+ for(var __webpack_i__ in __webpack_exports__) {
104
+ exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
105
+ }
106
+ Object.defineProperty(exports, '__esModule', { value: true });
package/dist/index.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- export { D as DataPrefetchOptions, M as MFDataPrefetch, p as prefetchOptions } from './prefetch-4e9646e4.js';
2
- export { default as prefetchPlugin } from './plugin.js';
3
- import '@module-federation/runtime';
4
- import '@module-federation/sdk';
5
- import '@module-federation/runtime/types';
1
+ export * from './prefetch';
2
+ export * from './plugin';