Skip to content

perf(nuxt): deduplicate string modules to install#27475

Merged
danielroe merged 2 commits intomainfrom
perf/module-install
Jun 7, 2024
Merged

perf(nuxt): deduplicate string modules to install#27475
danielroe merged 2 commits intomainfrom
perf/module-install

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

Discovered while debugging an issue with @kleinpetr, we process the same module multiple times if it's specified in a layer. (We don't actually install it but we do work to load the file + register timings.)

We can significantly improve install times (this cut nuxi prepare times with layers + modules by 50% in my tests).

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Comment thread packages/nuxt/src/core/nuxt.ts
Copy link
Copy Markdown
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice idea overall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants