rollipop 0.1.0-alpha.3 → 0.1.0-alpha.5
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/CHANGELOG.md +53 -0
- package/client.d.ts +3 -0
- package/dist/{chunk-BAz01cYq.js → chunk-DJulfCLt.js} +5 -1
- package/dist/hmr-client.js +358 -0
- package/dist/hmr-runtime.js +533 -0
- package/dist/index.cjs +4537 -73
- package/dist/index.d.cts +769 -14
- package/dist/index.d.ts +772 -14
- package/dist/index.js +4476 -45
- package/dist/pluginutils.cjs +210 -0
- package/dist/pluginutils.d.cts +394 -0
- package/dist/pluginutils.d.ts +396 -0
- package/dist/pluginutils.js +176 -0
- package/dist/runtime.cjs +15 -7
- package/dist/runtime.d.cts +62 -1
- package/dist/runtime.d.ts +2 -1
- package/dist/runtime.js +16 -1
- package/package.json +63 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# rollipop
|
|
2
|
+
|
|
3
|
+
## 0.1.0-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- eaa76df: allow `TopLevelFilterExpression` and expose `/pluginutils` subpath
|
|
8
|
+
- d12877d: add `babel`, `swc` configs
|
|
9
|
+
- 65fe653: add websocket param to `HMRCustomHandler`
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- fix yarn workspace
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 0.1.0-alpha.3
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- fe6a1db: npm oidc
|
|
23
|
+
- Updated dependencies [fe6a1db]
|
|
24
|
+
|
|
25
|
+
## 0.1.0-alpha.2
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- e8d32a7: improve `configureServer` hook
|
|
30
|
+
- 5cee54c: supports custom HMR handler
|
|
31
|
+
- 4768f8f: add `configureServer`
|
|
32
|
+
- Updated dependencies [e8d32a7]
|
|
33
|
+
- Updated dependencies [8118bc3]
|
|
34
|
+
- Updated dependencies [5cee54c]
|
|
35
|
+
- Updated dependencies [4768f8f]
|
|
36
|
+
|
|
37
|
+
## 0.1.0-alpha.1
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- 3d72e91: add `config` and `configResolved` for plugins
|
|
42
|
+
- Updated dependencies [e21eeb5]
|
|
43
|
+
- Updated dependencies [3d72e91]
|
|
44
|
+
|
|
45
|
+
## 0.1.0-alpha.0
|
|
46
|
+
|
|
47
|
+
### Minor Changes
|
|
48
|
+
|
|
49
|
+
- 7a1d9a7: pre-alpha
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [7a1d9a7]
|
package/client.d.ts
ADDED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
|
|
1
3
|
//#region rolldown:runtime
|
|
2
4
|
var __defProp = Object.defineProperty;
|
|
5
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
3
6
|
var __export = (all, symbols) => {
|
|
4
7
|
let target = {};
|
|
5
8
|
for (var name in all) {
|
|
@@ -13,6 +16,7 @@ var __export = (all, symbols) => {
|
|
|
13
16
|
}
|
|
14
17
|
return target;
|
|
15
18
|
};
|
|
19
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
16
20
|
|
|
17
21
|
//#endregion
|
|
18
|
-
export { __export as t };
|
|
22
|
+
export { __export as n, __require as r, __commonJSMin as t };
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import prettyFormat from "pretty-format";
|
|
2
|
+
import LogBox from "../LogBox/LogBox";
|
|
3
|
+
import NativeRedBox from "../NativeModules/specs/NativeRedBox";
|
|
4
|
+
import DevLoadingView from "./DevLoadingView";
|
|
5
|
+
import Platform from "./Platform";
|
|
6
|
+
|
|
7
|
+
//#region rolldown:runtime
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
9
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
10
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/runtime/hmr-client.ts
|
|
15
|
+
function _array_like_to_array(arr, len) {
|
|
16
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
17
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
18
|
+
return arr2;
|
|
19
|
+
}
|
|
20
|
+
function _array_with_holes(arr) {
|
|
21
|
+
if (Array.isArray(arr)) return arr;
|
|
22
|
+
}
|
|
23
|
+
function _class_call_check(instance$1, Constructor) {
|
|
24
|
+
if (!(instance$1 instanceof Constructor)) {
|
|
25
|
+
throw new TypeError("Cannot call a class as a function");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function _defineProperties(target, props) {
|
|
29
|
+
for (var i = 0; i < props.length; i++) {
|
|
30
|
+
var descriptor = props[i];
|
|
31
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
+
descriptor.configurable = true;
|
|
33
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
+
return Constructor;
|
|
41
|
+
}
|
|
42
|
+
function _iterable_to_array_limit(arr, i) {
|
|
43
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44
|
+
if (_i == null) return;
|
|
45
|
+
var _arr = [];
|
|
46
|
+
var _n = true;
|
|
47
|
+
var _d = false;
|
|
48
|
+
var _s, _e;
|
|
49
|
+
try {
|
|
50
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
51
|
+
_arr.push(_s.value);
|
|
52
|
+
if (i && _arr.length === i) break;
|
|
53
|
+
}
|
|
54
|
+
} catch (err) {
|
|
55
|
+
_d = true;
|
|
56
|
+
_e = err;
|
|
57
|
+
} finally {
|
|
58
|
+
try {
|
|
59
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
60
|
+
} finally {
|
|
61
|
+
if (_d) throw _e;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return _arr;
|
|
65
|
+
}
|
|
66
|
+
function _non_iterable_rest() {
|
|
67
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
|
+
}
|
|
69
|
+
function _sliced_to_array(arr, i) {
|
|
70
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
71
|
+
}
|
|
72
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
73
|
+
if (!o) return;
|
|
74
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
75
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
76
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
77
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
78
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
79
|
+
}
|
|
80
|
+
var HMRClient = /* @__PURE__ */ function() {
|
|
81
|
+
"use strict";
|
|
82
|
+
function HMRClient$1() {
|
|
83
|
+
_class_call_check(this, HMRClient$1);
|
|
84
|
+
this.enabled = true;
|
|
85
|
+
this._socketHolder = null;
|
|
86
|
+
this.unavailableMessage = null;
|
|
87
|
+
this.compileErrorMessage = null;
|
|
88
|
+
this.pendingUpdatesCount = 0;
|
|
89
|
+
this.pendingLogs = [];
|
|
90
|
+
}
|
|
91
|
+
_create_class(HMRClient$1, [
|
|
92
|
+
{
|
|
93
|
+
key: "enable",
|
|
94
|
+
value: function enable() {
|
|
95
|
+
if (this.unavailableMessage) {
|
|
96
|
+
throw new Error(this.unavailableMessage);
|
|
97
|
+
}
|
|
98
|
+
if (this._socketHolder == null) {
|
|
99
|
+
throw new Error(HMRClient$1.STARTUP_ERROR);
|
|
100
|
+
}
|
|
101
|
+
this.enabled = true;
|
|
102
|
+
this.showCompileErrorIfNeeded();
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
key: "disable",
|
|
107
|
+
value: function disable() {
|
|
108
|
+
this.enabled = false;
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
key: "registerBundle",
|
|
113
|
+
value: function registerBundle(requestUrl) {
|
|
114
|
+
if (this._socketHolder == null) {
|
|
115
|
+
throw new Error(HMRClient$1.STARTUP_ERROR);
|
|
116
|
+
}
|
|
117
|
+
if (!requestUrl.startsWith(this._socketHolder.origin)) {
|
|
118
|
+
console.warn("[HMR]: Cannot register bundle from unknown origin:\n".concat(requestUrl, "\n") + "(expected: ".concat(this._socketHolder.origin, ")"));
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
key: "log",
|
|
125
|
+
value: function log(level, data) {
|
|
126
|
+
if (this._socketHolder == null) {
|
|
127
|
+
this.pendingLogs.push([level, data]);
|
|
128
|
+
if (this.pendingLogs.length > HMRClient$1.MAX_PENDING_LOGS) {
|
|
129
|
+
this.pendingLogs.shift();
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
try {
|
|
134
|
+
var prettifyData = data.map(function(item) {
|
|
135
|
+
return typeof item === "string" ? item : prettyFormat.format(item, {
|
|
136
|
+
escapeString: true,
|
|
137
|
+
highlight: true,
|
|
138
|
+
maxDepth: 3,
|
|
139
|
+
min: true,
|
|
140
|
+
plugins: [prettyFormat.plugins.ReactElement]
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
this.send({
|
|
144
|
+
type: "hmr:log",
|
|
145
|
+
level,
|
|
146
|
+
data: prettifyData
|
|
147
|
+
});
|
|
148
|
+
} catch (unused) {}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
key: "setup",
|
|
153
|
+
value: function setup(platform, bundleEntry, host, port) {
|
|
154
|
+
var _this = this;
|
|
155
|
+
var isEnabled = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : true, protocol = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : "http";
|
|
156
|
+
if (!__DEV__) {
|
|
157
|
+
throw new Error("HMR is only available in development mode");
|
|
158
|
+
}
|
|
159
|
+
if (this._socketHolder != null) {
|
|
160
|
+
throw new Error("Cannot initialize HMRClient more than once");
|
|
161
|
+
}
|
|
162
|
+
if (platform == null) {
|
|
163
|
+
throw new Error("Missing required parameter `platform`");
|
|
164
|
+
}
|
|
165
|
+
if (bundleEntry == null) {
|
|
166
|
+
throw new Error("Missing required parameter `bundleEntry`");
|
|
167
|
+
}
|
|
168
|
+
if (host == null) {
|
|
169
|
+
throw new Error("Missing required parameter `host`");
|
|
170
|
+
}
|
|
171
|
+
var serverHost = port !== null && port !== "" ? "".concat(host, ":").concat(port) : host;
|
|
172
|
+
var origin = "".concat(protocol, "://").concat(serverHost);
|
|
173
|
+
var socket = new __ROLLIPOP_GLOBAL__.WebSocket("".concat(origin, "/hot"));
|
|
174
|
+
this._socketHolder = {
|
|
175
|
+
socket,
|
|
176
|
+
origin
|
|
177
|
+
};
|
|
178
|
+
socket.addEventListener("open", function() {
|
|
179
|
+
socket.send(JSON.stringify({
|
|
180
|
+
type: "hmr:connected",
|
|
181
|
+
bundleEntry,
|
|
182
|
+
platform
|
|
183
|
+
}));
|
|
184
|
+
_this.handleConnection();
|
|
185
|
+
});
|
|
186
|
+
socket.addEventListener("error", function(event) {
|
|
187
|
+
_this.handleConnectionError(event.error, origin);
|
|
188
|
+
});
|
|
189
|
+
socket.addEventListener("message", function(event) {
|
|
190
|
+
_this.handleMessage(event);
|
|
191
|
+
});
|
|
192
|
+
socket.addEventListener("close", function(event) {
|
|
193
|
+
_this.handleClose(event);
|
|
194
|
+
});
|
|
195
|
+
if (__ROLLIPOP_GLOBAL__.__rolldown_runtime__ != null) {
|
|
196
|
+
__ROLLIPOP_GLOBAL__.__rolldown_runtime__.setup(socket, origin);
|
|
197
|
+
}
|
|
198
|
+
this.enabled = isEnabled;
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
key: "send",
|
|
203
|
+
value: function send(payload) {
|
|
204
|
+
if (this._socketHolder == null) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (this._socketHolder.socket.readyState === WebSocket.OPEN) {
|
|
208
|
+
this._socketHolder.socket.send(JSON.stringify(payload));
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
key: "flushEarlyLogs",
|
|
214
|
+
value: function flushEarlyLogs() {
|
|
215
|
+
if (this._socketHolder == null || this._socketHolder.socket.readyState !== WebSocket.OPEN) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
219
|
+
try {
|
|
220
|
+
for (var _iterator = this.pendingLogs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
221
|
+
var _step_value = _sliced_to_array(_step.value, 2), level = _step_value[0], data = _step_value[1];
|
|
222
|
+
this.send({
|
|
223
|
+
type: "hmr:log",
|
|
224
|
+
level,
|
|
225
|
+
data
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
} catch (err) {
|
|
229
|
+
_didIteratorError = true;
|
|
230
|
+
_iteratorError = err;
|
|
231
|
+
} finally {
|
|
232
|
+
try {
|
|
233
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
234
|
+
_iterator.return();
|
|
235
|
+
}
|
|
236
|
+
} finally {
|
|
237
|
+
if (_didIteratorError) {
|
|
238
|
+
throw _iteratorError;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
this.pendingLogs.length = 0;
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
key: "dismissRedbox",
|
|
247
|
+
value: function dismissRedbox() {
|
|
248
|
+
if (Platform.OS === "ios" && NativeRedBox != null && NativeRedBox.dismiss != null) {
|
|
249
|
+
NativeRedBox.dismiss();
|
|
250
|
+
} else {
|
|
251
|
+
var NativeExceptionsManager = __require("../Core/NativeExceptionsManager").default;
|
|
252
|
+
if (NativeExceptionsManager != null && NativeExceptionsManager.dismissRedbox) {
|
|
253
|
+
NativeExceptionsManager.dismissRedbox();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
key: "showCompileErrorIfNeeded",
|
|
260
|
+
value: function showCompileErrorIfNeeded() {
|
|
261
|
+
if (this.compileErrorMessage == null) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
this.dismissRedbox();
|
|
265
|
+
var error = new Error(this.compileErrorMessage);
|
|
266
|
+
this.compileErrorMessage = null;
|
|
267
|
+
Object.defineProperty(error, "preventSymbolication", { value: true });
|
|
268
|
+
throw error;
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
key: "showUnavailableMessageIfNeeded",
|
|
273
|
+
value: function showUnavailableMessageIfNeeded() {
|
|
274
|
+
if (this.unavailableMessage == null) {
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
DevLoadingView.hide();
|
|
278
|
+
if (this.enabled) {
|
|
279
|
+
DevLoadingView.showMessage("Fast Refresh disconnected. Reload app to reconnect.", "error", { dismissButton: true });
|
|
280
|
+
console.warn(this.unavailableMessage);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
key: "handleConnection",
|
|
286
|
+
value: function handleConnection() {
|
|
287
|
+
DevLoadingView.hide();
|
|
288
|
+
this.flushEarlyLogs();
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
key: "handleConnectionError",
|
|
293
|
+
value: function handleConnectionError(error, origin) {
|
|
294
|
+
var _this_unavailableMessage;
|
|
295
|
+
var errorMessage = "Cannot connect to Rollipop.\n\n" + "Try the following to fix the issue:\n" + "- Ensure that Rollipop is running and available on the same network";
|
|
296
|
+
if (Platform.OS === "ios") {
|
|
297
|
+
errorMessage += "- Ensure that the Rollipop URL is correctly set in AppDelegate";
|
|
298
|
+
} else {
|
|
299
|
+
errorMessage += "- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices\n" + "- If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device\n" + "- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081";
|
|
300
|
+
}
|
|
301
|
+
errorMessage += "\n\nURL: ".concat(origin) + "\n\nError: ".concat(error.message);
|
|
302
|
+
(_this_unavailableMessage = this.unavailableMessage) !== null && _this_unavailableMessage !== void 0 ? _this_unavailableMessage : this.unavailableMessage = errorMessage;
|
|
303
|
+
this.showCompileErrorIfNeeded();
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
key: "handleMessage",
|
|
308
|
+
value: function handleMessage(message) {
|
|
309
|
+
var data = JSON.parse(String(message.data));
|
|
310
|
+
if (!this.enabled && data.type.startsWith("hmr:")) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
switch (data.type) {
|
|
314
|
+
case "hmr:update-start":
|
|
315
|
+
this.pendingUpdatesCount++;
|
|
316
|
+
this.compileErrorMessage = null;
|
|
317
|
+
DevLoadingView.showMessage("Refreshing...", "refresh");
|
|
318
|
+
break;
|
|
319
|
+
case "hmr:update":
|
|
320
|
+
this.dismissRedbox();
|
|
321
|
+
LogBox.clearAllLogs();
|
|
322
|
+
break;
|
|
323
|
+
case "hmr:update-done":
|
|
324
|
+
this.pendingUpdatesCount = Math.max(0, this.pendingUpdatesCount - 1);
|
|
325
|
+
if (this.pendingUpdatesCount === 0) {
|
|
326
|
+
DevLoadingView.hide();
|
|
327
|
+
}
|
|
328
|
+
break;
|
|
329
|
+
case "hmr:error":
|
|
330
|
+
this.compileErrorMessage = data.payload.message;
|
|
331
|
+
this.showCompileErrorIfNeeded();
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
key: "handleClose",
|
|
338
|
+
value: function handleClose(event) {
|
|
339
|
+
var _this_unavailableMessage;
|
|
340
|
+
var code = event.code, reason = event.reason;
|
|
341
|
+
var isNormalOrUnsetCloseReason = code === 1e3 || code === 1005;
|
|
342
|
+
var message = isNormalOrUnsetCloseReason ? "Disconnected from Rollipop." : "Disconnected from Rollipop (".concat(code, ": \"").concat(reason, "\").");
|
|
343
|
+
(_this_unavailableMessage = this.unavailableMessage) !== null && _this_unavailableMessage !== void 0 ? _this_unavailableMessage : this.unavailableMessage = message + "\n\n" + "To reconnect:\n" + "- Ensure that Rollipop is running and available on the same network\n" + "- Reload this app (will trigger further help if Rollipop cannot be connected to)\n";
|
|
344
|
+
this.showUnavailableMessageIfNeeded();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
]);
|
|
348
|
+
return HMRClient$1;
|
|
349
|
+
}();
|
|
350
|
+
HMRClient.STARTUP_ERROR = "Expected HMRClient.setup() call at startup";
|
|
351
|
+
HMRClient.MAX_PENDING_LOGS = 100;
|
|
352
|
+
var instance = new HMRClient();
|
|
353
|
+
var hmr_client_default = Object.defineProperty(instance, "default", { get: function() {
|
|
354
|
+
return instance;
|
|
355
|
+
} });
|
|
356
|
+
|
|
357
|
+
//#endregion
|
|
358
|
+
export { hmr_client_default as default };
|