docs(upgrade-guide): add Vite overlay stacking and layer order caveats#22848
docs(upgrade-guide): add Vite overlay stacking and layer order caveats#22848johnleider wants to merge 1 commit into
Conversation
|
Thanks for documenting this, we hit the layer order issue in a production v3 to v4 migration and want to share a caveat: the entrypoint pattern alone (layers file imported first in main.ts) can still fail in production builds with CSS code splitting enabled. In our app the The only placement we found that is immune to chunk link order is an inline <style> with the full |
|
Thanks for letting us know, it is in line with changes to the CLI |
Summary
Two real-world v3→v4 migration issues that aren't currently documented in the upgrade guide, sourced from a production migration.
Vite dev-mode overlay z-index — Vite's dep pre-bundler can split Vuetify's overlay modules across two module graphs, creating two
useStackinstances. The result is overlays rendered inside dialogs stay at z-index 2000 instead of auto-stacking. Documents the symptom, root cause, and fix (optimizeDeps.include+ cache clear). Production builds are not affected.Layer order declaration import timing — The
@layerorder statement must be imported before any Vuetify styles, or the browser establishes layer priority from first-seen order. Documents the correct entrypoint pattern and explains the failure mode.