MCPcopy
hub / github.com/vitejs/vite / fullReload

Function fullReload

packages/vite/src/node/optimizer/optimizer.ts:524–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

522 }
523
524 function fullReload() {
525 // Cached transform results have stale imports (resolved to
526 // old locations) so they need to be invalidated before the page is
527 // reloaded.
528 environment.moduleGraph.invalidateAll()
529
530 environment.hot.send({
531 type: 'full-reload',
532 path: '*',
533 })
534 }
535
536 function rerun() {
537 // debounce time to wait for new missing deps finished, issue a new

Callers 1

runOptimizerFunction · 0.85

Calls 2

sendMethod · 0.65
invalidateAllMethod · 0.45

Tested by

no test coverage detected