Skip to content

HMR takes a long time when extending/re-exporting types from external package #11923

@hrubysimon

Description

@hrubysimon

Vue version

3.5.5

Link to minimal reproduction

https://github.com/hrubysimon/vue3-vite-freeze

Steps to reproduce

  1. yarn install
  2. yarn dev
  3. open src/components/ExtendedPopover/ExtendedPopoverRoot.vue
  4. edit function foo(), e.g. duplicate line console.log('foo') -> save
  5. repeat step 4

dev server should be frozen

What is expected?

no memory leak

What is actually happening?

Memory leaks occurs when extending/re-exporting types from external package.

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (10) x64 AMD Ryzen 5 3600X 6-Core Processor
    Memory: 8.83 GB / 11.69 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 22.8.0 - ~/.nvm/versions/node/v22.8.0/bin/node
    Yarn: 4.4.1 - ~/.nvm/versions/node/v22.8.0/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v22.8.0/bin/npm
  npmPackages:
    vue: ^3.4.29 => 3.5.4

Any additional comments?

I'm not aware of any circular dependencies in provided reproduction.
Possibly it might be caused by radix-vue, so I opened issue there as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions