Skip to content

Conversation

@dummdidumm
Copy link
Member

This change also makes resolveModuleNames return early if the module to be resolved was already tried to be resolved but without success. Now, undefined is returned immediately in this case without trying to resolve again. Such unresolved resolutions are deleted whenever a new file is created. This increases performance especially on projects with many unresolved modules.

During this I made sure that SnapshotManager is now only called through the service. This also fixes a small bug where a TS/JS file was not removed from the module resolution after it was deleted.

This change also makes resolveModuleNames return early if the module to be resolved was already tried to be resolved but without success. Now, `undefined` is returned immediately in this case without trying to resolve again. Such unresolved resolutions are deleted whenever a new file is created. This increases performance especially on projects with many unresolved modules.
@dummdidumm dummdidumm merged commit 268ae46 into sveltejs:master May 22, 2021
@dummdidumm dummdidumm deleted the module-caching branch May 22, 2021 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant