File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
// The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)
2
2
// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).
3
3
4
- const ansiHTML = require ( "ansi-html" ) ;
5
- const { encode } = require ( "html-entities" ) ;
4
+ import ansiHTML from "ansi-html" ;
5
+ import { encode } from "html-entities" ;
6
6
7
7
const colors = {
8
8
reset : [ "transparent" , "transparent" ] ,
@@ -138,6 +138,7 @@ function show(messages, type) {
138
138
const errorMessage = message . message || messages [ 0 ] ;
139
139
const text = ansiHTML ( encode ( errorMessage ) ) ;
140
140
const messageTextNode = document . createElement ( "div" ) ;
141
+
141
142
messageTextNode . innerHTML = text ;
142
143
143
144
entryElement . appendChild ( typeElement ) ;
You can’t perform that action at this time.
0 commit comments