speed up Svelte compile

Approx 27s -> 16s when rebuilding editor after making a change to
lib. Still slower than I'd like.
This commit is contained in:
Damien Elmes 2021-11-04 14:57:20 +10:00
parent 8d5cddb05c
commit 84021976d5

View file

@ -44,7 +44,7 @@ function getFileContent(path: string): FileContent {
function updateFileContent(input: InputFile): void {
let content = fileContent.get(input.path);
if (content) {
if (content && content.text !== input.data) {
content.text = input.data;
content.version += 1;
} else {