Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore(search/svelte): Remove dependencies on barrel files to speed up dev build#63230

Merged
fkling merged 1 commit into
mainfrom
fkling/srch-516-remove-sourcegraphwildcard-dependency-from-svelte-app
Jun 13, 2024
Merged

chore(search/svelte): Remove dependencies on barrel files to speed up dev build#63230
fkling merged 1 commit into
mainfrom
fkling/srch-516-remove-sourcegraphwildcard-dependency-from-svelte-app

Conversation

@fkling

@fkling fkling commented Jun 12, 2024

Copy link
Copy Markdown
Contributor

Fixes srch-516

Using vite's inspect plugin I found out that we are importing a lot of unnecessary components again, including @sourcegraph/wildcard and @sourcegraph/branded:

By removing those dependencies we speed up the development build significantly.

Before After
2024-06-12_17-24 2024-06-12_17-40
2024-06-12_17-27 2024-06-12_17-39

Test plan

pnpm build

@fkling fkling requested a review from a team June 12, 2024 15:46
@cla-bot cla-bot Bot added the cla-signed label Jun 12, 2024
@camdencheek

Copy link
Copy Markdown
Member

Nice! Had no idea the inspect plugin existed. Seems really nice!

@fkling fkling merged commit 498c03d into main Jun 13, 2024
@fkling fkling deleted the fkling/srch-516-remove-sourcegraphwildcard-dependency-from-svelte-app branch June 13, 2024 06:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants