@meethive/vite 0.0.3 → 0.0.4

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,13 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
5
  var __getProtoOf = Object.getPrototypeOf;
7
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
8
11
  var __copyProps = (to, from, except, desc) => {
9
12
  if (from && typeof from === "object" || typeof from === "function") {
10
13
  for (let key of __getOwnPropNames(from))
@@ -21,8 +24,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
25
  mod
23
26
  ));
24
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
- class DynamicRemoteManager {
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/federation/dynamic-remote.ts
30
+ var dynamic_remote_exports = {};
31
+ __export(dynamic_remote_exports, {
32
+ DynamicRemoteManager: () => DynamicRemoteManager,
33
+ dynamicRemoteManager: () => dynamicRemoteManager,
34
+ loadDynamicRemoteComponent: () => loadDynamicRemoteComponent,
35
+ useDynamicRemote: () => useDynamicRemote
36
+ });
37
+ module.exports = __toCommonJS(dynamic_remote_exports);
38
+
39
+ // src/federation/src/runtime/dynamic-remote.ts
40
+ var DynamicRemoteManager = class {
26
41
  remoteCache = /* @__PURE__ */ new Map();
27
42
  loadingPromises = /* @__PURE__ */ new Map();
28
43
  /**
@@ -122,8 +137,8 @@ class DynamicRemoteManager {
122
137
  const cacheKey = `${remoteName}/${componentName}`;
123
138
  return this.remoteCache.has(cacheKey);
124
139
  }
125
- }
126
- const dynamicRemoteManager = new DynamicRemoteManager();
140
+ };
141
+ var dynamicRemoteManager = new DynamicRemoteManager();
127
142
  async function loadDynamicRemoteComponent(config) {
128
143
  if (config.options) {
129
144
  await dynamicRemoteManager.addRemote(config.name, {
@@ -166,7 +181,9 @@ function isVueAvailable() {
166
181
  return false;
167
182
  }
168
183
  }
169
- let ref, onMounted, readonly;
184
+ var ref;
185
+ var onMounted;
186
+ var readonly;
170
187
  if (isVueAvailable()) {
171
188
  try {
172
189
  import("vue").then((vue) => {
@@ -179,7 +196,10 @@ if (isVueAvailable()) {
179
196
  } catch {
180
197
  }
181
198
  }
182
- exports.DynamicRemoteManager = DynamicRemoteManager;
183
- exports.dynamicRemoteManager = dynamicRemoteManager;
184
- exports.loadDynamicRemoteComponent = loadDynamicRemoteComponent;
185
- exports.useDynamicRemote = useDynamicRemote;
199
+ // Annotate the CommonJS export names for ESM import in node:
200
+ 0 && (module.exports = {
201
+ DynamicRemoteManager,
202
+ dynamicRemoteManager,
203
+ loadDynamicRemoteComponent,
204
+ useDynamicRemote
205
+ });
@@ -1,4 +1,5 @@
1
- class DynamicRemoteManager {
1
+ // src/federation/src/runtime/dynamic-remote.ts
2
+ var DynamicRemoteManager = class {
2
3
  remoteCache = /* @__PURE__ */ new Map();
3
4
  loadingPromises = /* @__PURE__ */ new Map();
4
5
  /**
@@ -98,8 +99,8 @@ class DynamicRemoteManager {
98
99
  const cacheKey = `${remoteName}/${componentName}`;
99
100
  return this.remoteCache.has(cacheKey);
100
101
  }
101
- }
102
- const dynamicRemoteManager = new DynamicRemoteManager();
102
+ };
103
+ var dynamicRemoteManager = new DynamicRemoteManager();
103
104
  async function loadDynamicRemoteComponent(config) {
104
105
  if (config.options) {
105
106
  await dynamicRemoteManager.addRemote(config.name, {
@@ -142,7 +143,9 @@ function isVueAvailable() {
142
143
  return false;
143
144
  }
144
145
  }
145
- let ref, onMounted, readonly;
146
+ var ref;
147
+ var onMounted;
148
+ var readonly;
146
149
  if (isVueAvailable()) {
147
150
  try {
148
151
  import("vue").then((vue) => {