hmr.ts — astro Source File
Architecture documentation for hmr.ts, a typescript file in the astro codebase.
Entity Profile
Source Code
/// <reference types="vite/client" />
if (import.meta.hot) {
// HMR temporarily not needed for now, but kept here in case we need it again.
// To re-instate this module again, update `vite-plugin-astro-server/route.ts`
// to add this module as a script similar to `/@vite/client`
}
Source
Frequently Asked Questions
What does hmr.ts do?
hmr.ts is a source file in the astro codebase, written in typescript.
Where is hmr.ts in the architecture?
hmr.ts is located at packages/astro/src/runtime/client/hmr.ts (directory: packages/astro/src/runtime/client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free