@module-federation/runtime 0.0.0-next-20240829065118 → 0.0.0-next-20240830065016

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.
@@ -1,10 +1,17 @@
1
1
  'use strict';
2
2
 
3
3
  var share = require('./share.cjs.js');
4
- require('@swc/helpers/_/_extends');
5
- require('@swc/helpers/_/_object_without_properties_loose');
6
4
  require('@module-federation/sdk');
7
5
 
6
+ var pluginHelper = /*#__PURE__*/Object.freeze({
7
+ __proto__: null,
8
+ SyncHook: share.SyncHook,
9
+ AsyncHook: share.AsyncHook,
10
+ SyncWaterfallHook: share.SyncWaterfallHook,
11
+ AsyncWaterfallHook: share.AsyncWaterfallHook,
12
+ PluginSystem: share.PluginSystem
13
+ });
14
+
8
15
  const ShareUtils = {
9
16
  getRegisteredShare: share.getRegisteredShare,
10
17
  getGlobalShareScope: share.getGlobalShareScope
@@ -27,7 +34,9 @@ const GlobalUtils = {
27
34
  registerGlobalPlugins: share.registerGlobalPlugins,
28
35
  getGlobalHostPlugins: share.getGlobalHostPlugins,
29
36
  getPreloaded: share.getPreloaded,
30
- setPreloaded: share.setPreloaded
37
+ setPreloaded: share.setPreloaded,
38
+ registerPlugins: share.registerPlugins,
39
+ pluginHelper
31
40
  };
32
41
  var helpers = {
33
42
  global: GlobalUtils,
@@ -1,8 +1,15 @@
1
- import { o as getRegisteredShare, y as getGlobalShareScope, G as Global, I as nativeGlobal, J as resetFederationGlobalInfo, C as getGlobalFederationInstance, F as setGlobalFederationInstance, E as getGlobalFederationConstructor, B as setGlobalFederationConstructor, m as getInfoWithoutType, u as getGlobalSnapshot, K as getTargetSnapshotInfoByModuleInfo, q as getGlobalSnapshotInfoByModuleInfo, t as setGlobalSnapshotInfoByModuleInfo, r as addGlobalSnapshot, c as getRemoteEntryExports, H as registerGlobalPlugins, g as getGlobalHostPlugins, n as getPreloaded, s as setPreloaded } from './share.esm.js';
2
- import '@swc/helpers/_/_extends';
3
- import '@swc/helpers/_/_object_without_properties_loose';
1
+ import { z as SyncHook, A as AsyncHook, S as SyncWaterfallHook, t as AsyncWaterfallHook, P as PluginSystem, n as getRegisteredShare, x as getGlobalShareScope, G as Global, K as nativeGlobal, L as resetFederationGlobalInfo, F as getGlobalFederationInstance, I as setGlobalFederationInstance, H as getGlobalFederationConstructor, E as setGlobalFederationConstructor, k as getInfoWithoutType, u as getGlobalSnapshot, M as getTargetSnapshotInfoByModuleInfo, p as getGlobalSnapshotInfoByModuleInfo, r as setGlobalSnapshotInfoByModuleInfo, q as addGlobalSnapshot, b as getRemoteEntryExports, J as registerGlobalPlugins, N as getGlobalHostPlugins, l as getPreloaded, m as setPreloaded, B as registerPlugins } from './share.esm.js';
4
2
  import '@module-federation/sdk';
5
3
 
4
+ var pluginHelper = /*#__PURE__*/Object.freeze({
5
+ __proto__: null,
6
+ SyncHook: SyncHook,
7
+ AsyncHook: AsyncHook,
8
+ SyncWaterfallHook: SyncWaterfallHook,
9
+ AsyncWaterfallHook: AsyncWaterfallHook,
10
+ PluginSystem: PluginSystem
11
+ });
12
+
6
13
  const ShareUtils = {
7
14
  getRegisteredShare,
8
15
  getGlobalShareScope
@@ -25,7 +32,9 @@ const GlobalUtils = {
25
32
  registerGlobalPlugins,
26
33
  getGlobalHostPlugins,
27
34
  getPreloaded,
28
- setPreloaded
35
+ setPreloaded,
36
+ registerPlugins,
37
+ pluginHelper
29
38
  };
30
39
  var helpers = {
31
40
  global: GlobalUtils,