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

Function ignoreDeprecationWarnings

packages/vite/src/node/deprecations.ts:99–105  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

97}
98
99export function ignoreDeprecationWarnings<T>(fn: () => T): T {
100 const before = _ignoreDeprecationWarnings
101 _ignoreDeprecationWarnings = true
102 const ret = fn()
103 _ignoreDeprecationWarnings = before
104 return ret
105}

Callers 1

handleHMRUpdateFunction · 0.90

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected