-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.scope: compiler
Description
Vue version
3.5.17
Link to minimal reproduction
Steps to reproduce
- Open DevTools and navigate to the "Memory" tab.
- Check for detached element h1.
What is expected?
Detached h1 shouldn't show up in the memory profile.
What is actually happening?
Detached h1 shows up in the memory profile.
System Info
Win11 Chrome 138.0.7204.158
Any additional comments?
Strangely, if I remove some content in the slot, the problem disappears (Playground). I'm not sure if this is a bug or intentional behavior.
From previous issues, I learned that adding this configuration solves the problem:
plugins: [vue({ template: { compilerOptions: { hoistStatic: false } } })]
If this is not a bug, could you please consider adding the hoistStatic option to the Playground? This would greatly help with troubleshooting, as the current behavior makes issue diagnosis more difficult.
Thanks for your time and attention!
Metadata
Metadata
Assignees
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.scope: compiler