@module-federation/runtime 1.0.0-canary.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/helpers.cjs.d.ts +2 -0
- package/helpers.cjs.js +33 -0
- package/helpers.esm.js +31 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +1927 -0
- package/index.esm.js +1917 -0
- package/package.json +40 -0
- package/share.cjs.js +782 -0
- package/share.esm.js +741 -0
- package/src/constant.d.ts +2 -0
- package/src/core.d.ts +113 -0
- package/src/global.d.ts +57 -0
- package/src/helpers.d.ts +32 -0
- package/src/index.d.ts +10 -0
- package/src/module/index.d.ts +25 -0
- package/src/plugins/generate-preload-assets.d.ts +8 -0
- package/src/plugins/snapshot/SnapshotHandler.d.ts +43 -0
- package/src/plugins/snapshot/index.d.ts +5 -0
- package/src/type/config.d.ts +94 -0
- package/src/type/index.d.ts +3 -0
- package/src/type/plugin.d.ts +20 -0
- package/src/type/preload.d.ts +25 -0
- package/src/types.d.ts +1 -0
- package/src/utils/dom.d.ts +8 -0
- package/src/utils/env.d.ts +4 -0
- package/src/utils/hooks/asyncHook.d.ts +6 -0
- package/src/utils/hooks/asyncWaterfallHooks.d.ts +10 -0
- package/src/utils/hooks/index.d.ts +6 -0
- package/src/utils/hooks/pluginSystem.d.ts +15 -0
- package/src/utils/hooks/syncHook.d.ts +12 -0
- package/src/utils/hooks/syncWaterfallHook.d.ts +9 -0
- package/src/utils/index.d.ts +6 -0
- package/src/utils/load.d.ts +17 -0
- package/src/utils/logger.d.ts +3 -0
- package/src/utils/manifest.d.ts +9 -0
- package/src/utils/plugin.d.ts +4 -0
- package/src/utils/preload.d.ts +6 -0
- package/src/utils/semver/compare.d.ts +9 -0
- package/src/utils/semver/constants.d.ts +10 -0
- package/src/utils/semver/index.d.ts +2 -0
- package/src/utils/semver/parser.d.ts +9 -0
- package/src/utils/semver/utils.d.ts +11 -0
- package/src/utils/share.d.ts +7 -0
- package/src/utils/tool.d.ts +12 -0
- package/type.cjs.d.ts +1 -0
- package/type.cjs.js +2 -0
- package/type.esm.js +1 -0
package/helpers.cjs.d.ts
ADDED
package/helpers.cjs.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var share = require('./share.cjs.js');
|
|
4
|
+
|
|
5
|
+
const ShareUtils = {
|
|
6
|
+
getGlobalShare: share.getGlobalShare,
|
|
7
|
+
getGlobalShareScope: share.getGlobalShareScope
|
|
8
|
+
};
|
|
9
|
+
const GlobalUtils = {
|
|
10
|
+
nativeGlobal: share.nativeGlobal,
|
|
11
|
+
resetFederationGlobalInfo: share.resetFederationGlobalInfo,
|
|
12
|
+
getGlobalFederationInstance: share.getGlobalFederationInstance,
|
|
13
|
+
setGlobalFederationInstance: share.setGlobalFederationInstance,
|
|
14
|
+
getGlobalFederationConstructor: share.getGlobalFederationConstructor,
|
|
15
|
+
setGlobalFederationConstructor: share.setGlobalFederationConstructor,
|
|
16
|
+
getInfoWithoutType: share.getInfoWithoutType,
|
|
17
|
+
getGlobalSnapshot: share.getGlobalSnapshot,
|
|
18
|
+
getTargetSnapshotInfoByModuleInfo: share.getTargetSnapshotInfoByModuleInfo,
|
|
19
|
+
getGlobalSnapshotInfoByModuleInfo: share.getGlobalSnapshotInfoByModuleInfo,
|
|
20
|
+
setGlobalSnapshotInfoByModuleInfo: share.setGlobalSnapshotInfoByModuleInfo,
|
|
21
|
+
addGlobalSnapshot: share.addGlobalSnapshot,
|
|
22
|
+
getRemoteEntryExports: share.getRemoteEntryExports,
|
|
23
|
+
registerGlobalPlugins: share.registerGlobalPlugins,
|
|
24
|
+
getGlobalHostPlugins: share.getGlobalHostPlugins,
|
|
25
|
+
getPreloaded: share.getPreloaded,
|
|
26
|
+
setPreloaded: share.setPreloaded
|
|
27
|
+
};
|
|
28
|
+
var helpers = {
|
|
29
|
+
global: GlobalUtils,
|
|
30
|
+
share: ShareUtils
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
module.exports = helpers;
|
package/helpers.esm.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { n as getGlobalShare, z as getGlobalShareScope, J as nativeGlobal, K as resetFederationGlobalInfo, E as getGlobalFederationInstance, H as setGlobalFederationInstance, F as getGlobalFederationConstructor, C as setGlobalFederationConstructor, o as getInfoWithoutType, u as getGlobalSnapshot, L as getTargetSnapshotInfoByModuleInfo, r as getGlobalSnapshotInfoByModuleInfo, t as setGlobalSnapshotInfoByModuleInfo, M as addGlobalSnapshot, c as getRemoteEntryExports, I as registerGlobalPlugins, g as getGlobalHostPlugins, p as getPreloaded, q as setPreloaded } from './share.esm.js';
|
|
2
|
+
|
|
3
|
+
const ShareUtils = {
|
|
4
|
+
getGlobalShare,
|
|
5
|
+
getGlobalShareScope
|
|
6
|
+
};
|
|
7
|
+
const GlobalUtils = {
|
|
8
|
+
nativeGlobal,
|
|
9
|
+
resetFederationGlobalInfo,
|
|
10
|
+
getGlobalFederationInstance,
|
|
11
|
+
setGlobalFederationInstance,
|
|
12
|
+
getGlobalFederationConstructor,
|
|
13
|
+
setGlobalFederationConstructor,
|
|
14
|
+
getInfoWithoutType,
|
|
15
|
+
getGlobalSnapshot,
|
|
16
|
+
getTargetSnapshotInfoByModuleInfo,
|
|
17
|
+
getGlobalSnapshotInfoByModuleInfo,
|
|
18
|
+
setGlobalSnapshotInfoByModuleInfo,
|
|
19
|
+
addGlobalSnapshot,
|
|
20
|
+
getRemoteEntryExports,
|
|
21
|
+
registerGlobalPlugins,
|
|
22
|
+
getGlobalHostPlugins,
|
|
23
|
+
getPreloaded,
|
|
24
|
+
setPreloaded
|
|
25
|
+
};
|
|
26
|
+
var helpers = {
|
|
27
|
+
global: GlobalUtils,
|
|
28
|
+
share: ShareUtils
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { helpers as default };
|
package/index.cjs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|