Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR not available in Vite-node #1028

Closed
6 tasks done
lucas-jones opened this issue Mar 25, 2022 · 1 comment · Fixed by #1516
Closed
6 tasks done

HMR not available in Vite-node #1028

lucas-jones opened this issue Mar 25, 2022 · 1 comment · Fixed by #1516
Labels
enhancement New feature or request pr welcome

Comments

@lucas-jones
Copy link

Describe the bug

I'm wanting to use HMR with vite-node. It seems as it not currently implemented/exposed.

import.meta.hot currently returns undefined

Reproduction

Console log out import.meta.hot see it's undefined. Unable to hook on to HMR

System Info

System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (6) x64 Intel(R) Core(TM) i5-8400T CPU @ 1.70GHz
    Memory: 668.59 MB / 7.64 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v14.17.0/bin/yarn
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
  npmPackages:
    vite: ^2.7.9 => 2.7.9

Used Package Manager

yarn

Validations

@sheremet-va
Copy link
Member

We didn't reimplement this functionality in vite-node, but maybe oneday.

@sheremet-va sheremet-va added the enhancement New feature or request label Apr 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants