Skip to content

Optimizing dependencies - Nuxt 3.8.1 #24196

@frasza

Description

@frasza

Environment


  • Operating System: Windows_NT
  • Node Version: v20.9.0
  • Nuxt Version: 3.8.1
  • CLI Version: 3.9.1
  • Nitro Version: 2.7.2
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/frasza/nuxt-optimize-deps

Describe the bug

Since Nuxt 3.8.1 I (and few others on Discord) have noticed on development app boot that Nuxt/Vite does some dependencies optimization and it happens quite often (sometimes even on every page refresh, sometimes I noticed only once per dev server startup). Problem is that is also does full page refresh.

 Vite server warmed up in 846ms                                                                                                                                                                        18:50:50
 Vite client warmed up in 1195ms                                                                                                                                                                       18:50:50
 Nitro built in 548 ms                                                                                                                                                                           nitro 18:50:51
  new dependencies optimized: @tiptap/vue-3, @tiptap/starter-kit                                                                                                                                     18:50:53
  optimized dependencies changed. reloading    

Provided small reproduction using tiptap editor. On my own project I have even more of these packages that produce the issue.

[18:43:23]   new dependencies optimized: @tiptap/vue-3, @tiptap/starter-kit, @tiptap/extension-placeholder, @tiptap/extension-link, primevue/usetoast
  optimized dependencies changed. reloading   

[18:43:44]   new dependencies optimized: echarts/core, echarts/renderers, echarts/charts, echarts/components, vue-echarts
  optimized dependencies changed. reloading 

It really does impact DX since its doing full page refresh when it happens. If I revert to Nuxt 3.8.0, issue is gone.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions