![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | a year ago | - | |
![]() | LICENSE | a year ago | 1.1K | |
![]() | README.md | a year ago | 1.1K | 595aea1 more query options + view options [كارل مبارك] |
![]() | package.json | a year ago | 1.4K | afd0ccc remove unused [كارل مبارك] |
Get Vite's import.meta.hot
at runtime.
You don't normally need this library directly. It's designed for embedded UI on top of Vite for client-server communication. For example:
npm i vite-hot-client
import { hot } from 'vite-hot-client'
// import.meta.hot
if (hot) {
hot.on('update', () => {
// ...
})
}
import { createHotContext } from 'vite-hot-client'
const hot = createHotContext('/path/to/module')
if (hot) {
// ...
}
MIT License © 2022 Anthony Fu