@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.
- package/LICENSE +1 -1
- package/README.md +3 -1
- package/dist/LICENSE +21 -0
- package/dist/babel.cjs +95 -0
- package/dist/babel.d.ts +1 -0
- package/dist/babel.js +5 -0
- package/dist/cli/babel.cjs +115 -0
- package/dist/cli/babel.d.ts +2 -4
- package/dist/cli/babel.js +50 -82
- package/dist/cli/index.cjs +217 -0
- package/dist/cli/index.d.ts +5 -8
- package/dist/cli/index.js +150 -197
- package/dist/cli.cjs +95 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +5 -0
- package/dist/common/constant.cjs +51 -0
- package/dist/common/constant.d.ts +1 -0
- package/dist/common/constant.js +5 -0
- package/dist/common/index.cjs +95 -0
- package/dist/common/index.js +5 -0
- package/dist/common/node-utils.cjs +100 -0
- package/dist/common/node-utils.d.ts +2 -0
- package/dist/common/node-utils.js +35 -0
- package/dist/common/runtime-utils.cjs +84 -0
- package/dist/common/runtime-utils.d.ts +5 -0
- package/dist/common/runtime-utils.js +29 -0
- package/dist/constant.cjs +51 -0
- package/dist/constant.d.ts +1 -0
- package/dist/constant.js +5 -0
- package/dist/index.cjs +106 -0
- package/dist/index.d.ts +2 -5
- package/dist/index.js +3 -346
- package/dist/logger/index.cjs +60 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger/index.js +10 -0
- package/dist/plugin.cjs +234 -0
- package/dist/plugin.d.ts +3 -5
- package/dist/plugin.js +167 -340
- package/dist/prefetch.cjs +197 -0
- package/dist/{prefetch-4e9646e4.d.ts → prefetch.d.ts} +14 -17
- package/dist/prefetch.js +149 -0
- package/dist/react/hooks.cjs +144 -0
- package/dist/react/hooks.d.ts +11 -0
- package/dist/react/hooks.js +86 -0
- package/dist/react/index.cjs +95 -0
- package/dist/react/index.d.ts +1 -16
- package/dist/react/index.js +2 -283
- package/dist/react/utils.cjs +65 -0
- package/dist/react/utils.d.ts +1 -0
- package/dist/react/utils.js +15 -0
- package/dist/react.cjs +95 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.js +5 -0
- package/dist/universal/index.cjs +81 -0
- package/dist/universal/index.d.ts +2 -8
- package/dist/universal/index.js +24 -196
- package/dist/universal.cjs +95 -0
- package/dist/universal.d.ts +1 -0
- package/dist/universal.js +5 -0
- package/package.json +76 -40
- package/CHANGELOG.md +0 -9
- package/__tests__/babel.spec.ts +0 -75
- package/__tests__/prefetch.spec.ts +0 -138
- package/__tests__/react.spec.ts +0 -119
- package/dist/esm/chunk-AJPO2B2T.js +0 -30
- package/dist/esm/chunk-EZUCZHGV.js +0 -11
- package/dist/esm/chunk-ISLXMAIA.js +0 -155
- package/dist/esm/chunk-KI4QGPIS.js +0 -32
- package/dist/esm/chunk-TTJJJ2WZ.js +0 -7
- package/dist/esm/chunk-VVZ6XIM6.js +0 -166
- package/dist/esm/cli/babel.js +0 -57
- package/dist/esm/cli/index.js +0 -178
- package/dist/esm/index.js +0 -13
- package/dist/esm/plugin.js +0 -12
- package/dist/esm/react/index.js +0 -94
- package/dist/esm/shared/index.js +0 -27
- package/dist/esm/universal/index.js +0 -9
- package/dist/shared/index.d.ts +0 -5
- package/dist/shared/index.js +0 -48
- package/jest.config.js +0 -29
- package/project.json +0 -21
- package/src/cli/babel.ts +0 -94
- package/src/cli/index.ts +0 -171
- package/src/common/constant.ts +0 -1
- package/src/common/node-utils.ts +0 -24
- package/src/common/runtime-utils.ts +0 -34
- package/src/index.ts +0 -2
- package/src/logger/index.ts +0 -3
- package/src/plugin.ts +0 -191
- package/src/prefetch.ts +0 -207
- package/src/react/hooks.ts +0 -95
- package/src/react/index.ts +0 -1
- package/src/react/utils.ts +0 -11
- package/src/shared/index.ts +0 -26
- package/src/universal/index.ts +0 -27
- package/tsconfig.json +0 -27
- package/tsup.config.ts +0 -35
- /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,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";
|
package/dist/constant.js
ADDED
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
|
|
2
|
-
export
|
|
3
|
-
import '@module-federation/runtime';
|
|
4
|
-
import '@module-federation/sdk';
|
|
5
|
-
import '@module-federation/runtime/types';
|
|
1
|
+
export * from './prefetch';
|
|
2
|
+
export * from './plugin';
|