Skip to content

Conversation

@danielroe
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Tiny, tiny perf improvement - we can avoid blocking the setup of the module by moving the import to where the builder initialises.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 8, 2025

npm i https://pkg.pr.new/@nuxt/ui@4923

commit: 1f751de

@benjamincanac benjamincanac changed the title perf: do not block module setup by importing plugin perf(module): do not block setup by importing plugin Sep 9, 2025
Copy link
Member

@benjamincanac benjamincanac left a comment

Choose a reason for hiding this comment

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

@danielroe I just checked in development and the hook is called twice, can this be an issue? πŸ€”

@danielroe
Copy link
Member Author

it shouldn't - that's one plugin for client, and one for server.

@benjamincanac benjamincanac merged commit 695d9f7 into v4 Sep 9, 2025
14 checks passed
@benjamincanac benjamincanac deleted the perf/vite-plugin branch September 9, 2025 13:10
JosephAnson added a commit to JosephAnson/ui that referenced this pull request Sep 9, 2025
* v4:
  perf(module): do not block setup by importing plugin (nuxt#4923)
  docs(nuxt.config): add vercel runtime cache config (nuxt#4930)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants