mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
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:
parent
8d5cddb05c
commit
84021976d5
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ function getFileContent(path: string): FileContent {
|
||||||
|
|
||||||
function updateFileContent(input: InputFile): void {
|
function updateFileContent(input: InputFile): void {
|
||||||
let content = fileContent.get(input.path);
|
let content = fileContent.get(input.path);
|
||||||
if (content) {
|
if (content && content.text !== input.data) {
|
||||||
content.text = input.data;
|
content.text = input.data;
|
||||||
content.version += 1;
|
content.version += 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue