diff2html/src
Eric Cornelissen 3a480e4ab0 perf: check hljs is not null only once
Update the `highlightCode` method of `Diff2HtmlUI` to check if the hljs
reference is null only once (at the start). This address the "HACK"
comments by using a locally scoped variable for hljs. This way,
TypeScript is able to deduce that, after the initial null-check, hljs is
in fact not null.
2022-11-02 22:43:23 +01:00
..
__tests__ bump dependencies 2022-10-16 00:01:01 +01:00
templates Remove redundant HTML classes 2021-05-29 02:08:47 +04:00
ui perf: check hljs is not null only once 2022-11-02 22:43:23 +01:00
diff-parser.ts clean: Improve git diff support 2021-07-09 22:35:27 +01:00
diff2html.ts clean: Improve build configurations 2020-01-01 19:51:36 +00:00
file-list-renderer.ts clean: Improve build configurations 2020-01-01 19:51:36 +00:00
hoganjs-utils.ts clean: Improve build configurations 2020-01-01 19:51:36 +00:00
line-by-line-renderer.ts move everything inside parser 2021-03-01 14:48:12 -05:00
rematch.ts clean: Improve build configurations 2020-01-01 19:51:36 +00:00
render-utils.ts move everything inside parser 2021-03-01 14:48:12 -05:00
side-by-side-renderer.ts move everything inside parser 2021-03-01 14:48:12 -05:00
types.ts feature: new diffMaxChanges in parser config 2021-02-25 14:02:43 -05:00
utils.ts clean: Improve build configurations 2020-01-01 19:51:36 +00:00