@k88/cra-webpack-hot-dev-client
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -44,7 +44,7 @@ "use strict"; | ||
var strip_ansi_1 = __importDefault(require("strip-ansi")); | ||
var react_error_overlay_1 = __importDefault(require("react-error-overlay")); | ||
var react_error_overlay_1 = require("react-error-overlay"); | ||
var format_webpack_messages_1 = __importDefault(require("@k88/format-webpack-messages")); | ||
var editorEndpoint = '/__open-stack-frame-in-editor'; | ||
var encode = window.encodeURIComponent; | ||
react_error_overlay_1.default.setEditorHandler(function (errorLocation) { return __awaiter(void 0, void 0, void 0, function () { | ||
react_error_overlay_1.setEditorHandler(function (errorLocation) { return __awaiter(void 0, void 0, void 0, function () { | ||
var line, col; | ||
@@ -64,3 +64,3 @@ return __generator(this, function (_a) { | ||
var hadRuntimeError = false; | ||
react_error_overlay_1.default.startReportingRuntimeErrors({ | ||
react_error_overlay_1.startReportingRuntimeErrors({ | ||
onError: function () { | ||
@@ -73,3 +73,3 @@ hadRuntimeError = true; | ||
module.hot.dispose(function () { | ||
react_error_overlay_1.default.stopReportingRuntimeErrors(); | ||
react_error_overlay_1.stopReportingRuntimeErrors(); | ||
}); | ||
@@ -145,3 +145,3 @@ } | ||
}); | ||
react_error_overlay_1.default.reportBuildError(formatted.errors[0]); | ||
react_error_overlay_1.reportBuildError(formatted.errors[0]); | ||
if (typeof console !== 'undefined' && typeof console.error === 'function') { | ||
@@ -155,3 +155,3 @@ for (var i = 0; i < formatted.errors.length; i++) { | ||
if (!hasCompileErrors) { | ||
react_error_overlay_1.default.dismissBuildError(); | ||
react_error_overlay_1.dismissBuildError(); | ||
} | ||
@@ -158,0 +158,0 @@ } |
{ | ||
"name": "@k88/cra-webpack-hot-dev-client", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A Webpack Hot Dev Client taken from Create React App", | ||
@@ -46,2 +46,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^13.11.0", | ||
"eslint": "^6.8.0", | ||
@@ -48,0 +49,0 @@ "eslint-config-twilio-ts": "^1.22.0", |
Sorry, the diff of this file is not supported yet
17270
6