Skip to content

Commit bec34e7

Browse files
authored
fix: overlay output (#3553)
1 parent fe8dda7 commit bec34e7

File tree

6 files changed

+306
-130
lines changed

6 files changed

+306
-130
lines changed

client-src/overlay.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).
33

44
const ansiHTML = require("ansi-html");
5-
const { encode } = require("html-entities");
65

76
const colors = {
87
reset: ["transparent", "transparent"],
@@ -136,7 +135,7 @@ function show(messages, type) {
136135

137136
// Make it look similar to our terminal.
138137
const errorMessage = message.message || messages[0];
139-
const text = ansiHTML(encode(errorMessage));
138+
const text = ansiHTML(errorMessage);
140139
const messageTextNode = document.createTextNode(text);
141140

142141
entryElement.appendChild(typeElement);

0 commit comments

Comments
 (0)