mirror of
https://github.com/ankitects/anki.git
synced 2026-01-20 01:39:00 -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
bb427c9d26
commit
4fa8bad822
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