@shuvi/error-overlay 1.0.0-rc.6
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/lib/client.d.ts +15 -0
- package/lib/client.js +168 -0
- package/lib/constants.d.ts +7 -0
- package/lib/constants.js +10 -0
- package/lib/iframe-bundle.js +2629 -0
- package/lib/iframeScript.d.ts +1 -0
- package/lib/iframeScript.js +66 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +22 -0
- package/lib/middleware/helper/createOriginalStackFrame.d.ts +15 -0
- package/lib/middleware/helper/createOriginalStackFrame.js +59 -0
- package/lib/middleware/helper/findOriginalSourcePositionAndContent.d.ts +7 -0
- package/lib/middleware/helper/findOriginalSourcePositionAndContent.js +49 -0
- package/lib/middleware/helper/getModuleById.d.ts +2 -0
- package/lib/middleware/helper/getModuleById.js +7 -0
- package/lib/middleware/helper/getOriginalStackFrame.d.ts +6 -0
- package/lib/middleware/helper/getOriginalStackFrame.js +79 -0
- package/lib/middleware/helper/getSourceById.d.ts +6 -0
- package/lib/middleware/helper/getSourceById.js +129 -0
- package/lib/middleware/helper/getSourceMapUrl.d.ts +1 -0
- package/lib/middleware/helper/getSourceMapUrl.js +19 -0
- package/lib/middleware/helper/getSourcePath.d.ts +1 -0
- package/lib/middleware/helper/getSourcePath.js +17 -0
- package/lib/middleware/index.d.ts +2 -0
- package/lib/middleware/index.js +7 -0
- package/lib/middleware/launchEditorMiddleware.d.ts +2 -0
- package/lib/middleware/launchEditorMiddleware.js +35 -0
- package/lib/middleware/stackFrameMiddleware.d.ts +2 -0
- package/lib/middleware/stackFrameMiddleware.js +103 -0
- package/lib/view/ErrorOverlay.d.ts +2 -0
- package/lib/view/ErrorOverlay.js +80 -0
- package/lib/view/components/Dialog/Dialog.d.ts +10 -0
- package/lib/view/components/Dialog/Dialog.js +75 -0
- package/lib/view/components/Dialog/DialogBody.d.ts +7 -0
- package/lib/view/components/Dialog/DialogBody.js +8 -0
- package/lib/view/components/Dialog/DialogContent.d.ts +7 -0
- package/lib/view/components/Dialog/DialogContent.js +8 -0
- package/lib/view/components/Dialog/DialogHeader.d.ts +7 -0
- package/lib/view/components/Dialog/DialogHeader.js +8 -0
- package/lib/view/components/Dialog/index.d.ts +5 -0
- package/lib/view/components/Dialog/index.js +13 -0
- package/lib/view/components/Dialog/styles.d.ts +2 -0
- package/lib/view/components/Dialog/styles.js +92 -0
- package/lib/view/components/Errors/CallStackFrame/CallStackFrame.d.ts +10 -0
- package/lib/view/components/Errors/CallStackFrame/CallStackFrame.js +50 -0
- package/lib/view/components/Errors/CallStackFrame/index.d.ts +1 -0
- package/lib/view/components/Errors/CallStackFrame/index.js +5 -0
- package/lib/view/components/Errors/CodeFrame/CodeFrame.d.ts +7 -0
- package/lib/view/components/Errors/CodeFrame/CodeFrame.js +79 -0
- package/lib/view/components/Errors/CodeFrame/index.d.ts +1 -0
- package/lib/view/components/Errors/CodeFrame/index.js +5 -0
- package/lib/view/components/Errors/Errors.d.ts +7 -0
- package/lib/view/components/Errors/Errors.js +62 -0
- package/lib/view/components/Errors/index.d.ts +2 -0
- package/lib/view/components/Errors/index.js +7 -0
- package/lib/view/components/Errors/styles.d.ts +1 -0
- package/lib/view/components/Errors/styles.js +99 -0
- package/lib/view/components/Icons/ArrowLeftIcon.d.ts +3 -0
- package/lib/view/components/Icons/ArrowLeftIcon.js +8 -0
- package/lib/view/components/Icons/ArrowRightIcon.d.ts +3 -0
- package/lib/view/components/Icons/ArrowRightIcon.js +8 -0
- package/lib/view/components/Icons/CloseIcon.d.ts +3 -0
- package/lib/view/components/Icons/CloseIcon.js +8 -0
- package/lib/view/components/Icons/ExternalLinkIcon.d.ts +3 -0
- package/lib/view/components/Icons/ExternalLinkIcon.js +8 -0
- package/lib/view/components/Icons/WarningIcon.d.ts +3 -0
- package/lib/view/components/Icons/WarningIcon.js +8 -0
- package/lib/view/components/Icons/index.d.ts +5 -0
- package/lib/view/components/Icons/index.js +13 -0
- package/lib/view/components/NavigationBar/NavigationBar.d.ts +10 -0
- package/lib/view/components/NavigationBar/NavigationBar.js +108 -0
- package/lib/view/components/NavigationBar/index.d.ts +2 -0
- package/lib/view/components/NavigationBar/index.js +7 -0
- package/lib/view/components/NavigationBar/styles.d.ts +2 -0
- package/lib/view/components/NavigationBar/styles.js +62 -0
- package/lib/view/components/Overlay/Overlay.d.ts +8 -0
- package/lib/view/components/Overlay/Overlay.js +39 -0
- package/lib/view/components/Overlay/body-locker.d.ts +2 -0
- package/lib/view/components/Overlay/body-locker.js +37 -0
- package/lib/view/components/Overlay/index.d.ts +2 -0
- package/lib/view/components/Overlay/index.js +7 -0
- package/lib/view/components/Overlay/styles.d.ts +2 -0
- package/lib/view/components/Overlay/styles.js +45 -0
- package/lib/view/components/ShadowPortal.d.ts +5 -0
- package/lib/view/components/ShadowPortal.js +47 -0
- package/lib/view/components/Terminal/Terminal.d.ts +5 -0
- package/lib/view/components/Terminal/Terminal.js +47 -0
- package/lib/view/components/Terminal/index.d.ts +2 -0
- package/lib/view/components/Terminal/index.js +7 -0
- package/lib/view/components/Terminal/styles.d.ts +2 -0
- package/lib/view/components/Terminal/styles.js +31 -0
- package/lib/view/components/Toast/Toast.d.ts +7 -0
- package/lib/view/components/Toast/Toast.js +8 -0
- package/lib/view/components/Toast/index.d.ts +2 -0
- package/lib/view/components/Toast/index.js +7 -0
- package/lib/view/components/Toast/styles.d.ts +2 -0
- package/lib/view/components/Toast/styles.js +31 -0
- package/lib/view/container/BuildError.d.ts +6 -0
- package/lib/view/container/BuildError.js +55 -0
- package/lib/view/container/RuntimeError.d.ts +11 -0
- package/lib/view/container/RuntimeError.js +205 -0
- package/lib/view/container/index.d.ts +2 -0
- package/lib/view/container/index.js +7 -0
- package/lib/view/errorTypeHandler.d.ts +27 -0
- package/lib/view/errorTypeHandler.js +42 -0
- package/lib/view/helpers/getErrorByType.d.ts +9 -0
- package/lib/view/helpers/getErrorByType.js +36 -0
- package/lib/view/helpers/nodeStackFrames.d.ts +7 -0
- package/lib/view/helpers/nodeStackFrames.js +70 -0
- package/lib/view/helpers/noop-template.d.ts +1 -0
- package/lib/view/helpers/noop-template.js +9 -0
- package/lib/view/helpers/parseStack.d.ts +3 -0
- package/lib/view/helpers/parseStack.js +31 -0
- package/lib/view/helpers/stack-frame.d.ts +12 -0
- package/lib/view/helpers/stack-frame.js +60 -0
- package/lib/view/hooks/use-on-click-outside.d.ts +1 -0
- package/lib/view/hooks/use-on-click-outside.js +49 -0
- package/lib/view/styles/Base.d.ts +2 -0
- package/lib/view/styles/Base.js +84 -0
- package/lib/view/styles/ComponentStyles.d.ts +2 -0
- package/lib/view/styles/ComponentStyles.js +27 -0
- package/lib/view/styles/CssReset.d.ts +2 -0
- package/lib/view/styles/CssReset.js +361 -0
- package/lib/view/styles/index.d.ts +3 -0
- package/lib/view/styles/index.js +9 -0
- package/package.json +50 -0
- package/umd/client.d.ts +15 -0
- package/umd/constants.d.ts +7 -0
- package/umd/iframeScript.d.ts +1 -0
- package/umd/index.d.ts +2 -0
- package/umd/index.js +460 -0
- package/umd/middleware/helper/createOriginalStackFrame.d.ts +15 -0
- package/umd/middleware/helper/findOriginalSourcePositionAndContent.d.ts +7 -0
- package/umd/middleware/helper/getModuleById.d.ts +2 -0
- package/umd/middleware/helper/getOriginalStackFrame.d.ts +6 -0
- package/umd/middleware/helper/getSourceById.d.ts +6 -0
- package/umd/middleware/helper/getSourceMapUrl.d.ts +1 -0
- package/umd/middleware/helper/getSourcePath.d.ts +1 -0
- package/umd/middleware/helper/index.d.ts +5 -0
- package/umd/middleware/index.d.ts +2 -0
- package/umd/middleware/launchEditorMiddleware.d.ts +2 -0
- package/umd/middleware/stackFrameMiddleware.d.ts +2 -0
- package/umd/view/ErrorOverlay.d.ts +2 -0
- package/umd/view/components/Dialog/Dialog.d.ts +10 -0
- package/umd/view/components/Dialog/DialogBody.d.ts +7 -0
- package/umd/view/components/Dialog/DialogContent.d.ts +7 -0
- package/umd/view/components/Dialog/DialogHeader.d.ts +7 -0
- package/umd/view/components/Dialog/index.d.ts +5 -0
- package/umd/view/components/Dialog/styles.d.ts +2 -0
- package/umd/view/components/Errors/CallStackFrame/CallStackFrame.d.ts +10 -0
- package/umd/view/components/Errors/CallStackFrame/index.d.ts +1 -0
- package/umd/view/components/Errors/CodeFrame/CodeFrame.d.ts +7 -0
- package/umd/view/components/Errors/CodeFrame/index.d.ts +1 -0
- package/umd/view/components/Errors/Errors.d.ts +7 -0
- package/umd/view/components/Errors/index.d.ts +2 -0
- package/umd/view/components/Errors/styles.d.ts +1 -0
- package/umd/view/components/Icons/ArrowLeftIcon.d.ts +3 -0
- package/umd/view/components/Icons/ArrowRightIcon.d.ts +3 -0
- package/umd/view/components/Icons/CloseIcon.d.ts +3 -0
- package/umd/view/components/Icons/ExternalLinkIcon.d.ts +3 -0
- package/umd/view/components/Icons/WarningIcon.d.ts +3 -0
- package/umd/view/components/Icons/index.d.ts +5 -0
- package/umd/view/components/NavigationBar/NavigationBar.d.ts +10 -0
- package/umd/view/components/NavigationBar/index.d.ts +2 -0
- package/umd/view/components/NavigationBar/styles.d.ts +2 -0
- package/umd/view/components/Overlay/Overlay.d.ts +8 -0
- package/umd/view/components/Overlay/body-locker.d.ts +2 -0
- package/umd/view/components/Overlay/index.d.ts +2 -0
- package/umd/view/components/Overlay/styles.d.ts +2 -0
- package/umd/view/components/ShadowPortal.d.ts +5 -0
- package/umd/view/components/Terminal/Terminal.d.ts +5 -0
- package/umd/view/components/Terminal/index.d.ts +2 -0
- package/umd/view/components/Terminal/styles.d.ts +2 -0
- package/umd/view/components/Toast/Toast.d.ts +7 -0
- package/umd/view/components/Toast/index.d.ts +2 -0
- package/umd/view/components/Toast/styles.d.ts +2 -0
- package/umd/view/container/BuildError.d.ts +6 -0
- package/umd/view/container/RuntimeError.d.ts +11 -0
- package/umd/view/container/index.d.ts +2 -0
- package/umd/view/errorTypeHandler.d.ts +27 -0
- package/umd/view/helpers/getErrorByType.d.ts +9 -0
- package/umd/view/helpers/nodeStackFrames.d.ts +7 -0
- package/umd/view/helpers/noop-template.d.ts +1 -0
- package/umd/view/helpers/parseStack.d.ts +3 -0
- package/umd/view/helpers/stack-frame.d.ts +12 -0
- package/umd/view/hooks/use-on-click-outside.d.ts +1 -0
- package/umd/view/styles/Base.d.ts +2 -0
- package/umd/view/styles/ComponentStyles.d.ts +2 -0
- package/umd/view/styles/CssReset.d.ts +2 -0
- package/umd/view/styles/index.d.ts +3 -0
package/lib/client.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
__SHUVI_ERROR_OVERLAY_GLOBAL_HOOK__: string | {};
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
declare function startReportingRuntimeErrors({ onError }: {
|
|
7
|
+
onError: () => void;
|
|
8
|
+
}): void;
|
|
9
|
+
declare function stopReportingRuntimeErrors(): void;
|
|
10
|
+
declare function onBuildOk(): void;
|
|
11
|
+
declare function onBuildError(message: string): void;
|
|
12
|
+
declare function onRefresh(): void;
|
|
13
|
+
export { getErrorByType } from './view/helpers/getErrorByType';
|
|
14
|
+
export { getServerError } from './view/helpers/nodeStackFrames';
|
|
15
|
+
export { onBuildError, onBuildOk, onRefresh, startReportingRuntimeErrors, stopReportingRuntimeErrors };
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.stopReportingRuntimeErrors = exports.startReportingRuntimeErrors = exports.onRefresh = exports.onBuildOk = exports.onBuildError = exports.getServerError = exports.getErrorByType = void 0;
|
|
7
|
+
const iframeScript_1 = __importDefault(require("iframeScript"));
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
|
+
const parseStack_1 = require("./view/helpers/parseStack");
|
|
10
|
+
let isRegistered = false;
|
|
11
|
+
let stackTraceLimit = undefined;
|
|
12
|
+
let iframe = null;
|
|
13
|
+
let isLoadingIframe = false;
|
|
14
|
+
let isIframeReady = false;
|
|
15
|
+
let errorType;
|
|
16
|
+
const iframeStyle = {
|
|
17
|
+
position: 'fixed',
|
|
18
|
+
top: '0',
|
|
19
|
+
left: '0',
|
|
20
|
+
width: '100%',
|
|
21
|
+
height: '100%',
|
|
22
|
+
border: 'none',
|
|
23
|
+
'z-index': 2147483647
|
|
24
|
+
};
|
|
25
|
+
function onUnhandledError(ev) {
|
|
26
|
+
const error = ev === null || ev === void 0 ? void 0 : ev.error;
|
|
27
|
+
if (!error || !(error instanceof Error) || typeof error.stack !== 'string') {
|
|
28
|
+
// A non-error was thrown, we don't have anything to show.
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
errorType = {
|
|
32
|
+
type: constants_1.TYPE_UNHANDLED_ERROR,
|
|
33
|
+
reason: error,
|
|
34
|
+
frames: (0, parseStack_1.parseStack)(error.stack)
|
|
35
|
+
};
|
|
36
|
+
update();
|
|
37
|
+
}
|
|
38
|
+
function onUnhandledRejection(ev) {
|
|
39
|
+
const reason = ev === null || ev === void 0 ? void 0 : ev.reason;
|
|
40
|
+
if (!reason ||
|
|
41
|
+
!(reason instanceof Error) ||
|
|
42
|
+
typeof reason.stack !== 'string') {
|
|
43
|
+
// A non-error was thrown, we don't have anything to show.
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
errorType = {
|
|
47
|
+
type: constants_1.TYPE_UNHANDLED_REJECTION,
|
|
48
|
+
reason: reason,
|
|
49
|
+
frames: (0, parseStack_1.parseStack)(reason.stack)
|
|
50
|
+
};
|
|
51
|
+
update();
|
|
52
|
+
}
|
|
53
|
+
function startReportingRuntimeErrors({ onError }) {
|
|
54
|
+
if (isRegistered) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
isRegistered = true;
|
|
58
|
+
try {
|
|
59
|
+
const limit = Error.stackTraceLimit;
|
|
60
|
+
Error.stackTraceLimit = constants_1.STACK_TRACE_LIMIT;
|
|
61
|
+
stackTraceLimit = limit;
|
|
62
|
+
}
|
|
63
|
+
catch (_a) { }
|
|
64
|
+
window.addEventListener('error', ev => {
|
|
65
|
+
onError();
|
|
66
|
+
onUnhandledError(ev);
|
|
67
|
+
});
|
|
68
|
+
window.addEventListener('unhandledrejection', ev => {
|
|
69
|
+
onError();
|
|
70
|
+
onUnhandledRejection(ev);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
exports.startReportingRuntimeErrors = startReportingRuntimeErrors;
|
|
74
|
+
function stopReportingRuntimeErrors() {
|
|
75
|
+
if (!isRegistered) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
isRegistered = false;
|
|
79
|
+
if (stackTraceLimit !== undefined) {
|
|
80
|
+
try {
|
|
81
|
+
Error.stackTraceLimit = stackTraceLimit;
|
|
82
|
+
}
|
|
83
|
+
catch (_a) { }
|
|
84
|
+
stackTraceLimit = undefined;
|
|
85
|
+
}
|
|
86
|
+
window.removeEventListener('error', onUnhandledError);
|
|
87
|
+
window.removeEventListener('unhandledrejection', onUnhandledRejection);
|
|
88
|
+
}
|
|
89
|
+
exports.stopReportingRuntimeErrors = stopReportingRuntimeErrors;
|
|
90
|
+
function onBuildOk() {
|
|
91
|
+
errorType = { type: constants_1.TYPE_BUILD_OK };
|
|
92
|
+
update();
|
|
93
|
+
}
|
|
94
|
+
exports.onBuildOk = onBuildOk;
|
|
95
|
+
function onBuildError(message) {
|
|
96
|
+
errorType = { type: constants_1.TYPE_BUILD_ERROR, message };
|
|
97
|
+
update();
|
|
98
|
+
}
|
|
99
|
+
exports.onBuildError = onBuildError;
|
|
100
|
+
function onRefresh() {
|
|
101
|
+
errorType = { type: constants_1.TYPE_REFRESH };
|
|
102
|
+
}
|
|
103
|
+
exports.onRefresh = onRefresh;
|
|
104
|
+
function applyStyles(element, styles) {
|
|
105
|
+
element.setAttribute('style', '');
|
|
106
|
+
for (const key in styles) {
|
|
107
|
+
if (!Object.prototype.hasOwnProperty.call(styles, key)) {
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
//@ts-ignore
|
|
111
|
+
element.style[key] = styles[key];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function update() {
|
|
115
|
+
// Loading iframe can be either sync or async depending on the browser.
|
|
116
|
+
if (isLoadingIframe) {
|
|
117
|
+
// Iframe is loading.
|
|
118
|
+
// First render will happen soon--don't need to do anything.
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (isIframeReady) {
|
|
122
|
+
// Iframe is ready.
|
|
123
|
+
// Just update it.
|
|
124
|
+
updateIframeContent();
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
// We need to schedule the first render.
|
|
128
|
+
isLoadingIframe = true;
|
|
129
|
+
const loadingIframe = window.document.createElement('iframe');
|
|
130
|
+
applyStyles(loadingIframe, iframeStyle);
|
|
131
|
+
loadingIframe.onload = function () {
|
|
132
|
+
const iframeDocument = loadingIframe.contentDocument;
|
|
133
|
+
if (iframeDocument != null && iframeDocument.body != null) {
|
|
134
|
+
iframe = loadingIframe;
|
|
135
|
+
const script = loadingIframe.contentWindow.document.createElement('script');
|
|
136
|
+
script.type = 'text/javascript';
|
|
137
|
+
script.innerHTML = iframeScript_1.default;
|
|
138
|
+
iframeDocument.body.appendChild(script);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const appDocument = window.document;
|
|
142
|
+
appDocument.body.appendChild(loadingIframe);
|
|
143
|
+
}
|
|
144
|
+
function updateIframeContent() {
|
|
145
|
+
if (!iframe) {
|
|
146
|
+
throw new Error('Iframe has not been created yet.');
|
|
147
|
+
}
|
|
148
|
+
//@ts-ignore
|
|
149
|
+
const isRendered = iframe.contentWindow.updateContent(errorType);
|
|
150
|
+
if (!isRendered) {
|
|
151
|
+
window.document.body.removeChild(iframe);
|
|
152
|
+
iframe = null;
|
|
153
|
+
isIframeReady = false;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
window.__SHUVI_ERROR_OVERLAY_GLOBAL_HOOK__ =
|
|
157
|
+
window.__SHUVI_ERROR_OVERLAY_GLOBAL_HOOK__ || {};
|
|
158
|
+
//@ts-ignore
|
|
159
|
+
window.__SHUVI_ERROR_OVERLAY_GLOBAL_HOOK__.iframeReady =
|
|
160
|
+
function iframeReady() {
|
|
161
|
+
isIframeReady = true;
|
|
162
|
+
isLoadingIframe = false;
|
|
163
|
+
updateIframeContent();
|
|
164
|
+
};
|
|
165
|
+
var getErrorByType_1 = require("./view/helpers/getErrorByType");
|
|
166
|
+
Object.defineProperty(exports, "getErrorByType", { enumerable: true, get: function () { return getErrorByType_1.getErrorByType; } });
|
|
167
|
+
var nodeStackFrames_1 = require("./view/helpers/nodeStackFrames");
|
|
168
|
+
Object.defineProperty(exports, "getServerError", { enumerable: true, get: function () { return nodeStackFrames_1.getServerError; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const SERVER_TYPE_ERROR = "server";
|
|
2
|
+
export declare const TYPE_BUILD_OK = "build-ok";
|
|
3
|
+
export declare const TYPE_REFRESH = "fast-refresh";
|
|
4
|
+
export declare const TYPE_BUILD_ERROR = "build-error";
|
|
5
|
+
export declare const TYPE_UNHANDLED_ERROR = "unhandled-error";
|
|
6
|
+
export declare const TYPE_UNHANDLED_REJECTION = "unhandled-rejection";
|
|
7
|
+
export declare const STACK_TRACE_LIMIT = 50;
|
package/lib/constants.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STACK_TRACE_LIMIT = exports.TYPE_UNHANDLED_REJECTION = exports.TYPE_UNHANDLED_ERROR = exports.TYPE_BUILD_ERROR = exports.TYPE_REFRESH = exports.TYPE_BUILD_OK = exports.SERVER_TYPE_ERROR = void 0;
|
|
4
|
+
exports.SERVER_TYPE_ERROR = 'server';
|
|
5
|
+
exports.TYPE_BUILD_OK = 'build-ok';
|
|
6
|
+
exports.TYPE_REFRESH = 'fast-refresh';
|
|
7
|
+
exports.TYPE_BUILD_ERROR = 'build-error';
|
|
8
|
+
exports.TYPE_UNHANDLED_ERROR = 'unhandled-error';
|
|
9
|
+
exports.TYPE_UNHANDLED_REJECTION = 'unhandled-rejection';
|
|
10
|
+
exports.STACK_TRACE_LIMIT = 50;
|