Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ hmr-asset.js
File
hmr-asset.js
playground/hmr-full-bundle-mode/hmr-asset.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// self-accepting module with no asset import; the spec adds one via an HMR edit
2
const
slot = document.querySelector(
'.hmr-asset'
)
3
const
img = document.createElement(
'img'
)
4
img.id =
'hmr-asset-image'
Callers
nothing calls this directly
Calls
1
accept
Method · 0.65
Tested by
no test coverage detected